Program: 33968
Project: 33968
Buggy source:
@Override public boolean onCommand(final CommandSender sender,final Command command,final String label,final String[] split){
  if (!(sender instanceof Player)) {
    sender.sendMessage(plugin.myLocale().errorUseInGame);
    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);
  }
  if (split.length > 1 && split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().hasIsland(playerUUID)) {
      String name=split[1];
      for (int i=2; i < split.length; i++) {
        name=name + "String_Node_Str" + split[i];
      }
      if (name.length() < Settings.minNameLength) {
        player.sendMessage(ChatColor.RED + (plugin.myLocale(player.getUniqueId()).errorTooShort).replace("String_Node_Str",String.valueOf(Settings.minNameLength)));
        return true;
      }
      if (name.length() > Settings.maxNameLength) {
        player.sendMessage(ChatColor.RED + (plugin.myLocale(player.getUniqueId()).errorTooLong).replace("String_Node_Str",String.valueOf(Settings.maxNameLength)));
        return true;
      }
      plugin.getGrid().setIslandName(playerUUID,ChatColor.translateAlternateColorCodes('&',name));
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).generalSuccess);
      return true;
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
      return true;
    }
  }
  UUID targetPlayer=null;
switch (split.length) {
case 0:
    if (plugin.getPlayers().getIslandLocation(playerUUID) == null && !plugin.getPlayers().inTeam(playerUUID)) {
      if (Settings.maxIslands > 0 && plugin.getGrid().getIslandCount() > Settings.maxIslands) {
        player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorMaxIslands);
        return true;
      }
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).islandnew);
      chooseIsland(player);
      return true;
    }
 else {
      if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().getControlPanel(playerUUID)) {
        player.performCommand(Settings.ISLANDCOMMAND + "String_Node_Str");
      }
 else {
        if (!player.getWorld().getName().equalsIgnoreCase(Settings.worldName) || Settings.allowTeleportWhenFalling || !PlayerEvents.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 (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().hasIsland(playerUUID)) {
      player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpName);
      return true;
    }
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().hasIsland(playerUUID)) {
      plugin.getGrid().setIslandName(playerUUID,null);
      sender.sendMessage(plugin.myLocale().generalSuccess);
    }
    return true;
  }
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" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpCoop);
    return true;
  }
}
 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" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpUnCoop);
    return true;
  }
}
 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" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpExpel);
    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 (!Settings.teamChat) {
      player.sendMessage(ChatColor.RED + plugin.myLocale().errorUnknownCommand);
      return false;
    }
    if (plugin.getPlayers().inTeam(playerUUID)) {
      boolean online=false;
      for (      UUID teamMember : plugin.getPlayers().getMembers(playerUUID)) {
        if (!teamMember.equals(playerUUID) && plugin.getServer().getPlayer(teamMember) != null) {
          online=true;
        }
      }
      if (!online) {
        player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).teamChatNoTeamAround);
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).teamChatStatusOff);
        plugin.getChatListener().unSetPlayer(playerUUID);
        return true;
      }
      if (plugin.getChatListener().isTeamChat(playerUUID)) {
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).teamChatStatusOff);
        plugin.getChatListener().unSetPlayer(playerUUID);
      }
 else {
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).teamChatStatusOn);
        plugin.getChatListener().setPlayer(playerUUID);
      }
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).teamChatNoTeam);
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
  }
  return true;
}
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(plugin.myLocale(playerUUID).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(playerUUID).islandhelpBan);
}
 else {
  player.sendMessage(plugin.myLocale(playerUUID).errorNoPermission);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(plugin.myLocale(playerUUID).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(playerUUID).islandhelpUnban);
}
 else {
  player.sendMessage(plugin.myLocale(playerUUID).errorNoPermission);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!pendingNewIslandSelection.contains(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale().errorUnknownCommand);
  return false;
}
pendingNewIslandSelection.remove(playerUUID);
Island oldIsland=plugin.getGrid().getIsland(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");
  displayLocales(player);
}
 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")) {
  try {
    player.openInventory(plugin.getSettingsPanel().islandGuardPanel(player));
  }
 catch (  Exception e) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
  }
}
 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")&& 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);
    plugin.getMessages().tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
    plugin.getMessages().tellTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
    island.setLocked(true);
  }
 else {
    player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).lockUnlocking);
    plugin.getMessages().tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerUnlocked.replace("String_Node_Str",player.getDisplayName()));
    plugin.getMessages().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 (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
  return true;
}
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(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 (plugin.getGrid().getIsland(player.getUniqueId()) == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
if (player.getWorld().equals(ASkyBlock.getIslandWorld()) || player.getWorld().equals(ASkyBlock.getNetherWorld())) {
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")) {
Collection<UUID> warpList=plugin.getWarpSignsListener().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 {
if (Settings.useWarpPanel) {
player.openInventory(plugin.getWarpPanel().getWarpPanel(0));
}
 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)) {
confirm.remove(playerUUID);
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetPleaseWait);
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);
Island oldIsland=plugin.getGrid().getIsland(player.getUniqueId());
if (schems.isEmpty()) {
newIsland(player);
resetPlayer(player,oldIsland);
}
 else if (schems.size() == 1) {
newIsland(player,schems.get(0));
resetPlayer(player,oldIsland);
}
 else {
if (Settings.useSchematicPanel) {
pendingNewIslandSelection.add(playerUUID);
resettingIsland.add(playerUUID);
player.openInventory(plugin.getSchematicsPanel().getPanel(player));
}
 else {
schems=getSchematics(player,true);
if (schems.isEmpty()) {
  newIsland(player);
}
 else if (Settings.chooseIslandRandomly) {
  newIsland(player,schems.get(random.nextInt(schems.size())));
}
 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")) {
if (plugin.getGrid().getIsland(player.getUniqueId()) == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
plugin.getGrid().homeSet(player);
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 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);
}
int maxHomes=Settings.maxHomes;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
maxHomes=Settings.maxHomes;
break;
}
 else {
String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
if (spl.length > 1) {
  maxHomes=Math.max(maxHomes,Integer.valueOf(spl[1]));
}
}
}
if (maxHomes < 1) {
maxHomes=1;
}
}
if (maxHomes > 1 && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ 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 (maxHomes > 1) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ 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") && plugin.getPlayers().hasIsland(playerUUID)) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpName);
}
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") && plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).teamChatHelp);
}
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()).islandhelpBan);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpUnban);
}
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);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpUnCoop);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpListCoops);
}
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") && plugin.getPlayers().hasIsland(playerUUID)) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpResetName);
}
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"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpSelectLanguage);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Island island=plugin.getGrid().getIsland(playerUUID);
boolean none=true;
for (UUID uuid : CoopPlay.getInstance().getCoopPlayers(island.getCenter())) {
player.sendMessage(ChatColor.GREEN + plugin.getPlayers().getName(uuid));
none=false;
}
if (none) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpCoop);
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + plugin.myLocale(playerUUID).coopUseExpel);
}
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;
}
if (plugin.getPlayers().getIslandLocation(playerUUID).getWorld().getEnvironment().equals(Environment.NETHER)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorWrongWorld);
return true;
}
Inventory inv=plugin.getBiomes().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) {
Location l=ASkyBlock.getIslandWorld().getSpawnLocation();
l.add(new Vector(0.5,0,0.5));
Island spawn=plugin.getGrid().getSpawn();
if (spawn != null && spawn.getSpawnPoint() != null) {
l=spawn.getSpawnPoint();
}
player.teleport(l);
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
TopTen.topTenShow(player);
return true;
}
 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")) {
