Added MCTPAudioCmd class
Added things to Main class Added Utils
This commit is contained in:
parent
d7f659be21
commit
56de051229
2 changed files with 38 additions and 0 deletions
21
src/me/mctp/MCTPAudioCmd.java
Normal file
21
src/me/mctp/MCTPAudioCmd.java
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue