ChatCommandsAPI

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    90485
  • Created
    Mar 20, 2015
  • Last Released File
    Mar 20, 2015
  • Total Downloads
    284
  • License

Categories

Members

Recent Files

Bukkit