if (!plugin.getPlayers().inTeam(playerUUID) && !plugin.getPlayers().hasIsland(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
 else {
if (Settings.fastLevelCalc) {
calculateIslandLevel(player,playerUUID);
return true;
}
 else {
if (plugin.getGrid().playerIsOnIsland(player)) {
  calculateIslandLevel(player,playerUUID);
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).challengeserrorNotOnIsland);
}
return true;
}
}
}
 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.sendMessage(plugin.myLocale(player.getUniqueId()).invitehelp);
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
int maxSize=Settings.maxTeamSize;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
  if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
    if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSize;
      break;
    }
 else {
      String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
      if (spl.length > 1) {
        maxSize=Math.max(maxSize,Integer.valueOf(spl[1]));
      }
    }
  }
  if (maxSize < 1) {
    maxSize=1;
  }
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  if (Settings.maxTeamSizeVIP > maxSize) {
    maxSize=Settings.maxTeamSizeVIP;
  }
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  if (Settings.maxTeamSizeVIP2 > maxSize) {
    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;
}
 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")) {
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);
if (Settings.teamJoinDeathReset) {
plugin.getPlayers().setDeaths(player.getUniqueId(),0);
}
plugin.getGrid().homeTeleport(player);
plugin.resetPlayer(player);
if (!player.hasPermission(Settings.PERMPREFIX + "String_Node_Str")) {
runCommands(Settings.teamStartCommands,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());
plugin.getGrid().saveGrid();
return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 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().equals(ASkyBlock.getIslandWorld()) || (Settings.createNether && Settings.newNether && ASkyBlock.getNetherWorld() != null && player.getWorld().equals(ASkyBlock.getNetherWorld()))) {
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);
plugin.getWarpSignsListener().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 {
  plugin.getMessages().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;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
int maxSize=Settings.maxTeamSize;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
  if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSize;
    break;
  }
 else {
    String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
    if (spl.length > 1) {
      maxSize=Math.max(maxSize,Integer.valueOf(spl[1]));
    }
  }
}
if (maxSize < 1) {
  maxSize=1;
}
}
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 {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
case 2:
if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setControlPanel(playerUUID,true);
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setControlPanel(playerUUID,false);
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).generalSuccess);
return true;
}
 else {
player.sendMessage(plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (Settings.useWarpPanel) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Set<UUID> warpList=plugin.getWarpSignsListener().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 {
int panelNum=0;
try {
panelNum=Integer.valueOf(split[1]) - 1;
}
 catch (Exception e) {
panelNum=0;
}
player.openInventory(plugin.getWarpPanel().getWarpPanel(panelNum));
return true;
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!pendingNewIslandSelection.contains(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
pendingNewIslandSelection.remove(playerUUID);
if (!schematics.containsKey(split[1])) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
 else {
Schematic schematic=schematics.get(split[1]);
if (schematic.getPerm().isEmpty() || VaultHelper.checkPerm(player,schematic.getPerm())) {
Island oldIsland=plugin.getGrid().getIsland(player.getUniqueId());
newIsland(player,schematic);
if (resettingIsland.contains(playerUUID)) {
resettingIsland.remove(playerUUID);
resetPlayer(player,oldIsland);
}
return true;
}
 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")) {
if (!NumberUtils.isDigits(split[1])) {
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
return true;
}
 else {
try {
int index=Integer.valueOf(split[1]);
if (index < 1 || index > plugin.getAvailableLocales().size()) {
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
return true;
}
for (ASLocale locale : plugin.getAvailableLocales().values()) {
if (locale.getIndex() == index) {
  plugin.getPlayers().setLocale(playerUUID,locale.getLocaleName());
  player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).generalSuccess);
  return true;
}
}
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
}
 catch (Exception e) {
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
}
}
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);
}
 else {
int maxHomes=Settings.maxHomes;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
  if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
    maxHomes=Settings.maxHomes;
    break;
  }
 else {
    String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
    if (spl.length > 1) {
      maxHomes=Math.max(maxHomes,Integer.valueOf(spl[1]));
    }
  }
}
if (maxHomes < 1) {
  maxHomes=1;
}
}
if (number > maxHomes) {
if (maxHomes > 1) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(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")) {
Island island=plugin.getGrid().getIsland(playerUUID);
if (island == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
int maxHomes=Settings.maxHomes;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
maxHomes=Settings.maxHomes;
break;
}
 else {
String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
if (spl.length > 1) {
  maxHomes=Math.max(maxHomes,Integer.valueOf(spl[1]));
}
}
}
if (maxHomes < 1) {
maxHomes=1;
}
}
if (maxHomes > 1) {
int number=0;
try {
number=Integer.valueOf(split[1]);
if (number < 1 || number > maxHomes) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(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(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=plugin.getWarpSignsListener().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().equals(split[1].toLowerCase())) {
foundWarp=warp;
break;
}
 else if (plugin.getPlayers().getName(warp).toLowerCase().startsWith(split[1].toLowerCase())) {
foundWarp=warp;
}
}
if (foundWarp == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
return true;
}
 else {
final Location warpSpot=plugin.getWarpSignsListener().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 && plugin.getPlayers().isBanned(island.getOwner(),playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).banBanned.replace("String_Node_Str",plugin.getPlayers().getName(island.getOwner())));
if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && !VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  return true;
}
}
if (island != null && island.isLocked() && !player.isOp() && !VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && !VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).lockIslandLocked);
if (!plugin.getGrid().locationIsAtHome(player,true,warpSpot)) {
  return true;
}
}
boolean pvp=false;
if ((warpSpot.getWorld().equals(ASkyBlock.getIslandWorld()) && island.getIgsFlag(Flags.allowPvP)) || (warpSpot.getWorld().equals(ASkyBlock.getNetherWorld()) && island.getIgsFlag(Flags.allowNetherPvP))) {
pvp=true;
}
Block b=warpSpot.getBlock();
if (b.getType().equals(Material.SIGN_POST) || b.getType().equals(Material.WALL_SIGN)) {
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();
Location oneDown=b.getRelative(directionFacing).getRelative(BlockFace.DOWN).getLocation();
if ((GridManager.isSafeLocation(inFront))) {
  warpPlayer(player,inFront,foundWarp,directionFacing,pvp);
  return true;
}
 else if (b.getType().equals(Material.WALL_SIGN) && GridManager.isSafeLocation(oneDown)) {
  warpPlayer(player,oneDown,foundWarp,directionFacing,pvp);
  return true;
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
plugin.getWarpSignsListener().removeWarp(warpSpot);
return true;
}
if (!(GridManager.isSafeLocation(warpSpot))) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorNotSafe);
if (b.getType().equals(Material.SIGN_POST)) {
  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);
