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

@ -21,6 +21,11 @@ public class SetTeamAMaxCommand 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) {
@ -30,7 +35,7 @@ public class SetTeamAMaxCommand extends BaseCommand {
player.sendMessage(CC.translate("&aSuccessfully set the Team A maximum position for the arena called &a&l" + args[1]));
} else {
player.sendMessage(CC.translate("&cThis arena does not already exist"));
player.sendMessage(CC.translate("&cThis arena does not exist"));
}
}