Program: 34061
Project: 34061
Buggy source:
@Override public boolean onCommand(final CommandSender sender,final Command command,final String label,final String[] split){
  if (!(sender instanceof Player)) {
    return false;
  }
  final Player player=(Player)sender;
  if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islanderrorYouDoNotHavePermission);
    return true;
  }
  final UUID playerUUID=player.getUniqueId();
  final UUID teamLeader=plugin.getPlayers().getTeamLeader(playerUUID);
  List<UUID> teamMembers=new ArrayList<UUID>();
  if (teamLeader != null) {
    teamMembers=plugin.getPlayers().getMembers(teamLeader);
  }
  UUID targetPlayer=null;
switch (split.length) {
case 0:
    if (plugin.getPlayers().getIslandLocation(playerUUID) == null && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).islandnew);
      chooseIsland(player);
      return true;
    }
 else {
      if (Settings.useControlPanel) {
        player.performCommand(Settings.ISLANDCOMMAND + "String_Node_Str");
      }
 else {
        if (!player.getWorld().getName().equalsIgnoreCase(Settings.worldName) || Settings.allowTeleportWhenFalling || !IslandGuard.isFalling(playerUUID)|| (player.isOp() && !Settings.damageOps)) {
          plugin.getGrid().homeTeleport(player);
          if (Settings.islandRemoveMobs) {
            plugin.getGrid().removeMobs(player.getLocation());
          }
        }
 else {
          player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
        }
      }
      return true;
    }
case 1:
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!pendingNewIslandSelection.contains(playerUUID)) {
      return false;
    }
    pendingNewIslandSelection.remove(playerUUID);
    Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
    newIsland(player);
    if (resettingIsland.contains(playerUUID)) {
      resettingIsland.remove(playerUUID);
      resetPlayer(player,oldIsland);
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.sendMessage("String_Node_Str" + label + "String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.openInventory(SettingsPanel.islandGuardPanel());
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
      return true;
    }
    Island island=plugin.getGrid().getIsland(playerUUID);
    if (island == null) {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
      return true;
    }
 else {
      if (!island.isLocked()) {
        for (        Player target : plugin.getServer().getOnlinePlayers()) {
          if (!player.equals(target) && !target.isOp() && !VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str")&& (target.getWorld().equals(ASkyBlock.getIslandWorld()) || target.getWorld().equals(ASkyBlock.getNetherWorld()))&& plugin.getGrid().isOnIsland(player,target)&& !CoopPlay.getInstance().getCoopPlayers(island.getCenter()).contains(target.getUniqueId())) {
            if (plugin.getPlayers().inTeam(target.getUniqueId()) || plugin.getPlayers().hasIsland(target.getUniqueId())) {
              plugin.getGrid().homeTeleport(target);
            }
 else {
              if (!target.performCommand(Settings.SPAWNCOMMAND)) {
                target.teleport(player.getWorld().getSpawnLocation());
              }
            }
            target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).expelExpelled);
            plugin.getLogger().info(player.getName() + "String_Node_Str" + target.getName()+ "String_Node_Str");
            player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).expelSuccess.replace("String_Node_Str",target.getDisplayName()));
          }
        }
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).lockLocking);
        Messages.tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
        Messages.tellTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
        island.setLocked(true);
      }
 else {
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).lockUnlocking);
        Messages.tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerUnlocked.replace("String_Node_Str",player.getDisplayName()));
        Messages.tellTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerUnlocked.replace("String_Node_Str",player.getDisplayName()));
        island.setLocked(false);
      }
      return true;
    }
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoIsland);
      return true;
    }
    plugin.getGrid().homeTeleport(player);
    if (Settings.islandRemoveMobs) {
      plugin.getGrid().removeMobs(player.getLocation());
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    player.sendMessage("String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    return true;
  }
if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.openInventory(ControlPanel.controlPanel.get(ControlPanel.getDefaultPanelName()));
    return true;
  }
}
if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (Settings.useEconomy) {
  if (player.getWorld().getName().equalsIgnoreCase(Settings.worldName)) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.openInventory(ControlPanel.miniShop);
      return true;
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorWrongWorld);
    return true;
  }
}
}
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpWarp);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Set<UUID> warpList=WarpSigns.listWarps();
if (warpList.isEmpty()) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).warpserrorNoWarpsYet);
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getGrid().playerIsOnIsland(player)) {
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale().warpswarpTip);
  }
  return true;
}
 else {
  Boolean hasWarp=false;
  String wlist="String_Node_Str";
  for (  UUID w : warpList) {
    if (wlist.isEmpty()) {
      wlist=plugin.getPlayers().getName(w);
    }
 else {
      wlist+="String_Node_Str" + plugin.getPlayers().getName(w);
    }
    if (w.equals(playerUUID)) {
      hasWarp=true;
    }
  }
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).warpswarpsAvailable + "String_Node_Str"+ ChatColor.WHITE+ wlist);
  if (!hasWarp && (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str"))) {
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale().warpswarpTip);
  }
  return true;
}
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (!plugin.getPlayers().hasIsland(playerUUID)) {
player.performCommand(Settings.ISLANDCOMMAND);
return true;
}
if (plugin.getPlayers().inTeam(playerUUID)) {
if (!plugin.getPlayers().getTeamLeader(playerUUID).equals(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islandresetOnlyOwner);
}
 else {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetMustRemovePlayers);
}
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islandResetNoMore);
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
if (!onRestartWaitTime(player) || Settings.resetWait == 0 || player.isOp()) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islandresetConfirm.replace("String_Node_Str",String.valueOf(Settings.resetConfirmWait)));
if (!confirm.containsKey(playerUUID) || !confirm.get(playerUUID)) {
  confirm.put(playerUUID,true);
  plugin.getServer().getScheduler().runTaskLater(plugin,new Runnable(){
    @Override public void run(){
      confirm.put(playerUUID,false);
    }
  }
,(Settings.resetConfirmWait * 20));
}
return true;
}
 else {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetWait.replace("String_Node_Str",String.valueOf(getResetWaitTime(player))));
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (confirm.containsKey(playerUUID) && confirm.get(playerUUID)) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetPleaseWait);
plugin.getPlayers().setResetsLeft(playerUUID,plugin.getPlayers().getResetsLeft(playerUUID) - 1);
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandResetNoMore);
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
List<Schematic> schems=getSchematics(player,false);
if (schems.isEmpty()) {
  Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
  newIsland(player);
  resetPlayer(player,oldIsland);
}
 else if (schems.size() == 1) {
  Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
  newIsland(player,schems.get(0));
  resetPlayer(player,oldIsland);
}
 else {
  if (Settings.useSchematicPanel) {
    pendingNewIslandSelection.add(playerUUID);
    player.openInventory(SchematicsPanel.getSchematicPanel(player));
  }
 else {
    Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
    schems=getSchematics(player,true);
    if (schems.isEmpty()) {
      newIsland(player);
    }
 else {
      newIsland(player,schems.get(0));
    }
    resetPlayer(player,oldIsland);
  }
}
return true;
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpRestart);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
plugin.getGrid().homeSet(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
player.sendMessage(ChatColor.GREEN + plugin.getName() + "String_Node_Str"+ plugin.getDescription().getVersion()+ "String_Node_Str");
if (Settings.useControlPanel) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpControlPanel);
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpIsland);
}
if (Settings.maxHomes > 1 && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ Settings.maxHomes+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTeleport);
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTeleport);
}
if (plugin.getGrid() != null && plugin.getGrid().getSpawn() != null) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpSpawn);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpControlPanel);
}
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpRestart);
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (Settings.maxHomes > 1) {
  player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ Settings.maxHomes+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpSetHome);
}
 else {
  player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpSetHome);
}
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpLevel);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpLevelPlayer);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTop);
}
if (Settings.useEconomy && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpMiniShop);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpWarps);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpWarp);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTeam);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpInvite);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpLeave);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpKick);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpAcceptReject);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpMakeLeader);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpBiome);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpExpel);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpCoop);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpLock);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpSettings);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + plugin.myLocale(player.getUniqueId()).islandHelpChallenges);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str");
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (teamLeader != null && !teamLeader.equals(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).levelerrornotYourIsland);
  return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
  return true;
}
if (!plugin.getGrid().playerIsOnIsland(player)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).challengeserrorNotOnIsland);
  return true;
}
Inventory inv=BiomesPanel.getBiomePanel(player);
if (inv != null) {
  player.openInventory(inv);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") && plugin.getGrid().getSpawn() != null) {
player.teleport(ASkyBlock.getIslandWorld().getSpawnLocation());
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
TopTen.topTenShow(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (plugin.getGrid().playerIsOnIsland(player)) {
  if (!plugin.getPlayers().inTeam(playerUUID) && !plugin.getPlayers().hasIsland(playerUUID)) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
  }
 else {
    calculateIslandLevel(player,playerUUID);
  }
  return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).challengeserrorNotOnIsland);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + ChatColor.WHITE+ "String_Node_Str"+ label+ "String_Node_Str"+ plugin.myLocale(player.getUniqueId()).helpColor+ plugin.myLocale(player.getUniqueId()).islandhelpInvite);
if (plugin.getPlayers().inTeam(playerUUID)) {
  if (teamLeader.equals(playerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYourIslandIsFull);
    }
    return true;
  }
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
  return true;
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID) && inviteList.containsKey(playerUUID)) {
  if (plugin.getPlayers().hasIsland(playerUUID)) {
    plugin.getLogger().info(player.getName() + "String_Node_Str");
    plugin.deletePlayerIsland(playerUUID,true);
    plugin.getLogger().info("String_Node_Str");
  }
  addPlayertoTeam(playerUUID,inviteList.get(playerUUID));
  if (!plugin.getPlayers().inTeam(inviteList.get(playerUUID))) {
    addPlayertoTeam(inviteList.get(playerUUID),inviteList.get(playerUUID));
  }
  setResetWaitTime(player);
  plugin.getGrid().homeTeleport(player);
  plugin.resetPlayer(player);
  player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteyouHaveJoinedAnIsland);
  if (Bukkit.getPlayer(inviteList.get(playerUUID)) != null) {
    Bukkit.getPlayer(inviteList.get(playerUUID)).sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).invitehasJoinedYourIsland.replace("String_Node_Str",player.getName()));
  }
  inviteList.remove(player.getUniqueId());
  return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (inviteList.containsKey(player.getUniqueId())) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).rejectyouHaveRejectedInvitation);
if (Bukkit.getPlayer(inviteList.get(player.getUniqueId())) != null) {
  Bukkit.getPlayer(inviteList.get(player.getUniqueId())).sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).rejectnameHasRejectedInvite.replace("String_Node_Str",player.getName()));
}
inviteList.remove(player.getUniqueId());
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).rejectyouHaveNotBeenInvited);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (player.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
  if (plugin.getPlayers().inTeam(playerUUID)) {
    if (plugin.getPlayers().getTeamLeader(playerUUID).equals(playerUUID)) {
      player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).leaveerrorYouAreTheLeader);
      return true;
    }
    CoopPlay.getInstance().clearMyInvitedCoops(player);
    CoopPlay.getInstance().clearMyCoops(player);
    plugin.getPlayers().startInviteCoolDownTimer(playerUUID,plugin.getPlayers().getTeamIslandLocation(teamLeader));
    removePlayerFromTeam(playerUUID,teamLeader);
    WarpSigns.removeWarp(playerUUID);
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).leaveyouHaveLeftTheIsland);
    if (plugin.getServer().getPlayer(teamLeader) != null) {
      plugin.getServer().getPlayer(teamLeader).sendMessage(ChatColor.RED + plugin.myLocale(teamLeader).leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
 else {
      Messages.setMessage(teamLeader,ChatColor.RED + plugin.myLocale(teamLeader).leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
    if (teamMembers.size() < 2) {
      removePlayerFromTeam(teamLeader,teamLeader);
    }
    plugin.resetPlayer(player);
    if (!player.performCommand(Settings.SPAWNCOMMAND)) {
      player.teleport(player.getWorld().getSpawnLocation());
    }
    return true;
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).leaveerrorYouCannotLeaveIsland);
    return true;
  }
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).leaveerrorYouMustBeInWorld);
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
  int maxSize=Settings.maxTeamSize;
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP;
  }
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP2;
  }
  if (teamMembers.size() < maxSize) {
    player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYourIslandIsFull);
  }
}
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).teamlistingMembers + "String_Node_Str");
for (UUID m : plugin.getPlayers().getMembers(teamLeader)) {
  player.sendMessage(ChatColor.WHITE + plugin.getPlayers().getName(m));
}
}
 else if (inviteList.containsKey(playerUUID)) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).invitenameHasInvitedYou.replace("String_Node_Str",plugin.getPlayers().getName(inviteList.get(playerUUID))));
player.sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ plugin.myLocale(player.getUniqueId()).invitetoAcceptOrReject);
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNoTeam);
}
return true;
}
 else {
return false;
}
case 2:
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!pendingNewIslandSelection.contains(playerUUID)) {
return false;
}
pendingNewIslandSelection.remove(playerUUID);
if (!schematics.containsKey(split[1])) {
return false;
}
 else {
Schematic schematic=schematics.get(split[1]);
if (schematic.getPerm().isEmpty() || VaultHelper.checkPerm(player,schematic.getPerm())) {
Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
newIsland(player,schematic);
if (resettingIsland.contains(playerUUID)) {
  resettingIsland.remove(playerUUID);
  resetPlayer(player,oldIsland);
}
return true;
}
 else {
return false;
}
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else {
player.sendMessage("String_Node_Str" + label + "String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
return true;
}
player.sendMessage("String_Node_Str");
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
int number=1;
try {
number=Integer.valueOf(split[1]);
if (number < 1) {
  plugin.getGrid().homeTeleport(player,1);
}
if (number > Settings.maxHomes) {
  if (Settings.maxHomes > 1) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(Settings.maxHomes)));
  }
 else {
    plugin.getGrid().homeTeleport(player,1);
  }
}
 else {
  plugin.getGrid().homeTeleport(player,number);
}
}
 catch (Exception e) {
plugin.getGrid().homeTeleport(player,1);
}
if (Settings.islandRemoveMobs) {
plugin.getGrid().removeMobs(player.getLocation());
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (Settings.maxHomes > 1) {
int number=0;
try {
  number=Integer.valueOf(split[1]);
  if (number < 0 || number > Settings.maxHomes) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(Settings.maxHomes)));
  }
 else {
    plugin.getGrid().homeSet(player,number);
  }
}
 catch (Exception e) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(Settings.maxHomes)));
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final Set<UUID> warpList=WarpSigns.listWarps();
if (warpList.isEmpty()) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).warpserrorNoWarpsYet);
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale().warpswarpTip);
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return true;
}
 else {
UUID foundWarp=null;
for (UUID warp : warpList) {
  if (plugin.getPlayers().getName(warp).toLowerCase().startsWith(split[1].toLowerCase())) {
    foundWarp=warp;
    break;
  }
}
if (foundWarp == null) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
  return true;
}
 else {
  final Location warpSpot=WarpSigns.getWarp(foundWarp);
  if (warpSpot == null) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorNotReadyYet);
    plugin.getLogger().warning("String_Node_Str" + plugin.getPlayers().getName(foundWarp));
    return true;
  }
  Block b=warpSpot.getBlock();
  if (b.getType().equals(Material.SIGN_POST)) {
    Sign sign=(Sign)b.getState();
    org.bukkit.material.Sign s=(org.bukkit.material.Sign)sign.getData();
    BlockFace directionFacing=s.getFacing();
    Location inFront=b.getRelative(directionFacing).getLocation();
    if ((GridManager.isSafeLocation(inFront))) {
      float yaw=Util.blockFaceToFloat(directionFacing);
      final Location actualWarp=new Location(inFront.getWorld(),inFront.getBlockX() + 0.5D,inFront.getBlockY(),inFront.getBlockZ() + 0.5D,yaw,30F);
      player.teleport(actualWarp);
      player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
      Player warpOwner=plugin.getServer().getPlayer(foundWarp);
      if (warpOwner != null) {
        warpOwner.sendMessage(plugin.myLocale(foundWarp).warpsPlayerWarped.replace("String_Node_Str",player.getDisplayName()));
      }
      return true;
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
    WarpSigns.removeWarp(warpSpot);
    return true;
  }
  if (!(GridManager.isSafeLocation(warpSpot))) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorNotSafe);
    plugin.getLogger().warning("String_Node_Str" + warpSpot.toString() + "String_Node_Str"+ plugin.getPlayers().getName(foundWarp));
    return true;
  }
 else {
    final Location actualWarp=new Location(warpSpot.getWorld(),warpSpot.getBlockX() + 0.5D,warpSpot.getBlockY(),warpSpot.getBlockZ() + 0.5D);
    player.teleport(actualWarp);
    player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
    return true;
  }
}
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID targetPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (targetPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (plugin.getPlayers().hasIsland(targetPlayerUUID) || plugin.getPlayers().inTeam(targetPlayerUUID)) {
calculateIslandLevel(player,targetPlayerUUID);
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIslandOther);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (plugin.getServer().getPlayer(invitedPlayerUUID) == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouCannotInviteYourself);
return true;
}
long time=plugin.getPlayers().getInviteCoolDownTime(invitedPlayerUUID,plugin.getPlayers().getIslandLocation(playerUUID));
if (time > 0 && !player.isOp()) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorCoolDown.replace("String_Node_Str",String.valueOf(time)));
return true;
}
if (plugin.getPlayers().inTeam(player.getUniqueId())) {
if (teamLeader.equals(player.getUniqueId())) {
  if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      if (inviteList.containsValue(playerUUID)) {
        inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
        player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).inviteremovingInvite);
      }
      inviteList.put(invitedPlayerUUID,player.getUniqueId());
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteinviteSentTo.replace("String_Node_Str",split[1]));
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(plugin.myLocale(invitedPlayerUUID).invitenameHasInvitedYou.replace("String_Node_Str",player.getName()));
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ "String_Node_Str"+ plugin.myLocale(invitedPlayerUUID).invitetoAcceptOrReject);
      if (plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
        Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + plugin.myLocale(invitedPlayerUUID).invitewarningYouWillLoseIsland);
      }
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYourIslandIsFull);
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorThatPlayerIsAlreadyInATeam);
  }
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
}
}
 else {
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
  if (inviteList.containsValue(playerUUID)) {
    inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).inviteremovingInvite);
  }
  inviteList.put(invitedPlayerUUID,player.getUniqueId());
  player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteinviteSentTo.replace("String_Node_Str",split[1]));
  Bukkit.getPlayer(invitedPlayerUUID).sendMessage(plugin.myLocale(invitedPlayerUUID).invitenameHasInvitedYou.replace("String_Node_Str",player.getName()));
  Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ "String_Node_Str"+ plugin.myLocale(invitedPlayerUUID).invitetoAcceptOrReject);
  if (plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
    Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + plugin.myLocale(invitedPlayerUUID).invitewarningYouWillLoseIsland);
  }
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorThatPlayerIsAlreadyInATeam);
}
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
Player newPlayer=plugin.getServer().getPlayer(invitedPlayerUUID);
if (newPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().getMembers(playerUUID).contains(invitedPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).coopOnYourTeam);
return true;
}
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
if (!plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIslandOther);
  return true;
}
}
CoopPlay.getInstance().addCoopPlayer(player,newPlayer);
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopSuccess.replace("String_Node_Str",newPlayer.getDisplayName()));
newPlayer.sendMessage(ChatColor.GREEN + plugin.myLocale(newPlayer.getUniqueId()).coopMadeYouCoop.replace("String_Node_Str",player.getDisplayName()));
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
final UUID targetPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (targetPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (targetPlayerUUID.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).expelNotYourself);
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
if (target == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
if (target.isOp() || VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).expelFail.replace("String_Node_Str",target.getDisplayName()));
return true;
}
boolean coop=CoopPlay.getInstance().removeCoopPlayer(player,target);
if (coop) {
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopRemoveSuccess.replace("String_Node_Str",target.getDisplayName()));
}
if (plugin.getGrid().isOnIsland(player,target)) {
if (plugin.getPlayers().inTeam(targetPlayerUUID) || plugin.getPlayers().hasIsland(targetPlayerUUID)) {
plugin.getGrid().homeTeleport(target);
}
 else {
if (!target.performCommand(Settings.SPAWNCOMMAND)) {
  target.teleport(player.getWorld().getSpawnLocation());
}
}
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).expelExpelled);
plugin.getLogger().info(player.getName() + "String_Node_Str" + target.getName()+ "String_Node_Str");
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).expelSuccess.replace("String_Node_Str",target.getDisplayName()));
}
 else if (!coop) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).expelNotOnIsland);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNoTeam);
return true;
}
if (teamLeader != null && !teamLeader.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorOnlyLeaderCan);
return true;
}
targetPlayer=null;
for (UUID member : teamMembers) {
if (plugin.getPlayers().getName(member).equalsIgnoreCase(split[1])) {
  targetPlayer=member;
}
}
if (targetPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNotPartOfTeam);
return true;
}
if (teamMembers.contains(targetPlayer)) {
if (player.getUniqueId().equals(targetPlayer)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).leaveerrorLeadersCannotLeave);
  return true;
}
Player target=plugin.getServer().getPlayer(targetPlayer);
if (target != null) {
  target.sendMessage(ChatColor.RED + plugin.myLocale(targetPlayer).kicknameRemovedYou.replace("String_Node_Str",player.getName()));
  plugin.getPlayers().startInviteCoolDownTimer(targetPlayer,plugin.getPlayers().getIslandLocation(playerUUID));
  CoopPlay.getInstance().clearMyInvitedCoops(target);
  CoopPlay.getInstance().clearMyCoops(target);
  if (target.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
    for (    ItemStack i : target.getInventory().getContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    for (    ItemStack i : target.getEquipment().getArmorContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    target.getInventory().clear();
    target.getInventory().setArmorContents(null);
    target.getInventory().setHelmet(null);
    target.getInventory().setChestplate(null);
    target.getInventory().setLeggings(null);
    target.getInventory().setBoots(null);
    target.getEquipment().clear();
    if (Settings.resetChallenges) {
      plugin.getPlayers().resetAllChallenges(target.getUniqueId());
    }
    plugin.getPlayers().setIslandLevel(target.getUniqueId(),0);
    plugin.getPlayers().save(target.getUniqueId());
    TopTen.topTenAddEntry(playerUUID,0);
    target.updateInventory();
  }
  if (!target.performCommand(Settings.SPAWNCOMMAND)) {
    target.teleport(ASkyBlock.getIslandWorld().getSpawnLocation());
  }
}
 else {
  Messages.setMessage(targetPlayer,ChatColor.RED + plugin.myLocale(player.getUniqueId()).kicknameRemovedYou.replace("String_Node_Str",player.getName()));
}
WarpSigns.removeWarp(targetPlayer);
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kicknameRemoved.replace("String_Node_Str",split[1]));
removePlayerFromTeam(targetPlayer,teamLeader);
teamMembers.remove(targetPlayer);
if (teamMembers.size() < 2) {
  removePlayerFromTeam(player.getUniqueId(),teamLeader);
}
plugin.getPlayers().save(targetPlayer);
}
 else {
plugin.getLogger().warning("String_Node_Str" + player.getName() + "String_Node_Str"+ plugin.getPlayers().getName(targetPlayer));
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNotPartOfTeam);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
targetPlayer=plugin.getPlayers().getUUID(split[1]);
if (targetPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (targetPlayer.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorGeneralError);
return true;
}
if (!plugin.getPlayers().inTeam(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorYouMustBeInTeam);
return true;
}
if (plugin.getPlayers().getMembers(player.getUniqueId()).size() > 2) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorRemoveAllPlayersFirst);
plugin.getLogger().info(player.getName() + "String_Node_Str");
return true;
}
if (plugin.getPlayers().inTeam(player.getUniqueId())) {
if (teamLeader.equals(player.getUniqueId())) {
  if (teamMembers.contains(targetPlayer)) {
    if (plugin.getServer().getPlayer(targetPlayer) != null) {
      plugin.getServer().getPlayer(targetPlayer).sendMessage(ChatColor.GREEN + plugin.myLocale(targetPlayer).makeLeaderyouAreNowTheOwner);
    }
 else {
      Messages.setMessage(targetPlayer,plugin.myLocale(player.getUniqueId()).makeLeaderyouAreNowTheOwner);
    }
    player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).makeLeadernameIsNowTheOwner.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayer)));
    removePlayerFromTeam(targetPlayer,teamLeader);
    removePlayerFromTeam(teamLeader,teamLeader);
    plugin.getGrid().transferIsland(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(targetPlayer,targetPlayer);
    return true;
  }
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorThatPlayerIsNotInTeam);
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorNotYourIsland);
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorGeneralError);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else {
return false;
}
}
return false;
}

Fixed version (ground truth):
@Override public boolean onCommand(final CommandSender sender,final Command command,final String label,final String[] split){
  if (!(sender instanceof Player)) {
    return false;
  }
  final Player player=(Player)sender;
  if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islanderrorYouDoNotHavePermission);
    return true;
  }
  final UUID playerUUID=player.getUniqueId();
  final UUID teamLeader=plugin.getPlayers().getTeamLeader(playerUUID);
  List<UUID> teamMembers=new ArrayList<UUID>();
  if (teamLeader != null) {
    teamMembers=plugin.getPlayers().getMembers(teamLeader);
  }
  UUID targetPlayer=null;