if (pvp) {
  player.sendMessage(ChatColor.BOLD + "String_Node_Str" + ChatColor.RED+ plugin.myLocale(player.getUniqueId()).igsPVP+ "String_Node_Str"+ plugin.myLocale(player.getUniqueId()).igsAllowed);
  if (plugin.getServer().getVersion().contains("String_Node_Str") || plugin.getServer().getVersion().contains("String_Node_Str")) {
    player.getWorld().playSound(player.getLocation(),Sound.valueOf("String_Node_Str"),1F,1F);
  }
 else {
    player.getWorld().playSound(player.getLocation(),Sound.ENTITY_ARROW_HIT,1F,1F);
  }
}
 else {
  if (plugin.getServer().getVersion().contains("String_Node_Str") || plugin.getServer().getVersion().contains("String_Node_Str")) {
    player.getWorld().playSound(player.getLocation(),Sound.valueOf("String_Node_Str"),1F,1F);
  }
 else {
    player.getWorld().playSound(player.getLocation(),Sound.ENTITY_BAT_TAKEOFF,1F,1F);
  }
}
return true;
}
}
}
}
 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")) {
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 true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Player invitedPlayer=plugin.getServer().getPlayer(split[1]);
if (invitedPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
UUID invitedPlayerUUID=invitedPlayer.getUniqueId();
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;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
  if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
    if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSize;
      break;
    }
 else {
      String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
      if (spl.length > 1) {
        maxSize=Math.max(maxSize,Integer.valueOf(spl[1]));
      }
    }
  }
  if (maxSize < 1) {
    maxSize=1;
  }
}
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 true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Player target=plugin.getServer().getPlayer(split[1]);
if (target == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
UUID targetPlayerUUID=target.getUniqueId();
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (playerUUID.equals(targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().getMembers(playerUUID).contains(targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).coopOnYourTeam);
return true;
}
if (!plugin.getPlayers().inTeam(targetPlayerUUID)) {
if (!plugin.getPlayers().hasIsland(targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIslandOther);
return true;
}
}
CoopPlay.getInstance().addCoopPlayer(player,target);
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopSuccess.replace("String_Node_Str",target.getDisplayName()));
target.sendMessage(ChatColor.GREEN + plugin.myLocale(targetPlayerUUID).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;
}
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) {
if (target.isOp() || VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str") || 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,targetPlayerUUID);
if (coop) {
if (target != null) {
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.RED + plugin.myLocale(targetPlayerUUID).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopRemoveSuccess.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayerUUID)));
}
if (target != null && 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")) {
if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
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;
}
OfflinePlayer target=plugin.getServer().getOfflinePlayer(targetPlayerUUID);
boolean coop=CoopPlay.getInstance().removeCoopPlayer(player,targetPlayerUUID);
if (coop) {
if (target != null && target.isOnline()) {
target.getPlayer().sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.RED + plugin.myLocale(targetPlayerUUID).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopRemoveSuccess.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayerUUID)));
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).coopNotInCoop.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayerUUID)));
}
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()).banNotYourself);
return true;
}
if (plugin.getPlayers().inTeam(playerUUID) && plugin.getPlayers().inTeam(targetPlayerUUID)) {
if (plugin.getPlayers().getTeamLeader(playerUUID).equals(plugin.getPlayers().getTeamLeader(targetPlayerUUID))) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).banNotTeamMember);
return true;
}
}
if (plugin.getPlayers().isBanned(playerUUID,targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).banAlreadyBanned.replace("String_Node_Str",split[1]));
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
OfflinePlayer offlineTarget=plugin.getServer().getOfflinePlayer(targetPlayerUUID);
if (offlineTarget.isOp()) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).banFail.replace("String_Node_Str",split[1]));
return true;
}
if (target != null) {
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(targetPlayerUUID).banBanned.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.RED + plugin.myLocale(targetPlayerUUID).banBanned.replace("String_Node_Str",player.getDisplayName()));
}
plugin.getLogger().info(player.getName() + "String_Node_Str" + split[1]+ "String_Node_Str");
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banSuccess.replace("String_Node_Str",split[1]));
plugin.getMessages().tellTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banSuccess.replace("String_Node_Str",split[1]));
plugin.getMessages().tellOfflineTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banSuccess.replace("String_Node_Str",split[1]));
plugin.getPlayers().ban(playerUUID,targetPlayerUUID);
plugin.getGrid().saveGrid();
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()).banNotYourself);
return true;
}
if (!plugin.getPlayers().isBanned(playerUUID,targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).banNotBanned.replace("String_Node_Str",split[1]));
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
if (target != null) {
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).banLifted.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.GREEN + plugin.myLocale(targetPlayerUUID).banLifted.replace("String_Node_Str",player.getDisplayName()));
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banLiftedSuccess.replace("String_Node_Str",split[1]));
plugin.getLogger().info(player.getName() + "String_Node_Str" + split[1]+ "String_Node_Str");
plugin.getMessages().tellTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banLiftedSuccess.replace("String_Node_Str",split[1]));
plugin.getMessages().tellOfflineTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banLiftedSuccess.replace("String_Node_Str",split[1]));
plugin.getPlayers().unBan(playerUUID,targetPlayerUUID);
plugin.getGrid().saveGrid();
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().equals(ASkyBlock.getIslandWorld())) {
for (ItemStack i : target.getInventory().getContents()) {
  if (i != null) {
    try {
      Item drop=player.getWorld().dropItemNaturally(player.getLocation(),i);
      PlayerDropItemEvent event=new PlayerDropItemEvent(target,drop);
      plugin.getServer().getPluginManager().callEvent(event);
    }
 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(),false);
}
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 {
plugin.getMessages().setMessage(targetPlayer,ChatColor.RED + plugin.myLocale(player.getUniqueId()).kicknameRemovedYou.replace("String_Node_Str",player.getName()));
}
plugin.getWarpSignsListener().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 true;
}
}
 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 {
  plugin.getMessages().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);
