Redid all commands, Added Party chat and added Settingsmenu

This commit is contained in:
Luca
2021-11-23 13:33:01 +01:00
parent 03512ae139
commit e11fdd3931
35 changed files with 459 additions and 46 deletions

View File

@ -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"));
}
}