switch (split.length) {
case 0:
    if (plugin.getPlayers().getIslandLocation(playerUUID) == null && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).islandnew);
      chooseIsland(player);
      return true;
    }
 else {
      if (Settings.useControlPanel) {
        player.performCommand(Settings.ISLANDCOMMAND + "String_Node_Str");
      }
 else {
        if (!player.getWorld().getName().equalsIgnoreCase(Settings.worldName) || Settings.allowTeleportWhenFalling || !IslandGuard.isFalling(playerUUID)|| (player.isOp() && !Settings.damageOps)) {
          plugin.getGrid().homeTeleport(player);
          if (Settings.islandRemoveMobs) {
            plugin.getGrid().removeMobs(player.getLocation());
          }
        }
 else {
          player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
        }
      }
      return true;
    }
case 1:
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!pendingNewIslandSelection.contains(playerUUID)) {
      return false;
    }
    pendingNewIslandSelection.remove(playerUUID);
    Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
    newIsland(player);
    if (resettingIsland.contains(playerUUID)) {
      resettingIsland.remove(playerUUID);
      resetPlayer(player,oldIsland);
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.sendMessage("String_Node_Str" + label + "String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
      player.sendMessage("String_Node_Str");
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.openInventory(SettingsPanel.islandGuardPanel());
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
      return true;
    }
    Island island=plugin.getGrid().getIsland(playerUUID);
    if (island == null) {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
      return true;
    }
 else {
      if (!island.isLocked()) {
        for (        Player target : plugin.getServer().getOnlinePlayers()) {
          if (!player.equals(target) && !target.isOp() && !VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str")&& (target.getWorld().equals(ASkyBlock.getIslandWorld()) || target.getWorld().equals(ASkyBlock.getNetherWorld()))&& plugin.getGrid().isOnIsland(player,target)&& !CoopPlay.getInstance().getCoopPlayers(island.getCenter()).contains(target.getUniqueId())) {
            if (plugin.getPlayers().inTeam(target.getUniqueId()) || plugin.getPlayers().hasIsland(target.getUniqueId())) {
              plugin.getGrid().homeTeleport(target);
            }
 else {
              if (!target.performCommand(Settings.SPAWNCOMMAND)) {
                target.teleport(player.getWorld().getSpawnLocation());
              }
            }
            target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).expelExpelled);
            plugin.getLogger().info(player.getName() + "String_Node_Str" + target.getName()+ "String_Node_Str");
            player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).expelSuccess.replace("String_Node_Str",target.getDisplayName()));
          }
        }
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).lockLocking);
        Messages.tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
        Messages.tellTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
        island.setLocked(true);
      }
 else {
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).lockUnlocking);
        Messages.tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerUnlocked.replace("String_Node_Str",player.getDisplayName()));
        Messages.tellTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerUnlocked.replace("String_Node_Str",player.getDisplayName()));
        island.setLocked(false);
      }
      return true;
    }
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoIsland);
      return true;
    }
    plugin.getGrid().homeTeleport(player);
    if (Settings.islandRemoveMobs) {
      plugin.getGrid().removeMobs(player.getLocation());
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    player.sendMessage("String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
    return true;
  }
if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.openInventory(ControlPanel.controlPanel.get(ControlPanel.getDefaultPanelName()));
    return true;
  }
}
if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (Settings.useEconomy) {
  if (player.getWorld().getName().equalsIgnoreCase(Settings.worldName)) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      player.openInventory(ControlPanel.miniShop);
      return true;
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorWrongWorld);
    return true;
  }
}
}
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpWarp);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Set<UUID> warpList=WarpSigns.listWarps();
if (warpList.isEmpty()) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).warpserrorNoWarpsYet);
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getGrid().playerIsOnIsland(player)) {
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale().warpswarpTip);
  }
  return true;
}
 else {
  Boolean hasWarp=false;
  String wlist="String_Node_Str";
  for (  UUID w : warpList) {
    if (wlist.isEmpty()) {
      wlist=plugin.getPlayers().getName(w);
    }
 else {
      wlist+="String_Node_Str" + plugin.getPlayers().getName(w);
    }
    if (w.equals(playerUUID)) {
      hasWarp=true;
    }
  }
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).warpswarpsAvailable + "String_Node_Str"+ ChatColor.WHITE+ wlist);
  if (!hasWarp && (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str"))) {
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale().warpswarpTip);
  }
  return true;
}
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (!plugin.getPlayers().hasIsland(playerUUID)) {
player.performCommand(Settings.ISLANDCOMMAND);
return true;
}
if (plugin.getPlayers().inTeam(playerUUID)) {
if (!plugin.getPlayers().getTeamLeader(playerUUID).equals(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islandresetOnlyOwner);
}
 else {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetMustRemovePlayers);
}
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islandResetNoMore);
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
if (!onRestartWaitTime(player) || Settings.resetWait == 0 || player.isOp()) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).islandresetConfirm.replace("String_Node_Str",String.valueOf(Settings.resetConfirmWait)));
if (!confirm.containsKey(playerUUID) || !confirm.get(playerUUID)) {
  confirm.put(playerUUID,true);
  plugin.getServer().getScheduler().runTaskLater(plugin,new Runnable(){
    @Override public void run(){
      confirm.put(playerUUID,false);
    }
  }
,(Settings.resetConfirmWait * 20));
}
return true;
}
 else {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetWait.replace("String_Node_Str",String.valueOf(getResetWaitTime(player))));
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (confirm.containsKey(playerUUID) && confirm.get(playerUUID)) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetPleaseWait);
plugin.getPlayers().setResetsLeft(playerUUID,plugin.getPlayers().getResetsLeft(playerUUID) - 1);
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandResetNoMore);
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
List<Schematic> schems=getSchematics(player,false);
if (schems.isEmpty()) {
  Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
  newIsland(player);
  resetPlayer(player,oldIsland);
}
 else if (schems.size() == 1) {
  Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
  newIsland(player,schems.get(0));
  resetPlayer(player,oldIsland);
}
 else {
  if (Settings.useSchematicPanel) {
    pendingNewIslandSelection.add(playerUUID);
    player.openInventory(SchematicsPanel.getSchematicPanel(player));
  }
 else {
    Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
    schems=getSchematics(player,true);
    if (schems.isEmpty()) {
      newIsland(player);
    }
 else {
      newIsland(player,schems.get(0));
    }
    resetPlayer(player,oldIsland);
  }
}
return true;
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpRestart);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
plugin.getGrid().homeSet(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
player.sendMessage(ChatColor.GREEN + plugin.getName() + "String_Node_Str"+ plugin.getDescription().getVersion()+ "String_Node_Str");
if (Settings.useControlPanel) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpControlPanel);
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpIsland);
}
if (Settings.maxHomes > 1 && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ Settings.maxHomes+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTeleport);
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTeleport);
}
if (plugin.getGrid() != null && plugin.getGrid().getSpawn() != null) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpSpawn);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpControlPanel);
}
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpRestart);
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (Settings.maxHomes > 1) {
  player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ Settings.maxHomes+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpSetHome);
}
 else {
  player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpSetHome);
}
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpLevel);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpLevelPlayer);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTop);
}
if (Settings.useEconomy && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpMiniShop);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpWarps);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpWarp);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpTeam);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpInvite);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpLeave);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpKick);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpAcceptReject);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpMakeLeader);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpBiome);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpExpel);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpCoop);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpLock);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpSettings);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + plugin.myLocale(player.getUniqueId()).islandHelpChallenges);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str");
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (teamLeader != null && !teamLeader.equals(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).levelerrornotYourIsland);
  return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
  return true;
}
if (!plugin.getGrid().playerIsOnIsland(player)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).challengeserrorNotOnIsland);
  return true;
}
Inventory inv=BiomesPanel.getBiomePanel(player);
if (inv != null) {
  player.openInventory(inv);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") && plugin.getGrid().getSpawn() != null) {
player.teleport(ASkyBlock.getIslandWorld().getSpawnLocation());
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
TopTen.topTenShow(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (plugin.getGrid().playerIsOnIsland(player)) {
  if (!plugin.getPlayers().inTeam(playerUUID) && !plugin.getPlayers().hasIsland(playerUUID)) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
  }
 else {
    calculateIslandLevel(player,playerUUID);
  }
  return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).challengeserrorNotOnIsland);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + ChatColor.WHITE+ "String_Node_Str"+ label+ "String_Node_Str"+ plugin.myLocale(player.getUniqueId()).helpColor+ plugin.myLocale(player.getUniqueId()).islandhelpInvite);