plugin.getGrid().saveGrid();
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 true;
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
break;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}

Fixed version (ground truth):
@Override public boolean onCommand(final CommandSender sender,final Command command,final String label,final String[] split){
  if (!(sender instanceof Player)) {
    sender.sendMessage(plugin.myLocale().errorUseInGame);
    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);
  }
  if (split.length > 1 && split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().hasIsland(playerUUID)) {
      String name=split[1];
      for (int i=2; i < split.length; i++) {
        name=name + "String_Node_Str" + split[i];
      }
      if (name.length() < Settings.minNameLength) {
        player.sendMessage(ChatColor.RED + (plugin.myLocale(player.getUniqueId()).errorTooShort).replace("String_Node_Str",String.valueOf(Settings.minNameLength)));
        return true;
      }
      if (name.length() > Settings.maxNameLength) {
        player.sendMessage(ChatColor.RED + (plugin.myLocale(player.getUniqueId()).errorTooLong).replace("String_Node_Str",String.valueOf(Settings.maxNameLength)));
        return true;
      }
      plugin.getGrid().setIslandName(playerUUID,ChatColor.translateAlternateColorCodes('&',name));
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).generalSuccess);
      return true;
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
      return true;
    }
  }
  UUID targetPlayer=null;
switch (split.length) {
case 0:
    if (plugin.getPlayers().getIslandLocation(playerUUID) == null && !plugin.getPlayers().inTeam(playerUUID)) {
      if (Settings.maxIslands > 0 && plugin.getGrid().getIslandCount() > Settings.maxIslands) {
        player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorMaxIslands);
        return true;
      }
      player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).islandnew);
      chooseIsland(player);
      return true;
    }
 else {
      if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().getControlPanel(playerUUID)) {
        player.performCommand(Settings.ISLANDCOMMAND + "String_Node_Str");
      }
 else {
        if (!player.getWorld().getName().equalsIgnoreCase(Settings.worldName) || Settings.allowTeleportWhenFalling || !PlayerEvents.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 (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().hasIsland(playerUUID)) {
      player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpName);
      return true;
    }
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.getPlayers().hasIsland(playerUUID)) {
      plugin.getGrid().setIslandName(playerUUID,null);
      sender.sendMessage(plugin.myLocale().generalSuccess);
    }
    return true;
  }
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" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpCoop);
    return true;
  }
}
 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" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpUnCoop);
    return true;
  }
}
 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" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpExpel);
    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 (!Settings.teamChat) {
      player.sendMessage(ChatColor.RED + plugin.myLocale().errorUnknownCommand);
      return false;
    }
    if (plugin.getPlayers().inTeam(playerUUID)) {
      boolean online=false;
      for (      UUID teamMember : plugin.getPlayers().getMembers(playerUUID)) {
        if (!teamMember.equals(playerUUID) && plugin.getServer().getPlayer(teamMember) != null) {
          online=true;
        }
      }
      if (!online) {
        player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).teamChatNoTeamAround);
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).teamChatStatusOff);
        plugin.getChatListener().unSetPlayer(playerUUID);
        return true;
      }
      if (plugin.getChatListener().isTeamChat(playerUUID)) {
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).teamChatStatusOff);
        plugin.getChatListener().unSetPlayer(playerUUID);
      }
 else {
        player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).teamChatStatusOn);
        plugin.getChatListener().setPlayer(playerUUID);
      }
    }
 else {
      player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).teamChatNoTeam);
    }
  }
 else {
    player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
  }
  return true;
}
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(plugin.myLocale(playerUUID).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(playerUUID).islandhelpBan);
}
 else {
  player.sendMessage(plugin.myLocale(playerUUID).errorNoPermission);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(plugin.myLocale(playerUUID).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(playerUUID).islandhelpUnban);
}
 else {
  player.sendMessage(plugin.myLocale(playerUUID).errorNoPermission);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!pendingNewIslandSelection.contains(playerUUID)) {
  player.sendMessage(ChatColor.RED + plugin.myLocale().errorUnknownCommand);
  return false;
}
pendingNewIslandSelection.remove(playerUUID);
Island oldIsland=plugin.getGrid().getIsland(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");
  displayLocales(player);
}
 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")) {
  try {
    player.openInventory(plugin.getSettingsPanel().islandGuardPanel(player));
  }
 catch (  Exception e) {
    player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
  }
}
 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")&& 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);
    plugin.getMessages().tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
    plugin.getMessages().tellTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerLocked.replace("String_Node_Str",player.getDisplayName()));
    island.setLocked(true);
  }
 else {
    player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).lockUnlocking);
    plugin.getMessages().tellOfflineTeam(playerUUID,plugin.myLocale(playerUUID).lockPlayerUnlocked.replace("String_Node_Str",player.getDisplayName()));
    plugin.getMessages().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 (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
  return true;
}
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(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 (plugin.getGrid().getIsland(player.getUniqueId()) == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
if (player.getWorld().equals(ASkyBlock.getIslandWorld()) || player.getWorld().equals(ASkyBlock.getNetherWorld())) {
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")) {
Collection<UUID> warpList=plugin.getWarpSignsListener().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 {
if (Settings.useWarpPanel) {
player.openInventory(plugin.getWarpPanel().getWarpPanel(0));
}
 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)) {
confirm.remove(playerUUID);
player.sendMessage(ChatColor.YELLOW + plugin.myLocale(player.getUniqueId()).islandresetPleaseWait);
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);
Island oldIsland=plugin.getGrid().getIsland(player.getUniqueId());
if (schems.isEmpty()) {
newIsland(player);
resetPlayer(player,oldIsland);
}
 else if (schems.size() == 1) {
newIsland(player,schems.get(0));
resetPlayer(player,oldIsland);
}
 else {
if (Settings.useSchematicPanel) {
pendingNewIslandSelection.add(playerUUID);
resettingIsland.add(playerUUID);
player.openInventory(plugin.getSchematicsPanel().getPanel(player));
}
 else {
schems=getSchematics(player,true);
if (schems.isEmpty()) {
  newIsland(player);
}
 else if (Settings.chooseIslandRandomly) {
  newIsland(player,schems.get(random.nextInt(schems.size())));
}
 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")) {
if (plugin.getGrid().getIsland(player.getUniqueId()) == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
plugin.getGrid().homeSet(player);
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 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);
}
int maxHomes=Settings.maxHomes;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
maxHomes=Settings.maxHomes;
break;
}
 else {
String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
if (spl.length > 1) {
  maxHomes=Math.max(maxHomes,Integer.valueOf(spl[1]));
}
}
}
if (maxHomes < 1) {
maxHomes=1;
}
}
if (maxHomes > 1 && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ 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 (maxHomes > 1) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ 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") && plugin.getPlayers().hasIsland(playerUUID)) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpName);
}
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") && plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).teamChatHelp);
}
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()).islandhelpBan);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpUnban);
}
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);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpUnCoop);
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpListCoops);
}
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") && plugin.getPlayers().hasIsland(playerUUID)) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpResetName);
}
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"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandHelpSelectLanguage);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Island island=plugin.getGrid().getIsland(playerUUID);
boolean none=true;
for (UUID uuid : CoopPlay.getInstance().getCoopPlayers(island.getCenter())) {
player.sendMessage(ChatColor.GREEN + plugin.getPlayers().getName(uuid));
none=false;
}
if (none) {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ plugin.myLocale(player.getUniqueId()).islandhelpCoop);
}
 else {
player.sendMessage(plugin.myLocale(player.getUniqueId()).helpColor + plugin.myLocale(playerUUID).coopUseExpel);
}
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;
}
if (plugin.getPlayers().getIslandLocation(playerUUID).getWorld().getEnvironment().equals(Environment.NETHER)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorWrongWorld);
return true;
}
Inventory inv=plugin.getBiomes().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) {
Location l=ASkyBlock.getIslandWorld().getSpawnLocation();
l.add(new Vector(0.5,0,0.5));
Island spawn=plugin.getGrid().getSpawn();
if (spawn != null && spawn.getSpawnPoint() != null) {
l=spawn.getSpawnPoint();
}
player.teleport(l);
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
TopTen.topTenShow(player);
return true;
}
 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")) {
