package com.tisawesomeness.minecord.command.admin;

import com.tisawesomeness.minecord.command.Command;
import com.tisawesomeness.minecord.util.MessageUtils;

import net.dv8tion.jda.api.events.message.MessageReceivedEvent;

public class ShutdownCommand extends Command {
	
	public CommandInfo getInfo() {
		return new CommandInfo(
			"shutdown",
			"Shuts down the bot.",
			null,
			null,
			0,
			true,
			true,
			false
		);
	}
	
	public Result run(String[] args, MessageReceivedEvent e) {
		MessageUtils.log(":x: **Bot shut down by " + e.getAuthor().getName() + "**");
		e.getJDA().shutdown();
		System.exit(0);
		return new Result(Outcome.SUCCESS);
	}
	
}

package com.tisawesomeness.minecord.command.admin;

import com.tisawesomeness.minecord.command.Command;
import com.tisawesomeness.minecord.util.MessageUtils;

import net.dv8tion.jda.api.events.message.MessageReceivedEvent;

public class ShutdownCommand extends Command {
	
	public CommandInfo getInfo() {
		return new CommandInfo(
			"shutdown",
			"Shuts down the bot.",
			null,
			null,
			0,
			true,
			true,
			false
		);
	}
	
	public Result run(String[] args, MessageReceivedEvent e) {
		MessageUtils.log(":x: **Bot shut down by " + e.getAuthor().getName() + "**");
		e.getTextChannel().sendMessage(":wave: Goodbye!").complete();
		e.getJDA().shutdown();
		System.exit(0);
		return new Result(Outcome.SUCCESS);
	}
	
}

Add shutdown message