SteamWar/FightSystem
Archiviert
13
1

code cleanup; bugfix

Dieser Commit ist enthalten in:
Yaruma3341 2019-11-23 20:50:21 +01:00 committet von BuildTools
Ursprung c6efe8a5f4
Commit c6459884a0

Datei anzeigen

@ -27,9 +27,9 @@ public class LockschemCommand implements CommandExecutor {
userGroup != UserGroup.Supporter)
return false;
switch (args.length) {
case 1:
String teamName = args[1];
if(args.length == 1) {
String teamName = args[0];
FightTeam fightTeam = Fight.getTeamByName(teamName);
if(fightTeam == null) {
@ -37,8 +37,14 @@ public class LockschemCommand implements CommandExecutor {
return false;
}
fightTeam.getSchematic().setSchemType(SchematicType.Normal);
player.sendMessage(FightSystem.PREFIX + "Schematic von " + fightTeam.getColoredName() + "§cgepserrt!");
}
player.sendMessage(FightSystem.PREFIX + "Schematic von " + fightTeam.getColoredName() + " §cgesperrt!");
return false;
}
sendHelp(player);
return false;
}
private void sendHelp(Player player) {
player.sendMessage(FightSystem.PREFIX + "/lockschem [TEAM]");
}
}