/** Plugin onCommand() event, associates all plugins that have commands */ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("god") && fairGod != null) return fairGod.godCommand(sender, args); if (commandLabel.equalsIgnoreCase("creative") && demiGod != null) return demiGod.creativeCommand(sender, args); if (commandLabel.equalsIgnoreCase("survival") && demiGod != null) return demiGod.survivalCommand(sender, args); if (commandLabel.equalsIgnoreCase("aconf") && autoConfiscate != null) return autoConfiscate.onCommand(sender, args); if (commandLabel.equalsIgnoreCase("delprefix") && chatPrefix != null) return chatPrefix.delPrefix(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("fullprefix") && chatPrefix != null) return chatPrefix.fullPrefix(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("prefix") && chatPrefix != null) return chatPrefix.onCommand(sender, cmd, commandLabel, args); if ((commandLabel.equalsIgnoreCase("msg") || commandLabel.equalsIgnoreCase("m") || commandLabel.equalsIgnoreCase("message") || commandLabel.equalsIgnoreCase("tell") || commandLabel.equalsIgnoreCase("whisper") || commandLabel.equalsIgnoreCase("t")) && chat != null) return chat.msgCommand(sender, cmd, commandLabel, args); if ((commandLabel.equalsIgnoreCase("r") || commandLabel.equalsIgnoreCase("reply")) && chat != null) return chat.rCommand(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("channel") || commandLabel.equalsIgnoreCase("ch") || commandLabel.equalsIgnoreCase("ac") || commandLabel.equalsIgnoreCase("sc") && chat != null) return chat.chCommand(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("date") && chat != null) return chat.dateCommand(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("dump") && chat != null) return chat.dumpCommand(sender, cmd, commandLabel, args); if ((commandLabel.equalsIgnoreCase("mute") || commandLabel.equalsIgnoreCase("me")) && chat != null) return fullMute.onCommand(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("ignore") || commandLabel.equalsIgnoreCase("unignore")) return chat.ignoreCommand(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("vote")) return voteRewards.onCommand(sender, cmd, commandLabel, args); if (commandLabel.equalsIgnoreCase("toggleprofile") && chat != null) return chat.badProfileCommand(sender, cmd, commandLabel, args); // if (commandLabel.equalsIgnoreCase("peaceful")) // return peacefulGriefFree.onCommand(sender, cmd, commandLabel, args); // if (commandLabel.equalsIgnoreCase("virtualchest") || // commandLabel.equalsIgnoreCase("vchest") || // commandLabel.equalsIgnoreCase("vc")) // return virtualChest.onVCCommand(sender, args); // if (commandLabel.equalsIgnoreCase("world") // || commandLabel.equalsIgnoreCase("w")) // return worldBlocks.onWorldCommand(sender); if (commandLabel.equalsIgnoreCase("spy") && chat != null) return chat.spyCommand(sender); if (commandLabel.equals("plotmeoverride") && plotMeOverride != null) if (!(sender instanceof Player)) { PlotMeOverride.command(args[0]); return true; } if (commandLabel.equalsIgnoreCase("crash")) return crashPlayer.onCommand(sender, args); if (commandLabel.equalsIgnoreCase("sprint")) return beastSprint.onCommand(sender); if (commandLabel.equalsIgnoreCase("nameless")) return nameless.onCommand(sender, args); if (commandLabel.equalsIgnoreCase("tntpunch") && tntpunch != null) return tntpunch.onCommand(sender); if (commandLabel.equalsIgnoreCase("undercover")) return underCover.onCommand(sender); if (commandLabel.equalsIgnoreCase("edit")) return signEdit.onCommand(sender, args); if (commandLabel.equalsIgnoreCase("gcmd")) return bungeeGBCMD.onCommand(sender, args); if (commandLabel.equalsIgnoreCase("staffvote") || commandLabel.equalsIgnoreCase("svote") && staffVotes != null) return staffVotes.onCommand(sender, args); if (commandLabel.equalsIgnoreCase("home") || commandLabel.equalsIgnoreCase("homes") || commandLabel.equalsIgnoreCase("sethome") || commandLabel.equalsIgnoreCase("delhome")) return homes.onCommand(sender, commandLabel, args); if (commandLabel.equalsIgnoreCase("servertime") || commandLabel.equalsIgnoreCase("stime")) return respectedAutoPromote.onCommand(sender); if (commandLabel.equalsIgnoreCase("fly")) if (fly != null) return fly.onCommand(sender, cmd, commandLabel, args); if (commandLabel.equals("ddstop")) return serverRestart.onRestartCommand(sender); if (commandLabel.equals("ddwarn")) return serverRestart.onWarnCommand(sender); return false; }