if (!plugin.getPlayers().inTeam(playerUUID) && !plugin.getPlayers().hasIsland(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
 else {
if (Settings.fastLevelCalc) {
calculateIslandLevel(player,playerUUID);
return true;
}
 else {
if (plugin.getGrid().playerIsOnIsland(player)) {
  calculateIslandLevel(player,playerUUID);
}
 else {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).challengeserrorNotOnIsland);
}
return true;
}
}
}
 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.sendMessage(plugin.myLocale(player.getUniqueId()).invitehelp);
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
int maxSize=Settings.maxTeamSize;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
  if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
    if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSize;
      break;
    }
 else {
      String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
      if (spl.length > 1) {
        maxSize=Math.max(maxSize,Integer.valueOf(spl[1]));
      }
    }
  }
  if (maxSize < 1) {
    maxSize=1;
  }
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  if (Settings.maxTeamSizeVIP > maxSize) {
    maxSize=Settings.maxTeamSizeVIP;
  }
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  if (Settings.maxTeamSizeVIP2 > maxSize) {
    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;
}
 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")) {
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);
if (Settings.teamJoinDeathReset) {
plugin.getPlayers().setDeaths(player.getUniqueId(),0);
}
plugin.getGrid().homeTeleport(player);
plugin.resetPlayer(player);
if (!player.hasPermission(Settings.PERMPREFIX + "String_Node_Str")) {
runCommands(Settings.teamStartCommands,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());
plugin.getGrid().saveGrid();
return true;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorCommandNotReady);
return true;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 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().equals(ASkyBlock.getIslandWorld()) || (Settings.createNether && Settings.newNether && ASkyBlock.getNetherWorld() != null && player.getWorld().equals(ASkyBlock.getNetherWorld()))) {
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);
plugin.getWarpSignsListener().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 {
  plugin.getMessages().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;
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
int maxSize=Settings.maxTeamSize;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
  if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSize;
    break;
  }
 else {
    String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
    if (spl.length > 1) {
      maxSize=Math.max(maxSize,Integer.valueOf(spl[1]));
    }
  }
}
if (maxSize < 1) {
  maxSize=1;
}
}
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 {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
case 2:
if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setControlPanel(playerUUID,true);
}
 else if (split[1].equalsIgnoreCase("String_Node_Str")) {
plugin.getPlayers().setControlPanel(playerUUID,false);
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).generalSuccess);
return true;
}
 else {
player.sendMessage(plugin.myLocale(playerUUID).errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (Settings.useWarpPanel) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Set<UUID> warpList=plugin.getWarpSignsListener().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 {
int panelNum=0;
try {
panelNum=Integer.valueOf(split[1]) - 1;
}
 catch (Exception e) {
panelNum=0;
}
player.openInventory(plugin.getWarpPanel().getWarpPanel(panelNum));
return true;
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorNoPermission);
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (!pendingNewIslandSelection.contains(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
pendingNewIslandSelection.remove(playerUUID);
if (!schematics.containsKey(split[1])) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
 else {
Schematic schematic=schematics.get(split[1]);
if (schematic.getPerm().isEmpty() || VaultHelper.checkPerm(player,schematic.getPerm())) {
Island oldIsland=plugin.getGrid().getIsland(player.getUniqueId());
newIsland(player,schematic);
if (resettingIsland.contains(playerUUID)) {
resettingIsland.remove(playerUUID);
resetPlayer(player,oldIsland);
}
return true;
}
 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")) {
if (!NumberUtils.isDigits(split[1])) {
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
return true;
}
 else {
try {
int index=Integer.valueOf(split[1]);
if (index < 1 || index > plugin.getAvailableLocales().size()) {
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
return true;
}
for (ASLocale locale : plugin.getAvailableLocales().values()) {
if (locale.getIndex() == index) {
  plugin.getPlayers().setLocale(playerUUID,locale.getLocaleName());
  player.sendMessage(ChatColor.GREEN + plugin.myLocale(playerUUID).generalSuccess);
  return true;
}
}
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
}
 catch (Exception e) {
player.sendMessage(ChatColor.RED + "String_Node_Str" + label+ "String_Node_Str");
displayLocales(player);
}
}
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);
}
 else {
int maxHomes=Settings.maxHomes;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
  if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
    maxHomes=Settings.maxHomes;
    break;
  }
 else {
    String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
    if (spl.length > 1) {
      maxHomes=Math.max(maxHomes,Integer.valueOf(spl[1]));
    }
  }
}
if (maxHomes < 1) {
  maxHomes=1;
}
}
if (number > maxHomes) {
if (maxHomes > 1) {
  player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(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")) {
Island island=plugin.getGrid().getIsland(playerUUID);
if (island == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIsland);
return true;
}
int maxHomes=Settings.maxHomes;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
maxHomes=Settings.maxHomes;
break;
}
 else {
String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
if (spl.length > 1) {
  maxHomes=Math.max(maxHomes,Integer.valueOf(spl[1]));
}
}
}
if (maxHomes < 1) {
maxHomes=1;
}
}
if (maxHomes > 1) {
int number=0;
try {
number=Integer.valueOf(split[1]);
if (number < 1 || number > maxHomes) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).setHomeerrorNumHomes.replace("String_Node_Str",String.valueOf(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(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=plugin.getWarpSignsListener().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().equals(split[1].toLowerCase())) {
foundWarp=warp;
break;
}
 else if (plugin.getPlayers().getName(warp).toLowerCase().startsWith(split[1].toLowerCase())) {
foundWarp=warp;
}
}
if (foundWarp == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
return true;
}
 else {
final Location warpSpot=plugin.getWarpSignsListener().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 && plugin.getPlayers().isBanned(island.getOwner(),playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).banBanned.replace("String_Node_Str",plugin.getPlayers().getName(island.getOwner())));
if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && !VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  return true;
}
}
if (island != null && island.isLocked() && !player.isOp() && !VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && !VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).lockIslandLocked);
if (!plugin.getGrid().locationIsAtHome(player,true,warpSpot)) {
  return true;
}
}
boolean pvp=false;
if ((warpSpot.getWorld().equals(ASkyBlock.getIslandWorld()) && island.getIgsFlag(Flags.allowPvP)) || (warpSpot.getWorld().equals(ASkyBlock.getNetherWorld()) && island.getIgsFlag(Flags.allowNetherPvP))) {
pvp=true;
}
Block b=warpSpot.getBlock();
if (b.getType().equals(Material.SIGN_POST) || b.getType().equals(Material.WALL_SIGN)) {
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();
Location oneDown=b.getRelative(directionFacing).getRelative(BlockFace.DOWN).getLocation();
if ((GridManager.isSafeLocation(inFront))) {
  warpPlayer(player,inFront,foundWarp,directionFacing,pvp);
  return true;
}
 else if (b.getType().equals(Material.WALL_SIGN) && GridManager.isSafeLocation(oneDown)) {
  warpPlayer(player,oneDown,foundWarp,directionFacing,pvp);
  return true;
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorDoesNotExist);
plugin.getWarpSignsListener().removeWarp(warpSpot);
return true;
}
if (!(GridManager.isSafeLocation(warpSpot))) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).warpserrorNotSafe);
if (b.getType().equals(Material.SIGN_POST)) {
  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);
