Redid all commands, Added Party chat and added Settingsmenu
This commit is contained in:
@ -19,6 +19,11 @@ public class EnableAndDisableCommand extends BaseCommand {
|
||||
public void executeAs(CommandSender sender, Command cmd, String label, String[] args) {
|
||||
Player player = (Player) sender;
|
||||
|
||||
if (args.length == 0) {
|
||||
player.sendMessage(CC.translate("&cError: no arena found! /arena <args> <arena>"));
|
||||
return;
|
||||
}
|
||||
|
||||
Arena arena = this.main.getArenaManager().getArena(args[1]);
|
||||
|
||||
if (arena != null) {
|
||||
@ -26,7 +31,7 @@ public class EnableAndDisableCommand extends BaseCommand {
|
||||
|
||||
player.sendMessage(arena.isEnabled() ? CC.translate("&aSuccessfully enabled the arena called &a&l" + args[1]) : CC.translate("&cSuccessfully disabled the arena called &c&l" + args[1]));
|
||||
} else {
|
||||
player.sendMessage(CC.translate("&cThis arena does not already exist"));
|
||||
player.sendMessage(CC.translate("&cThis arena does not exist"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user