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;
|
||||
}
|
||||
|
||||
}
|
17
src/plugin.yml
Normal file
17
src/plugin.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
main: me.mctp.Main
|
||||
name: MCTPAudio
|
||||
version: 1.0
|
||||
api-version: 1.14
|
||||
author: MaybeFromNL_SBDeveloper
|
||||
description: Copyright MaybeFromNL & SBDeveloper
|
||||
|
||||
commands:
|
||||
mctpaudio:
|
||||
description: Main command
|
||||
audio:
|
||||
description: Connect command
|
||||
|
||||
permissions:
|
||||
mctp.admin:
|
||||
description: Admin commands
|
||||
default: op
|
Loading…
Add table
Reference in a new issue