if (plugin.getPlayers().inTeam(playerUUID)) {
  if (teamLeader.equals(playerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYourIslandIsFull);
    }
    return true;
  }
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
  return true;
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID) && inviteList.containsKey(playerUUID)) {
  if (plugin.getPlayers().hasIsland(playerUUID)) {
    plugin.getLogger().info(player.getName() + "String_Node_Str");
    plugin.deletePlayerIsland(playerUUID,true);
    plugin.getLogger().info("String_Node_Str");
  }
  addPlayertoTeam(playerUUID,inviteList.get(playerUUID));
  if (!plugin.getPlayers().inTeam(inviteList.get(playerUUID))) {
    addPlayertoTeam(inviteList.get(playerUUID),inviteList.get(playerUUID));
  }
  setResetWaitTime(player);
  plugin.getGrid().homeTeleport(player);
  plugin.resetPlayer(player);
  player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteyouHaveJoinedAnIsland);
  if (Bukkit.getPlayer(inviteList.get(playerUUID)) != null) {
    Bukkit.getPlayer(inviteList.get(playerUUID)).sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).invitehasJoinedYourIsland.replace("String_Node_Str",player.getName()));
  }
  inviteList.remove(player.getUniqueId());
  return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (inviteList.containsKey(player.getUniqueId())) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).rejectyouHaveRejectedInvitation);
if (Bukkit.getPlayer(inviteList.get(player.getUniqueId())) != null) {
  Bukkit.getPlayer(inviteList.get(player.getUniqueId())).sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).rejectnameHasRejectedInvite.replace("String_Node_Str",player.getName()));
}
inviteList.remove(player.getUniqueId());
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).rejectyouHaveNotBeenInvited);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (player.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
  if (plugin.getPlayers().inTeam(playerUUID)) {
    if (plugin.getPlayers().getTeamLeader(playerUUID).equals(playerUUID)) {
      player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).leaveerrorYouAreTheLeader);
      return true;
    }
    CoopPlay.getInstance().clearMyInvitedCoops(player);
    CoopPlay.getInstance().clearMyCoops(player);
    plugin.getPlayers().startInviteCoolDownTimer(playerUUID,plugin.getPlayers().getTeamIslandLocation(teamLeader));
    removePlayerFromTeam(playerUUID,teamLeader);
    WarpSigns.removeWarp(playerUUID);
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).leaveyouHaveLeftTheIsland);
    if (plugin.getServer().getPlayer(teamLeader) != null) {
      plugin.getServer().getPlayer(teamLeader).sendMessage(ChatColor.RED + plugin.myLocale(teamLeader).leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
 else {
      Messages.setMessage(teamLeader,ChatColor.RED + plugin.myLocale(teamLeader).leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
    if (teamMembers.size() < 2) {
      removePlayerFromTeam(teamLeader,teamLeader);
    }
    plugin.resetPlayer(player);
    if (!player.performCommand(Settings.SPAWNCOMMAND)) {
      player.teleport(player.getWorld().getSpawnLocation());
    }
    return true;
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).leaveerrorYouCannotLeaveIsland);
    return true;
  }
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).leaveerrorYouMustBeInWorld);
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
  int maxSize=Settings.maxTeamSize;
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP;
  }
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP2;
  }
  if (teamMembers.size() < maxSize) {
    player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYourIslandIsFull);
  }
}
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).teamlistingMembers + "String_Node_Str");
for (UUID m : plugin.getPlayers().getMembers(teamLeader)) {
  player.sendMessage(ChatColor.WHITE + plugin.getPlayers().getName(m));
}
}
 else if (inviteList.containsKey(playerUUID)) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).invitenameHasInvitedYou.replace("String_Node_Str",plugin.getPlayers().getName(inviteList.get(playerUUID))));
