SteamWar/BungeeCore
Archiviert
13
2

No Arena start in an Arena anymore

Dieser Commit ist enthalten in:
Lixfel 2019-05-08 17:28:02 +02:00
Ursprung 902c4bb63a
Commit 15df6459ae

Datei anzeigen

@ -31,8 +31,15 @@ public class FightCommand extends Command {
sender.sendMessage(BungeeCore.ChatPrefix + "/fight MiniWarGear §8- §7Starte einen §6MiniWarGear§8-§7Kampf§8!"); sender.sendMessage(BungeeCore.ChatPrefix + "/fight MiniWarGear §8- §7Starte einen §6MiniWarGear§8-§7Kampf§8!");
return; return;
} }
if(sender instanceof ProxiedPlayer){ if(sender instanceof ProxiedPlayer){
ProxiedPlayer player = (ProxiedPlayer) sender; ProxiedPlayer player = (ProxiedPlayer) sender;
if(ArenaSystem.inArena(player)){
sender.sendMessage(BungeeCore.ChatPrefix + "§cDu befindest dich bereits in einer Arena.");
return;
}
Arena arena; Arena arena;
switch(args[0].toLowerCase()){ switch(args[0].toLowerCase()){
case "as": case "as":
@ -77,7 +84,6 @@ public class FightCommand extends Command {
gamemodes.add("MiniWarGear"); gamemodes.add("MiniWarGear");
gamemodes.add("MWG"); gamemodes.add("MWG");
} }
System.out.println(args);
return gamemodes; return gamemodes;
} }
} }