if (pvp) {
  player.sendMessage(ChatColor.BOLD + "String_Node_Str" + ChatColor.RED+ plugin.myLocale(player.getUniqueId()).igsPVP+ "String_Node_Str"+ plugin.myLocale(player.getUniqueId()).igsAllowed);
  if (plugin.getServer().getVersion().contains("String_Node_Str") || plugin.getServer().getVersion().contains("String_Node_Str")) {
    player.getWorld().playSound(player.getLocation(),Sound.valueOf("String_Node_Str"),1F,1F);
  }
 else {
    player.getWorld().playSound(player.getLocation(),Sound.ENTITY_ARROW_HIT,1F,1F);
  }
}
 else {
  if (plugin.getServer().getVersion().contains("String_Node_Str") || plugin.getServer().getVersion().contains("String_Node_Str")) {
    player.getWorld().playSound(player.getLocation(),Sound.valueOf("String_Node_Str"),1F,1F);
  }
 else {
    player.getWorld().playSound(player.getLocation(),Sound.ENTITY_BAT_TAKEOFF,1F,1F);
  }
}
return true;
}
}
}
}
 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")) {
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 true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Player invitedPlayer=plugin.getServer().getPlayer(split[1]);
if (invitedPlayer == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
UUID invitedPlayerUUID=invitedPlayer.getUniqueId();
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;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
  if (perms.getPermission().startsWith(Settings.PERMPREFIX + "String_Node_Str")) {
    if (perms.getPermission().contains(Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSize;
      break;
    }
 else {
      String[] spl=perms.getPermission().split(Settings.PERMPREFIX + "String_Node_Str");
      if (spl.length > 1) {
        maxSize=Math.max(maxSize,Integer.valueOf(spl[1]));
      }
    }
  }
  if (maxSize < 1) {
    maxSize=1;
  }
}
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 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;
}
Player target=plugin.getServer().getPlayer(split[1]);
if (target == null) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorOfflinePlayer);
return true;
}
UUID targetPlayerUUID=target.getUniqueId();
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (playerUUID.equals(targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().getMembers(playerUUID).contains(targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).coopOnYourTeam);
return true;
}
if (!plugin.getPlayers().inTeam(targetPlayerUUID)) {
if (!plugin.getPlayers().hasIsland(targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoIslandOther);
return true;
}
}
CoopPlay.getInstance().addCoopPlayer(player,target);
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopSuccess.replace("String_Node_Str",target.getDisplayName()));
target.sendMessage(ChatColor.GREEN + plugin.myLocale(targetPlayerUUID).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;
}
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) {
if (target.isOp() || VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str") || 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,targetPlayerUUID);
if (coop) {
if (target != null) {
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.RED + plugin.myLocale(targetPlayerUUID).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopRemoveSuccess.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayerUUID)));
}
if (target != null && 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")) {
if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).errorNoPermission);
return true;
}
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;
}
OfflinePlayer target=plugin.getServer().getOfflinePlayer(targetPlayerUUID);
boolean coop=CoopPlay.getInstance().removeCoopPlayer(player,targetPlayerUUID);
if (coop) {
if (target != null && target.isOnline()) {
target.getPlayer().sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.RED + plugin.myLocale(targetPlayerUUID).coopRemoved.replace("String_Node_Str",player.getDisplayName()));
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).coopRemoveSuccess.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayerUUID)));
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).coopNotInCoop.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayerUUID)));
}
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()).banNotYourself);
return true;
}
if (plugin.getPlayers().inTeam(playerUUID) && plugin.getPlayers().inTeam(targetPlayerUUID)) {
if (plugin.getPlayers().getTeamLeader(playerUUID).equals(plugin.getPlayers().getTeamLeader(targetPlayerUUID))) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).banNotTeamMember);
return true;
}
}
if (plugin.getPlayers().isBanned(playerUUID,targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).banAlreadyBanned.replace("String_Node_Str",split[1]));
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
OfflinePlayer offlineTarget=plugin.getServer().getOfflinePlayer(targetPlayerUUID);
if (offlineTarget.isOp()) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).banFail.replace("String_Node_Str",split[1]));
return true;
}
if (target != null) {
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(targetPlayerUUID).banBanned.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.RED + plugin.myLocale(targetPlayerUUID).banBanned.replace("String_Node_Str",player.getDisplayName()));
}
plugin.getLogger().info(player.getName() + "String_Node_Str" + split[1]+ "String_Node_Str");
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banSuccess.replace("String_Node_Str",split[1]));
plugin.getMessages().tellTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banSuccess.replace("String_Node_Str",split[1]));
plugin.getMessages().tellOfflineTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banSuccess.replace("String_Node_Str",split[1]));
plugin.getPlayers().ban(playerUUID,targetPlayerUUID);
plugin.getGrid().saveGrid();
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()).banNotYourself);
return true;
}
if (!plugin.getPlayers().isBanned(playerUUID,targetPlayerUUID)) {
player.sendMessage(ChatColor.RED + plugin.myLocale(player.getUniqueId()).banNotBanned.replace("String_Node_Str",split[1]));
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
if (target != null) {
target.sendMessage(ChatColor.RED + plugin.myLocale(target.getUniqueId()).banLifted.replace("String_Node_Str",player.getDisplayName()));
}
 else {
plugin.getMessages().setMessage(targetPlayerUUID,ChatColor.GREEN + plugin.myLocale(targetPlayerUUID).banLifted.replace("String_Node_Str",player.getDisplayName()));
}
player.sendMessage(ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banLiftedSuccess.replace("String_Node_Str",split[1]));
plugin.getLogger().info(player.getName() + "String_Node_Str" + split[1]+ "String_Node_Str");
plugin.getMessages().tellTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banLiftedSuccess.replace("String_Node_Str",split[1]));
plugin.getMessages().tellOfflineTeam(playerUUID,ChatColor.GREEN + plugin.myLocale(player.getUniqueId()).banLiftedSuccess.replace("String_Node_Str",split[1]));
plugin.getPlayers().unBan(playerUUID,targetPlayerUUID);
plugin.getGrid().saveGrid();
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().equals(ASkyBlock.getIslandWorld())) {
for (ItemStack i : target.getInventory().getContents()) {
  if (i != null) {
    try {
      Item drop=player.getWorld().dropItemNaturally(player.getLocation(),i);
      PlayerDropItemEvent event=new PlayerDropItemEvent(target,drop);
      plugin.getServer().getPluginManager().callEvent(event);
    }
 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(),false);
}
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 {
plugin.getMessages().setMessage(targetPlayer,ChatColor.RED + plugin.myLocale(player.getUniqueId()).kicknameRemovedYou.replace("String_Node_Str",player.getName()));
}
plugin.getWarpSignsListener().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 true;
}
}
 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 {
  plugin.getMessages().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);
plugin.getGrid().saveGrid();
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 true;
}
}
 else {
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}
break;
}
player.sendMessage(ChatColor.RED + plugin.myLocale(playerUUID).errorUnknownCommand);
return true;
}