player.sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ plugin.myLocale(player.getUniqueId()).invitetoAcceptOrReject);
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNoTeam);
}
return true;
}
 else {
return false;
}
case 2:
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!pendingNewIslandSelection.contains(playerUUID)) {
return false;
}
pendingNewIslandSelection.remove(playerUUID);
if (!schematics.containsKey(split[1])) {
return false;
}
 else {
Schematic schematic=schematics.get(split[1]);
if (schematic.getPerm().isEmpty() || VaultHelper.checkPerm(player,schematic.getPerm())) {
Location oldIsland=plugin.getPlayers().getIslandLocation(player.getUniqueId());
newIsland(player,schematic);
if (resettingIsland.contains(playerUUID)) {
  resettingIsland.remove(playerUUID);
  resetPlayer(player,oldIsland);
}
return true;
}
 else {
return false;
}
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else if (split[1].equalsIgnoreCase("String_Node_Str") || split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setLocale(playerUUID,"String_Node_Str");
}
 else {
player.sendMessage("String_Node_Str" + label + "String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
player.sendMessage("String_Node_Str");
return true;
}
player.sendMessage("String_Node_Str");
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
int number=1;
try {
number=Integer.valueOf(split[1]);
if (number < 1) {
  plugin.getGrid().homeTeleport(player,1);
}
if (number > Settings.maxHomes) {
  if (Settings.maxHomes > 1) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(Settings.maxHomes)));
  }
 else {
    plugin.getGrid().homeTeleport(player,1);
  }
}
 else {
  plugin.getGrid().homeTeleport(player,number);
}
}
 catch (Exception e) {
plugin.getGrid().homeTeleport(player,1);
}
if (Settings.islandRemoveMobs) {
plugin.getGrid().removeMobs(player.getLocation());
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (Settings.maxHomes > 1) {
int number=0;
try {
  number=Integer.valueOf(split[1]);
  if (number < 0 || number > Settings.maxHomes) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(Settings.maxHomes)));
  }
 else {
    plugin.getGrid().homeSet(player,number);
  }
}
 catch (Exception e) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(Settings.maxHomes)));
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final Set<UUID> warpList=WarpSigns.listWarps();
if (warpList.isEmpty()) {
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).warpserrorNoWarpsYet);
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(ChatColor.YELLOW + plugin.myLocale().warpswarpTip);
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return true;
}
 else {
UUID foundWarp=null;
for (UUID warp : warpList) {
  if (plugin.getPlayers().getName(warp).toLowerCase().startsWith(split[1].toLowerCase())) {
    foundWarp=warp;
    break;
  }
}
if (foundWarp == null) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
  return true;
}
 else {
  final Location warpSpot=WarpSigns.getWarp(foundWarp);
  if (warpSpot == null) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorNotReadyYet);
    plugin.getLogger().warning("String_Node_Str" + plugin.getPlayers().getName(foundWarp));
    return true;
  }
  Island island=plugin.getGrid().getIslandAt(warpSpot);
  if (island != null && island.isLocked()) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).lockIslandLocked);
    return true;
  }
  Block b=warpSpot.getBlock();
  if (b.getType().equals(Material.SIGN_POST)) {
    Sign sign=(Sign)b.getState();
    org.bukkit.material.Sign s=(org.bukkit.material.Sign)sign.getData();
    BlockFace directionFacing=s.getFacing();
    Location inFront=b.getRelative(directionFacing).getLocation();
    if ((GridManager.isSafeLocation(inFront))) {
      float yaw=Util.blockFaceToFloat(directionFacing);
      final Location actualWarp=new Location(inFront.getWorld(),inFront.getBlockX() + 0.5D,inFront.getBlockY(),inFront.getBlockZ() + 0.5D,yaw,30F);
      player.teleport(actualWarp);
      player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
      Player warpOwner=plugin.getServer().getPlayer(foundWarp);
      if (warpOwner != null) {
        warpOwner.sendMessage(plugin.myLocale(foundWarp).warpsPlayerWarped.replace("String_Node_Str",player.getDisplayName()));
      }
      return true;
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
    WarpSigns.removeWarp(warpSpot);
    return true;
  }
  if (!(GridManager.isSafeLocation(warpSpot))) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorNotSafe);
    plugin.getLogger().warning("String_Node_Str" + warpSpot.toString() + "String_Node_Str"+ plugin.getPlayers().getName(foundWarp));
    return true;
  }
 else {
    final Location actualWarp=new Location(warpSpot.getWorld(),warpSpot.getBlockX() + 0.5D,warpSpot.getBlockY(),warpSpot.getBlockZ() + 0.5D);
    player.teleport(actualWarp);
    player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
    return true;
  }
}
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID targetPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (targetPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (plugin.getPlayers().hasIsland(targetPlayerUUID) || plugin.getPlayers().inTeam(targetPlayerUUID)) {
calculateIslandLevel(player,targetPlayerUUID);
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIslandOther);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (plugin.getServer().getPlayer(invitedPlayerUUID) == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouCannotInviteYourself);
return true;
}
long time=plugin.getPlayers().getInviteCoolDownTime(invitedPlayerUUID,plugin.getPlayers().getIslandLocation(playerUUID));
if (time > 0 && !player.isOp()) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorCoolDown.replace("String_Node_Str",String.valueOf(time)));
return true;
}
if (plugin.getPlayers().inTeam(player.getUniqueId())) {
if (teamLeader.equals(player.getUniqueId())) {
  if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      if (inviteList.containsValue(playerUUID)) {
        inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
        player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).inviteremovingInvite);
      }
      inviteList.put(invitedPlayerUUID,player.getUniqueId());
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteinviteSentTo.replace("String_Node_Str",split[1]));
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(plugin.myLocale(invitedPlayerUUID).invitenameHasInvitedYou.replace("String_Node_Str",player.getName()));
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ "String_Node_Str"+ plugin.myLocale(invitedPlayerUUID).invitetoAcceptOrReject);
      if (plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
        Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + plugin.myLocale(invitedPlayerUUID).invitewarningYouWillLoseIsland);
      }
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYourIslandIsFull);
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorThatPlayerIsAlreadyInATeam);
  }
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
}
}
 else {
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
  if (inviteList.containsValue(playerUUID)) {
    inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
    player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).inviteremovingInvite);
  }
  inviteList.put(invitedPlayerUUID,player.getUniqueId());
  player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).inviteinviteSentTo.replace("String_Node_Str",split[1]));
  Bukkit.getPlayer(invitedPlayerUUID).sendMessage(plugin.myLocale(invitedPlayerUUID).invitenameHasInvitedYou.replace("String_Node_Str",player.getName()));
  Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ "String_Node_Str"+ plugin.myLocale(invitedPlayerUUID).invitetoAcceptOrReject);
  if (plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
    Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + plugin.myLocale(invitedPlayerUUID).invitewarningYouWillLoseIsland);
  }
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorThatPlayerIsAlreadyInATeam);
}
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
Player newPlayer=plugin.getServer().getPlayer(invitedPlayerUUID);
if (newPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().getMembers(playerUUID).contains(invitedPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).coopOnYourTeam);
return true;
}
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
if (!plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIslandOther);
  return true;
}
}
CoopPlay.getInstance().addCoopPlayer(player,newPlayer);
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopSuccess.replace("String_Node_Str",newPlayer.getDisplayName()));
newPlayer.sendMessage(ChatColor.GREEN + plugin.myLocale(newPlayer.getUniqueId()).coopMadeYouCoop.replace("String_Node_Str",player.getDisplayName()));
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
final UUID targetPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (targetPlayerUUID == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (targetPlayerUUID.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).expelNotYourself);
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
if (target == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
if (target.isOp() || VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).expelFail.replace("String_Node_Str",target.getDisplayName()));
return true;
}
boolean coop=CoopPlay.getInstance().removeCoopPlayer(player,target);
if (coop) {
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopRemoveSuccess.replace("String_Node_Str",target.getDisplayName()));
}
if (plugin.getGrid().isOnIsland(player,target)) {
if (plugin.getPlayers().inTeam(targetPlayerUUID) || plugin.getPlayers().hasIsland(targetPlayerUUID)) {
plugin.getGrid().homeTeleport(target);
}
 else {
if (!target.performCommand(Settings.SPAWNCOMMAND)) {
  target.teleport(player.getWorld().getSpawnLocation());
}
}
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).expelExpelled);
plugin.getLogger().info(player.getName() + "String_Node_Str" + target.getName()+ "String_Node_Str");
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).expelSuccess.replace("String_Node_Str",target.getDisplayName()));
}
 else if (!coop) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).expelNotOnIsland);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNoTeam);
return true;
}
if (teamLeader != null && !teamLeader.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorOnlyLeaderCan);
return true;
}
targetPlayer=null;
for (UUID member : teamMembers) {
if (plugin.getPlayers().getName(member).equalsIgnoreCase(split[1])) {
  targetPlayer=member;
}
}
if (targetPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNotPartOfTeam);
return true;
}
if (teamMembers.contains(targetPlayer)) {
if (player.getUniqueId().equals(targetPlayer)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).leaveerrorLeadersCannotLeave);
  return true;
}
Player target=plugin.getServer().getPlayer(targetPlayer);
if (target != null) {
  target.sendMessage(ChatColor.RED + plugin.myLocale(targetPlayer).kicknameRemovedYou.replace("String_Node_Str",player.getName()));
  plugin.getPlayers().startInviteCoolDownTimer(targetPlayer,plugin.getPlayers().getIslandLocation(playerUUID));
  CoopPlay.getInstance().clearMyInvitedCoops(target);
  CoopPlay.getInstance().clearMyCoops(target);
  if (target.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
    for (    ItemStack i : target.getInventory().getContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    for (    ItemStack i : target.getEquipment().getArmorContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    target.getInventory().clear();
    target.getInventory().setArmorContents(null);
    target.getInventory().setHelmet(null);
    target.getInventory().setChestplate(null);
    target.getInventory().setLeggings(null);
    target.getInventory().setBoots(null);
    target.getEquipment().clear();
    if (Settings.resetChallenges) {
      plugin.getPlayers().resetAllChallenges(target.getUniqueId());
    }
    plugin.getPlayers().setIslandLevel(target.getUniqueId(),0);
    plugin.getPlayers().save(target.getUniqueId());
    TopTen.topTenAddEntry(playerUUID,0);
    target.updateInventory();
  }
  if (!target.performCommand(Settings.SPAWNCOMMAND)) {
    target.teleport(ASkyBlock.getIslandWorld().getSpawnLocation());
  }
}
 else {
  Messages.setMessage(targetPlayer,ChatColor.RED + plugin.myLocale(player.getUniqueId()).kicknameRemovedYou.replace("String_Node_Str",player.getName()));
}
WarpSigns.removeWarp(targetPlayer);
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kicknameRemoved.replace("String_Node_Str",split[1]));
removePlayerFromTeam(targetPlayer,teamLeader);
teamMembers.remove(targetPlayer);
if (teamMembers.size() < 2) {
  removePlayerFromTeam(player.getUniqueId(),teamLeader);
}
plugin.getPlayers().save(targetPlayer);
}
 else {
plugin.getLogger().warning("String_Node_Str" + player.getName() + "String_Node_Str"+ plugin.getPlayers().getName(targetPlayer));
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).kickerrorNotPartOfTeam);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
targetPlayer=plugin.getPlayers().getUUID(split[1]);
if (targetPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorUnknownPlayer);
return true;
}
if (targetPlayer.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorGeneralError);
return true;
}
if (!plugin.getPlayers().inTeam(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorYouMustBeInTeam);
return true;
}
if (plugin.getPlayers().getMembers(player.getUniqueId()).size() > 2) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorRemoveAllPlayersFirst);
plugin.getLogger().info(player.getName() + "String_Node_Str");
return true;
}
if (plugin.getPlayers().inTeam(player.getUniqueId())) {
if (teamLeader.equals(player.getUniqueId())) {
  if (teamMembers.contains(targetPlayer)) {
    if (plugin.getServer().getPlayer(targetPlayer) != null) {
      plugin.getServer().getPlayer(targetPlayer).sendMessage(ChatColor.GREEN + plugin.myLocale(targetPlayer).makeLeaderyouAreNowTheOwner);
    }
 else {
      Messages.setMessage(targetPlayer,plugin.myLocale(player.getUniqueId()).makeLeaderyouAreNowTheOwner);
    }
    player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).makeLeadernameIsNowTheOwner.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayer)));
    removePlayerFromTeam(targetPlayer,teamLeader);
    removePlayerFromTeam(teamLeader,teamLeader);
    plugin.getGrid().transferIsland(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(targetPlayer,targetPlayer);
    return true;
  }
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorThatPlayerIsNotInTeam);
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorNotYourIsland);
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).makeLeadererrorGeneralError);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return false;
}
}
 else {
return false;
}
}
return false;
}