code cleanup
Dieser Commit ist enthalten in:
Ursprung
284542e23d
Commit
feb7939ee7
@ -14,9 +14,8 @@ import org.bukkit.entity.Player;
|
||||
public class LockschemCommand implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
if(!(sender instanceof Player)) {
|
||||
if(!(sender instanceof Player))
|
||||
return false;
|
||||
}
|
||||
Player player = (Player) sender;
|
||||
|
||||
SteamwarUser steamwarUser = SteamwarUser.get(player.getUniqueId());
|
||||
@ -29,19 +28,20 @@ public class LockschemCommand implements CommandExecutor {
|
||||
return false;
|
||||
|
||||
|
||||
if(args.length == 1) {
|
||||
String teamName = args[0];
|
||||
FightTeam fightTeam = Fight.getTeamByName(teamName);
|
||||
|
||||
if(fightTeam == null) {
|
||||
player.sendMessage(FightSystem.PREFIX + "§cDieses Team existiert nicht!");
|
||||
return false;
|
||||
}
|
||||
fightTeam.getSchematic().setSchemType(SchematicType.Normal);
|
||||
player.sendMessage(FightSystem.PREFIX + "Schematic von " + fightTeam.getColoredName() + " §cgesperrt!");
|
||||
if(args.length != 1) {
|
||||
sendHelp(player);
|
||||
return false;
|
||||
}
|
||||
sendHelp(player);
|
||||
|
||||
String teamName = args[0];
|
||||
FightTeam fightTeam = Fight.getTeamByName(teamName);
|
||||
|
||||
if(fightTeam == null) {
|
||||
player.sendMessage(FightSystem.PREFIX + "§cDieses Team existiert nicht!");
|
||||
return false;
|
||||
}
|
||||
fightTeam.getSchematic().setSchemType(SchematicType.Normal);
|
||||
player.sendMessage(FightSystem.PREFIX + "Schematic von " + fightTeam.getColoredName() + " §cgesperrt!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren