ChatCommandsAPI
ChatCommandsAPI
ChatCommandsAPI
ChatCommandsAPI comes with nothing, but you
can expand it! Create your own Chatcommand!
What it does
You can create Commands for the chat.
abridged version: No Commands with a Slash
before.
Benefits
It's traceless!
Example
public void onEnable() { ChatManager cm = ChatCommand.get(); cm.setInstance(this); cm.registerCommand(new Test(), "ping"); }
In the command class:
public class Test implements ChatCommandListener{ @Override public void onCommand(Player sender, String[] cmd) { if(cmd[0].equalsIgnoreCase("ping")) { sender.sendMessage("§c...Pong"); } } }
Changelog
0.0.1
- The first version of the plugin.
Source Code
Here is the Link to GitHub
Comments