SteamWar/FightSystem
Archiviert
13
1
Dieser Commit ist enthalten in:
Yaruma3341 2019-11-23 22:08:04 +01:00 committet von BuildTools
Ursprung 284542e23d
Commit feb7939ee7

Datei anzeigen

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