Preliminary level caps implementation

Also with an option to choose name/displayname for a and p commands, as well as enable/disable them
This commit is contained in:
NuclearW
2012-02-02 00:24:07 -05:00
parent c95d2a9b84
commit b8f4b6e2da
7 changed files with 111 additions and 23 deletions

View File

@@ -301,10 +301,10 @@ public class mcMMO extends JavaPlugin
//Party commands
if(LoadProperties.acceptEnable) getCommand("accept").setExecutor(new AcceptCommand());
getCommand("a").setExecutor(new ACommand());
if(LoadProperties.aEnable) getCommand("a").setExecutor(new ACommand());
if(LoadProperties.inviteEnable) getCommand("invite").setExecutor(new InviteCommand(this));
if(LoadProperties.partyEnable) getCommand("party").setExecutor(new PartyCommand());
getCommand("p").setExecutor(new PCommand());
if(LoadProperties.pEnable) getCommand("p").setExecutor(new PCommand());
if(LoadProperties.ptpEnable) getCommand("ptp").setExecutor(new PtpCommand(this));
//Other commands