Using the API

First, add ChatPlus.jar in your libraries and add ChatPlus to depend or softdepend in plugin.yml. Then create a ChatPlusAPI objet and initialize it in onEnable().

ChatPlusAPI cpapi;
//in onEnable()
cpapi = new ChatPlusAPI();
//Do stuff with the API...
cpapi.setChatPaused(true);
cpapi.setLowerCasingEnabled(true);
boolean chatp = cpapi.isChatPaused();
boolean chatlw = cpapi.isLowerCasingEnabled();
cpapi.displayHelpPage(/* A player */);

Comments

Posts Quoted:
Reply
Clear All Quotes