Added MCTPAudioCmd class

Added things to Main class
Added Utils
This commit is contained in:
OfficieelJason 2020-05-05 22:39:46 +02:00
parent d7f659be21
commit 56de051229
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,21 @@
package me.mctp;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
public class MCTPAudioCmd implements CommandExecutor {
public String prefix = (ChatColor.GOLD + "[" + ChatColor.YELLOW + "MCTP" + ChatColor.GOLD + "] " + ChatColor.GRAY);
public boolean onCommand(CommandSender sender, Command cmd, String commandlabel, String[] args) {
if (cmd.getName().equalsIgnoreCase("mctpaudio")) {
sender.sendMessage(prefix + "MCTP Audio command!");
} else if (cmd.getName().equalsIgnoreCase("audio")) {
sender.sendMessage(prefix + "MCTP Audio connect command!");
}
return false;
}
}