Program: 34114
Project: 34114
Buggy source:
@Override public boolean onCommand(final CommandSender sender,final Command command,final String label,final String[] split){
  if (!(sender instanceof Player)) {
    return false;
  }
  final Player player=(Player)sender;
  if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.sendMessage(ChatColor.RED + Locale.islanderrorYouDoNotHavePermission);
    return true;
  }
  final UUID playerUUID=player.getUniqueId();
  final UUID teamLeader=plugin.getPlayers().getTeamLeader(playerUUID);
  List<UUID> teamMembers=new ArrayList<UUID>();
  if (teamLeader != null) {
    teamMembers=plugin.getPlayers().getMembers(teamLeader);
  }
  UUID targetPlayer=null;
switch (split.length) {
case 0:
    if (plugin.getPlayers().getIslandLocation(playerUUID) == null && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.GREEN + Locale.islandnew);
      final Location cowSpot=newIsland(sender);
      plugin.homeTeleport(player);
      plugin.resetPlayer(player);
      if (Settings.resetMoney) {
        resetMoney(player);
      }
      plugin.getServer().getScheduler().runTaskLater(plugin,new Runnable(){
        @Override public void run(){
          player.getWorld().spawnEntity(cowSpot,EntityType.COW);
        }
      }
,40L);
      setResetWaitTime(player);
      return true;
    }
 else {
      if (Settings.useControlPanel) {
        player.performCommand(Settings.ISLANDCOMMAND + "String_Node_Str");
      }
 else {
        plugin.homeTeleport(player);
        if (Settings.islandRemoveMobs) {
          plugin.removeMobs(player.getLocation());
        }
      }
      return true;
    }
case 1:
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.RED + Locale.errorNoIsland);
      return true;
    }
    plugin.homeTeleport(player);
    if (Settings.islandRemoveMobs) {
      plugin.removeMobs(player.getLocation());
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
  }
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 && player.getWorld().getName().equalsIgnoreCase(Settings.worldName)) {
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.openInventory(ControlPanel.miniShop);
    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+ Locale.islandhelpWarp);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Set<UUID> warpList=plugin.listWarps();
if (warpList.isEmpty()) {
  player.sendMessage(ChatColor.YELLOW + Locale.warpserrorNoWarpsYet);
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.playerIsOnIsland(player)) {
    player.sendMessage(ChatColor.YELLOW + Locale.warpswarpTip);
  }
  return true;
}
 else {
  Boolean hasWarp=false;
  String wlist="String_Node_Str";
  for (  UUID w : warpList) {
    if (wlist.isEmpty()) {
      wlist=plugin.getPlayers().getName(w);
    }
 else {
      wlist+="String_Node_Str" + plugin.getPlayers().getName(w);
    }
    if (w.equals(playerUUID)) {
      hasWarp=true;
    }
  }
  player.sendMessage(ChatColor.YELLOW + Locale.warpswarpsAvailable + "String_Node_Str"+ ChatColor.WHITE+ wlist);
  if (!hasWarp && (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str"))) {
    player.sendMessage(ChatColor.YELLOW + Locale.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 + Locale.islandresetOnlyOwner);
}
 else {
  player.sendMessage(ChatColor.YELLOW + Locale.islandresetMustRemovePlayers);
}
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
player.sendMessage(ChatColor.RED + Locale.islandResetNoMore);
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
player.sendMessage(ChatColor.RED + Locale.resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
if (!onRestartWaitTime(player) || Settings.resetWait == 0 || player.isOp()) {
player.sendMessage(ChatColor.RED + Locale.islandresetConfirm);
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);
    }
  }
,200L);
}
return true;
}
 else {
player.sendMessage(ChatColor.YELLOW + Locale.islandresetWait.replace("String_Node_Str",String.valueOf(getResetWaitTime(player))));
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (confirm.containsKey(playerUUID) && confirm.get(playerUUID)) {
player.sendMessage(ChatColor.YELLOW + Locale.islandresetPleaseWait);
plugin.getPlayers().setResetsLeft(playerUUID,plugin.getPlayers().getResetsLeft(playerUUID) - 1);
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
  player.sendMessage(ChatColor.YELLOW + Locale.islandResetNoMore);
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
  player.sendMessage(ChatColor.YELLOW + Locale.resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
CoopPlay.getInstance().clearMyInvitedCoops(player);
CoopPlay.getInstance().clearMyCoops(player);
final Location oldIsland=plugin.getPlayers().getIslandLocation(playerUUID);
final Location cowSpot=newIsland(sender);
plugin.getPlayers().setHomeLocation(playerUUID,null);
plugin.homeTeleport(player);
plugin.resetPlayer(player);
if (Settings.resetMoney) {
  resetMoney(player);
}
plugin.setIslandBiome(plugin.getPlayers().getIslandLocation(playerUUID),Settings.defaultBiome);
plugin.getServer().getScheduler().runTaskLater(plugin,new Runnable(){
  @Override public void run(){
    player.getWorld().spawnEntity(cowSpot,EntityType.COW);
  }
}
,40L);
setResetWaitTime(player);
plugin.removeWarp(playerUUID);
if (oldIsland != null) {
  CoopPlay.getInstance().clearAllIslandCoops(oldIsland);
  new DeleteIslandChunk(plugin,oldIsland);
}
for (String cmd : Settings.resetCommands) {
  try {
    if (!plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(),cmd.replace("String_Node_Str",player.getName()))) {
      plugin.getLogger().severe("String_Node_Str");
      plugin.getLogger().severe("String_Node_Str" + cmd);
    }
  }
 catch (  Exception e) {
    plugin.getLogger().severe("String_Node_Str");
    plugin.getLogger().severe("String_Node_Str" + cmd);
    plugin.getLogger().severe("String_Node_Str" + e.getMessage());
    e.printStackTrace();
  }
}
return true;
}
 else {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ Locale.islandhelpRestart);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
plugin.homeSet(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
player.sendMessage(ChatColor.GREEN + plugin.getName() + "String_Node_Str"+ plugin.getDescription().getVersion()+ "String_Node_Str");
if (Settings.useControlPanel) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpControlPanel);
}
 else {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpIsland);
}
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpTeleport);
if (plugin.getSpawn().getSpawnLoc() != null) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpSpawn);
}
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpControlPanel);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpRestart);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpSetHome);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpLevel);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpLevelPlayer);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpTop);
if (Settings.useEconomy && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpMiniShop);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpWarps);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpWarp);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpTeam);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpInvite);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpLeave);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpKick);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpAcceptReject);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpMakeLeader);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpBiome);
}
if (!Settings.allowPvP) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpExpel);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpCoop);
}
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 + Locale.levelerrornotYourIsland);
  return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID)) {
  player.sendMessage(ChatColor.RED + Locale.errorNoIsland);
  return true;
}
if (!plugin.playerIsOnIsland(player)) {
  player.sendMessage(ChatColor.RED + Locale.challengeserrorNotOnIsland);
  return true;
}
Inventory inv=plugin.biomes.getBiomePanel(player);
if (inv != null) {
  player.openInventory(inv);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") && plugin.getSpawn().getSpawnLoc() != null) {
player.teleport(plugin.getSpawn().getSpawnLoc());
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
plugin.showTopTen(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.playerIsOnIsland(player)) {
if (!plugin.getPlayers().inTeam(playerUUID) && !plugin.getPlayers().hasIsland(playerUUID)) {
  player.sendMessage(ChatColor.RED + Locale.errorNoIsland);
}
 else {
  calculateIslandLevel(player,playerUUID);
}
return true;
}
player.sendMessage(ChatColor.RED + Locale.challengeserrorNotOnIsland);
return true;
}
 else 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+ "String_Node_Str"+ label+ "String_Node_Str"+ ChatColor.YELLOW+ Locale.islandhelpInvite);
if (plugin.getPlayers().inTeam(playerUUID)) {
  if (teamLeader.equals(playerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      player.sendMessage(ChatColor.GREEN + Locale.inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
    }
 else {
      player.sendMessage(ChatColor.RED + Locale.inviteerrorYourIslandIsFull);
    }
    return true;
  }
  player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
  return true;
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID) && inviteList.containsKey(playerUUID)) {
  if (plugin.getPlayers().hasIsland(playerUUID)) {
    plugin.getLogger().info(player.getName() + "String_Node_Str");
    plugin.deletePlayerIsland(playerUUID);
    plugin.getLogger().info("String_Node_Str");
  }
  addPlayertoTeam(playerUUID,inviteList.get(playerUUID));
  if (!plugin.getPlayers().inTeam(inviteList.get(playerUUID))) {
    addPlayertoTeam(inviteList.get(playerUUID),inviteList.get(playerUUID));
  }
  setResetWaitTime(player);
  plugin.homeTeleport(player);
  plugin.resetPlayer(player);
  player.sendMessage(ChatColor.GREEN + Locale.inviteyouHaveJoinedAnIsland);
  if (Bukkit.getPlayer(inviteList.get(playerUUID)) != null) {
    Bukkit.getPlayer(inviteList.get(playerUUID)).sendMessage(ChatColor.GREEN + Locale.invitehasJoinedYourIsland.replace("String_Node_Str",player.getName()));
  }
  inviteList.remove(player.getUniqueId());
  return true;
}
player.sendMessage(ChatColor.RED + Locale.errorCommandNotReady);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (inviteList.containsKey(player.getUniqueId())) {
player.sendMessage(ChatColor.YELLOW + Locale.rejectyouHaveRejectedInvitation);
if (Bukkit.getPlayer(inviteList.get(player.getUniqueId())) != null) {
  Bukkit.getPlayer(inviteList.get(player.getUniqueId())).sendMessage(ChatColor.RED + Locale.rejectnameHasRejectedInvite.replace("String_Node_Str",player.getName()));
}
inviteList.remove(player.getUniqueId());
}
 else {
player.sendMessage(ChatColor.RED + Locale.rejectyouHaveNotBeenInvited);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (player.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
  if (plugin.getPlayers().inTeam(playerUUID)) {
    if (plugin.getPlayers().getTeamLeader(playerUUID).equals(playerUUID)) {
      player.sendMessage(ChatColor.YELLOW + Locale.leaveerrorYouAreTheLeader);
      return true;
    }
    CoopPlay.getInstance().clearMyInvitedCoops(player);
    CoopPlay.getInstance().clearMyCoops(player);
    plugin.resetPlayer(player);
    if (!player.performCommand(Settings.SPAWNCOMMAND)) {
      player.teleport(player.getWorld().getSpawnLocation());
    }
    removePlayerFromTeam(playerUUID,teamLeader);
    plugin.removeWarp(playerUUID);
    player.sendMessage(ChatColor.YELLOW + Locale.leaveyouHaveLeftTheIsland);
    if (plugin.getServer().getPlayer(teamLeader) != null) {
      plugin.getServer().getPlayer(teamLeader).sendMessage(ChatColor.RED + Locale.leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
 else {
      plugin.setMessage(teamLeader,ChatColor.RED + Locale.leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
    if (teamMembers.size() < 2) {
      plugin.getLogger().info("String_Node_Str");
      removePlayerFromTeam(teamLeader,teamLeader);
    }
    return true;
  }
 else {
    player.sendMessage(ChatColor.RED + Locale.leaveerrorYouCannotLeaveIsland);
    return true;
  }
}
 else {
  player.sendMessage(ChatColor.RED + Locale.leaveerrorYouMustBeInWorld);
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
  int maxSize=Settings.maxTeamSize;
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP;
  }
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP2;
  }
  if (teamMembers.size() < maxSize) {
    player.sendMessage(ChatColor.GREEN + Locale.inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
  }
 else {
    player.sendMessage(ChatColor.RED + Locale.inviteerrorYourIslandIsFull);
  }
}
player.sendMessage(ChatColor.YELLOW + Locale.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 + Locale.invitenameHasInvitedYou.replace("String_Node_Str",plugin.getPlayers().getName(inviteList.get(playerUUID))));
player.sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ Locale.invitetoAcceptOrReject);
}
 else {
player.sendMessage(ChatColor.RED + Locale.kickerrorNoTeam);
}
return true;
}
 else {
return false;
}
case 2:
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final Set<UUID> warpList=plugin.listWarps();
if (warpList.isEmpty()) {
player.sendMessage(ChatColor.YELLOW + Locale.warpserrorNoWarpsYet);
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(ChatColor.YELLOW + Locale.warpswarpTip);
}
return true;
}
 else {
UUID foundWarp=null;
for (UUID warp : warpList) {
  if (plugin.getPlayers().getName(warp).toLowerCase().startsWith(split[1].toLowerCase())) {
    foundWarp=warp;
    break;
  }
}
if (foundWarp == null) {
  player.sendMessage(ChatColor.RED + Locale.warpserrorDoesNotExist);
  return true;
}
 else {
  final Location warpSpot=plugin.getWarp(foundWarp);
  if (warpSpot == null) {
    player.sendMessage(ChatColor.RED + Locale.warpserrorNotReadyYet);
    plugin.getLogger().warning("String_Node_Str" + plugin.getPlayers().getName(foundWarp));
    return true;
  }
  Block b=warpSpot.getBlock();
  if (b.getType().equals(Material.SIGN_POST)) {
    Sign sign=(Sign)b.getState();
    org.bukkit.material.Sign s=(org.bukkit.material.Sign)sign.getData();
    BlockFace directionFacing=s.getFacing();
    Location inFront=b.getRelative(directionFacing).getLocation();
    if ((ASkyBlock.isSafeLocation(inFront))) {
      float yaw=ASkyBlock.blockFaceToFloat(directionFacing);
      final Location actualWarp=new Location(inFront.getWorld(),inFront.getBlockX() + 0.5D,inFront.getBlockY(),inFront.getBlockZ() + 0.5D,yaw,30F);
      player.teleport(actualWarp);
      player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
      return true;
    }
  }
 else {
    player.sendMessage(ChatColor.RED + "String_Node_Str");
    plugin.removeWarp(warpSpot);
    return true;
  }
  if (!(ASkyBlock.isSafeLocation(warpSpot))) {
    player.sendMessage(ChatColor.RED + Locale.warpserrorNotSafe);
    plugin.getLogger().warning("String_Node_Str" + warpSpot.toString() + "String_Node_Str"+ plugin.getPlayers().getName(foundWarp));
    return true;
  }
 else {
    final Location actualWarp=new Location(warpSpot.getWorld(),warpSpot.getBlockX() + 0.5D,warpSpot.getBlockY(),warpSpot.getBlockZ() + 0.5D);
    player.teleport(actualWarp);
    player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
    return true;
  }
}
}
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 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 + Locale.errorNoIsland);
}
 else {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
  player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
  return true;
}
calculateIslandLevel(player,plugin.getPlayers().getUUID(split[1]));
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
if (plugin.getServer().getPlayer(invitedPlayerUUID) == null) {
player.sendMessage(ChatColor.RED + Locale.errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().inTeam(player.getUniqueId())) {
if (teamLeader.equals(player.getUniqueId())) {
  if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      if (inviteList.containsValue(playerUUID)) {
        inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
        player.sendMessage(ChatColor.YELLOW + Locale.inviteremovingInvite);
      }
      inviteList.put(invitedPlayerUUID,player.getUniqueId());
      player.sendMessage(ChatColor.GREEN + Locale.inviteinviteSentTo.replace("String_Node_Str",split[1]));
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(Locale.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"+ Locale.invitetoAcceptOrReject);
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + Locale.invitewarningYouWillLoseIsland);
    }
 else {
      player.sendMessage(ChatColor.RED + Locale.inviteerrorYourIslandIsFull);
    }
  }
 else {
    player.sendMessage(ChatColor.RED + Locale.inviteerrorThatPlayerIsAlreadyInATeam);
  }
}
 else {
  player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
}
}
 else {
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
  if (inviteList.containsValue(playerUUID)) {
    inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
    player.sendMessage(ChatColor.YELLOW + Locale.inviteremovingInvite);
  }
  inviteList.put(invitedPlayerUUID,player.getUniqueId());
  player.sendMessage(ChatColor.GREEN + Locale.inviteinviteSentTo.replace("String_Node_Str",split[1]));
  Bukkit.getPlayer(invitedPlayerUUID).sendMessage(Locale.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"+ Locale.invitetoAcceptOrReject);
  if (plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
    Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + Locale.invitewarningYouWillLoseIsland);
  }
}
 else {
  player.sendMessage(ChatColor.RED + Locale.inviteerrorThatPlayerIsAlreadyInATeam);
}
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
Player newPlayer=plugin.getServer().getPlayer(invitedPlayerUUID);
if (newPlayer == null) {
player.sendMessage(ChatColor.RED + Locale.errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().getMembers(playerUUID).contains(invitedPlayerUUID)) {
player.sendMessage(ChatColor.RED + Locale.coopOnYourTeam);
return true;
}
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
if (!plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
  player.sendMessage(ChatColor.RED + Locale.errorNoIslandOther);
  return true;
}
}
CoopPlay.getInstance().addCoopPlayer(player,newPlayer);
player.sendMessage(ChatColor.GREEN + Locale.coopSuccess.replace("String_Node_Str",newPlayer.getDisplayName()));
newPlayer.sendMessage(ChatColor.GREEN + Locale.coopMadeYouCoop.replace("String_Node_Str",player.getDisplayName()));
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (Settings.allowPvP) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownCommand);
return false;
}
final UUID targetPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (targetPlayerUUID == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
if (target == null) {
player.sendMessage(ChatColor.RED + Locale.errorOfflinePlayer);
return true;
}
if (target.isOp() || VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + Locale.expelFail.replace("String_Node_Str",target.getDisplayName()));
return true;
}
boolean coop=CoopPlay.getInstance().removeCoopPlayer(player,target);
if (coop) {
target.sendMessage(ChatColor.RED + Locale.coopRemoved.replace("String_Node_Str",player.getDisplayName()));
player.sendMessage(ChatColor.GREEN + Locale.coopRemoveSuccess.replace("String_Node_Str",target.getDisplayName()));
}
if (plugin.isOnIsland(player,target)) {
plugin.homeTeleport(target);
target.sendMessage(ChatColor.RED + Locale.expelExpelled);
plugin.getLogger().info(player.getName() + "String_Node_Str" + target.getName()+ "String_Node_Str");
player.sendMessage(ChatColor.GREEN + Locale.expelSuccess.replace("String_Node_Str",target.getDisplayName()));
}
 else if (!coop) {
player.sendMessage(ChatColor.RED + Locale.expelNotOnIsland);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + Locale.kickerrorNoTeam);
return true;
}
if (teamLeader != null && !teamLeader.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + Locale.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 + Locale.kickerrorNotPartOfTeam);
return true;
}
if (teamMembers.contains(targetPlayer)) {
if (player.getUniqueId().equals(targetPlayer)) {
  player.sendMessage(ChatColor.RED + Locale.leaveerrorLeadersCannotLeave);
  return true;
}
Player target=plugin.getServer().getPlayer(targetPlayer);
if (target != null) {
  target.sendMessage(ChatColor.RED + Locale.kicknameRemovedYou.replace("String_Node_Str",player.getName()));
  CoopPlay.getInstance().clearMyInvitedCoops(target);
  CoopPlay.getInstance().clearMyCoops(target);
  if (target.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
    for (    ItemStack i : target.getInventory().getContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    for (    ItemStack i : target.getEquipment().getArmorContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    plugin.resetPlayer(target);
  }
  if (!target.performCommand(Settings.SPAWNCOMMAND)) {
    target.teleport(ASkyBlock.getIslandWorld().getSpawnLocation());
  }
}
 else {
  plugin.setMessage(targetPlayer,ChatColor.RED + Locale.kicknameRemovedYou.replace("String_Node_Str",player.getName()));
}
plugin.removeWarp(targetPlayer);
sender.sendMessage(ChatColor.RED + Locale.kicknameRemoved.replace("String_Node_Str",split[1]));
removePlayerFromTeam(targetPlayer,teamLeader);
teamMembers.remove(targetPlayer);
if (teamMembers.size() < 2) {
  removePlayerFromTeam(player.getUniqueId(),teamLeader);
}
}
 else {
plugin.getLogger().warning("String_Node_Str" + player.getName() + "String_Node_Str"+ plugin.getPlayers().getName(targetPlayer));
player.sendMessage(ChatColor.RED + Locale.kickerrorNotPartOfTeam);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
targetPlayer=plugin.getPlayers().getUUID(split[1]);
if (targetPlayer == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
if (!plugin.getPlayers().inTeam(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + Locale.makeLeadererrorYouMustBeInTeam);
return true;
}
if (plugin.getPlayers().getMembers(player.getUniqueId()).size() > 2) {
player.sendMessage(ChatColor.RED + Locale.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 + Locale.makeLeaderyouAreNowTheOwner);
    }
 else {
      plugin.setMessage(targetPlayer,Locale.makeLeaderyouAreNowTheOwner);
    }
    player.sendMessage(ChatColor.GREEN + Locale.makeLeadernameIsNowTheOwner.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayer)));
    removePlayerFromTeam(targetPlayer,teamLeader);
    removePlayerFromTeam(teamLeader,teamLeader);
    plugin.transferIsland(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(targetPlayer,targetPlayer);
    return true;
  }
  player.sendMessage(ChatColor.RED + Locale.makeLeadererrorThatPlayerIsNotInTeam);
}
 else {
  player.sendMessage(ChatColor.RED + Locale.makeLeadererrorNotYourIsland);
}
}
 else {
player.sendMessage(ChatColor.RED + Locale.makeLeadererrorGeneralError);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 else {
return false;
}
}
return false;
}

Fixed version (ground truth):
@Override public boolean onCommand(final CommandSender sender,final Command command,final String label,final String[] split){
  if (!(sender instanceof Player)) {
    return false;
  }
  final Player player=(Player)sender;
  if (!VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.sendMessage(ChatColor.RED + Locale.islanderrorYouDoNotHavePermission);
    return true;
  }
  final UUID playerUUID=player.getUniqueId();
  final UUID teamLeader=plugin.getPlayers().getTeamLeader(playerUUID);
  List<UUID> teamMembers=new ArrayList<UUID>();
  if (teamLeader != null) {
    teamMembers=plugin.getPlayers().getMembers(teamLeader);
  }
  UUID targetPlayer=null;
switch (split.length) {
case 0:
    if (plugin.getPlayers().getIslandLocation(playerUUID) == null && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.GREEN + Locale.islandnew);
      final Location cowSpot=newIsland(sender);
      plugin.homeTeleport(player);
      plugin.resetPlayer(player);
      if (Settings.resetMoney) {
        resetMoney(player);
      }
      plugin.getServer().getScheduler().runTaskLater(plugin,new Runnable(){
        @Override public void run(){
          player.getWorld().spawnEntity(cowSpot,EntityType.COW);
        }
      }
,40L);
      setResetWaitTime(player);
      return true;
    }
 else {
      if (Settings.useControlPanel) {
        player.performCommand(Settings.ISLANDCOMMAND + "String_Node_Str");
      }
 else {
        plugin.homeTeleport(player);
        if (Settings.islandRemoveMobs) {
          plugin.removeMobs(player.getLocation());
        }
      }
      return true;
    }
case 1:
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
      player.sendMessage(ChatColor.RED + Locale.errorNoIsland);
      return true;
    }
    plugin.homeTeleport(player);
    if (Settings.islandRemoveMobs) {
      plugin.removeMobs(player.getLocation());
    }
    return true;
  }
 else   if (split[0].equalsIgnoreCase("String_Node_Str")) {
    player.sendMessage(ChatColor.GOLD + "String_Node_Str");
  }
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 && player.getWorld().getName().equalsIgnoreCase(Settings.worldName)) {
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    player.openInventory(ControlPanel.miniShop);
    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+ Locale.islandhelpWarp);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
Set<UUID> warpList=plugin.listWarps();
if (warpList.isEmpty()) {
  player.sendMessage(ChatColor.YELLOW + Locale.warpserrorNoWarpsYet);
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str") && plugin.playerIsOnIsland(player)) {
    player.sendMessage(ChatColor.YELLOW + Locale.warpswarpTip);
  }
  return true;
}
 else {
  Boolean hasWarp=false;
  String wlist="String_Node_Str";
  for (  UUID w : warpList) {
    if (wlist.isEmpty()) {
      wlist=plugin.getPlayers().getName(w);
    }
 else {
      wlist+="String_Node_Str" + plugin.getPlayers().getName(w);
    }
    if (w.equals(playerUUID)) {
      hasWarp=true;
    }
  }
  player.sendMessage(ChatColor.YELLOW + Locale.warpswarpsAvailable + "String_Node_Str"+ ChatColor.WHITE+ wlist);
  if (!hasWarp && (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str"))) {
    player.sendMessage(ChatColor.YELLOW + Locale.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 + Locale.islandresetOnlyOwner);
}
 else {
  player.sendMessage(ChatColor.YELLOW + Locale.islandresetMustRemovePlayers);
}
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
player.sendMessage(ChatColor.RED + Locale.islandResetNoMore);
return true;
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
player.sendMessage(ChatColor.RED + Locale.resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
if (!onRestartWaitTime(player) || Settings.resetWait == 0 || player.isOp()) {
player.sendMessage(ChatColor.RED + Locale.islandresetConfirm);
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);
    }
  }
,200L);
}
return true;
}
 else {
player.sendMessage(ChatColor.YELLOW + Locale.islandresetWait.replace("String_Node_Str",String.valueOf(getResetWaitTime(player))));
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (confirm.containsKey(playerUUID) && confirm.get(playerUUID)) {
player.sendMessage(ChatColor.YELLOW + Locale.islandresetPleaseWait);
plugin.getPlayers().setResetsLeft(playerUUID,plugin.getPlayers().getResetsLeft(playerUUID) - 1);
if (plugin.getPlayers().getResetsLeft(playerUUID) == 0) {
  player.sendMessage(ChatColor.YELLOW + Locale.islandResetNoMore);
}
if (plugin.getPlayers().getResetsLeft(playerUUID) > 0) {
  player.sendMessage(ChatColor.YELLOW + Locale.resetYouHave.replace("String_Node_Str",String.valueOf(plugin.getPlayers().getResetsLeft(playerUUID))));
}
CoopPlay.getInstance().clearMyInvitedCoops(player);
CoopPlay.getInstance().clearMyCoops(player);
final Location oldIsland=plugin.getPlayers().getIslandLocation(playerUUID);
final Location cowSpot=newIsland(sender);
plugin.getPlayers().setHomeLocation(playerUUID,null);
plugin.homeTeleport(player);
plugin.resetPlayer(player);
if (Settings.resetMoney) {
  resetMoney(player);
}
plugin.setIslandBiome(plugin.getPlayers().getIslandLocation(playerUUID),Settings.defaultBiome);
plugin.getServer().getScheduler().runTaskLater(plugin,new Runnable(){
  @Override public void run(){
    player.getWorld().spawnEntity(cowSpot,EntityType.COW);
  }
}
,40L);
setResetWaitTime(player);
plugin.removeWarp(playerUUID);
if (oldIsland != null) {
  CoopPlay.getInstance().clearAllIslandCoops(oldIsland);
  new DeleteIslandChunk(plugin,oldIsland);
}
for (String cmd : Settings.resetCommands) {
  try {
    if (!plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(),cmd.replace("String_Node_Str",player.getName()))) {
      plugin.getLogger().severe("String_Node_Str");
      plugin.getLogger().severe("String_Node_Str" + cmd);
    }
  }
 catch (  Exception e) {
    plugin.getLogger().severe("String_Node_Str");
    plugin.getLogger().severe("String_Node_Str" + cmd);
    plugin.getLogger().severe("String_Node_Str" + e.getMessage());
    e.printStackTrace();
  }
}
return true;
}
 else {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ Locale.islandhelpRestart);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
plugin.homeSet(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
player.sendMessage(ChatColor.GREEN + plugin.getName() + "String_Node_Str"+ plugin.getDescription().getVersion()+ "String_Node_Str");
if (Settings.useControlPanel) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpControlPanel);
}
 else {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpIsland);
}
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpTeleport);
if (plugin.getSpawn().getSpawnLoc() != null) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpSpawn);
}
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpControlPanel);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpRestart);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpSetHome);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpLevel);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpLevelPlayer);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpTop);
if (Settings.useEconomy && VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpMiniShop);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpWarps);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpWarp);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpTeam);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpInvite);
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpLeave);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpKick);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpAcceptReject);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpMakeLeader);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpBiome);
}
if (!Settings.allowPvP) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpExpel);
}
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.WHITE+ Locale.islandhelpCoop);
}
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 + Locale.levelerrornotYourIsland);
  return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID)) {
  player.sendMessage(ChatColor.RED + Locale.errorNoIsland);
  return true;
}
if (!plugin.playerIsOnIsland(player)) {
  player.sendMessage(ChatColor.RED + Locale.challengeserrorNotOnIsland);
  return true;
}
Inventory inv=plugin.biomes.getBiomePanel(player);
if (inv != null) {
  player.openInventory(inv);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") && plugin.getSpawn().getSpawnLoc() != null) {
player.teleport(plugin.getSpawn().getSpawnLoc());
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
plugin.showTopTen(player);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.playerIsOnIsland(player)) {
if (!plugin.getPlayers().inTeam(playerUUID) && !plugin.getPlayers().hasIsland(playerUUID)) {
  player.sendMessage(ChatColor.RED + Locale.errorNoIsland);
}
 else {
  calculateIslandLevel(player,playerUUID);
}
return true;
}
player.sendMessage(ChatColor.RED + Locale.challengeserrorNotOnIsland);
return true;
}
 else 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+ "String_Node_Str"+ label+ "String_Node_Str"+ ChatColor.YELLOW+ Locale.islandhelpInvite);
if (plugin.getPlayers().inTeam(playerUUID)) {
  if (teamLeader.equals(playerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      player.sendMessage(ChatColor.GREEN + Locale.inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
    }
 else {
      player.sendMessage(ChatColor.RED + Locale.inviteerrorYourIslandIsFull);
    }
    return true;
  }
  player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
  return true;
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID) && inviteList.containsKey(playerUUID)) {
  if (plugin.getPlayers().hasIsland(playerUUID)) {
    plugin.getLogger().info(player.getName() + "String_Node_Str");
    plugin.deletePlayerIsland(playerUUID);
    plugin.getLogger().info("String_Node_Str");
  }
  addPlayertoTeam(playerUUID,inviteList.get(playerUUID));
  if (!plugin.getPlayers().inTeam(inviteList.get(playerUUID))) {
    addPlayertoTeam(inviteList.get(playerUUID),inviteList.get(playerUUID));
  }
  setResetWaitTime(player);
  plugin.homeTeleport(player);
  plugin.resetPlayer(player);
  player.sendMessage(ChatColor.GREEN + Locale.inviteyouHaveJoinedAnIsland);
  if (Bukkit.getPlayer(inviteList.get(playerUUID)) != null) {
    Bukkit.getPlayer(inviteList.get(playerUUID)).sendMessage(ChatColor.GREEN + Locale.invitehasJoinedYourIsland.replace("String_Node_Str",player.getName()));
  }
  inviteList.remove(player.getUniqueId());
  return true;
}
player.sendMessage(ChatColor.RED + Locale.errorCommandNotReady);
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (inviteList.containsKey(player.getUniqueId())) {
player.sendMessage(ChatColor.YELLOW + Locale.rejectyouHaveRejectedInvitation);
if (Bukkit.getPlayer(inviteList.get(player.getUniqueId())) != null) {
  Bukkit.getPlayer(inviteList.get(player.getUniqueId())).sendMessage(ChatColor.RED + Locale.rejectnameHasRejectedInvite.replace("String_Node_Str",player.getName()));
}
inviteList.remove(player.getUniqueId());
}
 else {
player.sendMessage(ChatColor.RED + Locale.rejectyouHaveNotBeenInvited);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (player.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
  if (plugin.getPlayers().inTeam(playerUUID)) {
    if (plugin.getPlayers().getTeamLeader(playerUUID).equals(playerUUID)) {
      player.sendMessage(ChatColor.YELLOW + Locale.leaveerrorYouAreTheLeader);
      return true;
    }
    CoopPlay.getInstance().clearMyInvitedCoops(player);
    CoopPlay.getInstance().clearMyCoops(player);
    plugin.resetPlayer(player);
    if (!player.performCommand(Settings.SPAWNCOMMAND)) {
      player.teleport(player.getWorld().getSpawnLocation());
    }
    removePlayerFromTeam(playerUUID,teamLeader);
    plugin.removeWarp(playerUUID);
    player.sendMessage(ChatColor.YELLOW + Locale.leaveyouHaveLeftTheIsland);
    if (plugin.getServer().getPlayer(teamLeader) != null) {
      plugin.getServer().getPlayer(teamLeader).sendMessage(ChatColor.RED + Locale.leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
 else {
      plugin.setMessage(teamLeader,ChatColor.RED + Locale.leavenameHasLeftYourIsland.replace("String_Node_Str",player.getName()));
    }
    if (teamMembers.size() < 2) {
      plugin.getLogger().info("String_Node_Str");
      removePlayerFromTeam(teamLeader,teamLeader);
    }
    return true;
  }
 else {
    player.sendMessage(ChatColor.RED + Locale.leaveerrorYouCannotLeaveIsland);
    return true;
  }
}
 else {
  player.sendMessage(ChatColor.RED + Locale.leaveerrorYouMustBeInWorld);
}
return true;
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (plugin.getPlayers().inTeam(playerUUID)) {
if (teamLeader.equals(playerUUID)) {
  int maxSize=Settings.maxTeamSize;
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP;
  }
  if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
    maxSize=Settings.maxTeamSizeVIP2;
  }
  if (teamMembers.size() < maxSize) {
    player.sendMessage(ChatColor.GREEN + Locale.inviteyouCanInvite.replace("String_Node_Str",String.valueOf(maxSize - teamMembers.size())));
  }
 else {
    player.sendMessage(ChatColor.RED + Locale.inviteerrorYourIslandIsFull);
  }
}
player.sendMessage(ChatColor.YELLOW + Locale.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 + Locale.invitenameHasInvitedYou.replace("String_Node_Str",plugin.getPlayers().getName(inviteList.get(playerUUID))));
player.sendMessage(ChatColor.WHITE + "String_Node_Str" + label+ "String_Node_Str"+ ChatColor.YELLOW+ Locale.invitetoAcceptOrReject);
}
 else {
player.sendMessage(ChatColor.RED + Locale.kickerrorNoTeam);
}
return true;
}
 else {
return false;
}
case 2:
if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final Set<UUID> warpList=plugin.listWarps();
if (warpList.isEmpty()) {
player.sendMessage(ChatColor.YELLOW + Locale.warpserrorNoWarpsYet);
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
  player.sendMessage(ChatColor.YELLOW + Locale.warpswarpTip);
}
return true;
}
 else {
UUID foundWarp=null;
for (UUID warp : warpList) {
  if (plugin.getPlayers().getName(warp).toLowerCase().startsWith(split[1].toLowerCase())) {
    foundWarp=warp;
    break;
  }
}
if (foundWarp == null) {
  player.sendMessage(ChatColor.RED + Locale.warpserrorDoesNotExist);
  return true;
}
 else {
  final Location warpSpot=plugin.getWarp(foundWarp);
  if (warpSpot == null) {
    player.sendMessage(ChatColor.RED + Locale.warpserrorNotReadyYet);
    plugin.getLogger().warning("String_Node_Str" + plugin.getPlayers().getName(foundWarp));
    return true;
  }
  Block b=warpSpot.getBlock();
  if (b.getType().equals(Material.SIGN_POST)) {
    Sign sign=(Sign)b.getState();
    org.bukkit.material.Sign s=(org.bukkit.material.Sign)sign.getData();
    BlockFace directionFacing=s.getFacing();
    Location inFront=b.getRelative(directionFacing).getLocation();
    if ((ASkyBlock.isSafeLocation(inFront))) {
      float yaw=ASkyBlock.blockFaceToFloat(directionFacing);
      final Location actualWarp=new Location(inFront.getWorld(),inFront.getBlockX() + 0.5D,inFront.getBlockY(),inFront.getBlockZ() + 0.5D,yaw,30F);
      player.teleport(actualWarp);
      player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
      return true;
    }
  }
 else {
    player.sendMessage(ChatColor.RED + "String_Node_Str");
    plugin.removeWarp(warpSpot);
    return true;
  }
  if (!(ASkyBlock.isSafeLocation(warpSpot))) {
    player.sendMessage(ChatColor.RED + Locale.warpserrorNotSafe);
    plugin.getLogger().warning("String_Node_Str" + warpSpot.toString() + "String_Node_Str"+ plugin.getPlayers().getName(foundWarp));
    return true;
  }
 else {
    final Location actualWarp=new Location(warpSpot.getWorld(),warpSpot.getBlockX() + 0.5D,warpSpot.getBlockY(),warpSpot.getBlockZ() + 0.5D);
    player.teleport(actualWarp);
    player.getWorld().playSound(player.getLocation(),Sound.BAT_TAKEOFF,1F,1F);
    return true;
  }
}
}
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 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 + Locale.errorNoIsland);
}
 else {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
  player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
  return true;
}
calculateIslandLevel(player,plugin.getPlayers().getUUID(split[1]));
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
}
return false;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
if (plugin.getServer().getPlayer(invitedPlayerUUID) == null) {
player.sendMessage(ChatColor.RED + Locale.errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().inTeam(player.getUniqueId())) {
if (teamLeader.equals(player.getUniqueId())) {
  if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
    int maxSize=Settings.maxTeamSize;
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP;
    }
    if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
      maxSize=Settings.maxTeamSizeVIP2;
    }
    if (teamMembers.size() < maxSize) {
      if (inviteList.containsValue(playerUUID)) {
        inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
        player.sendMessage(ChatColor.YELLOW + Locale.inviteremovingInvite);
      }
      inviteList.put(invitedPlayerUUID,player.getUniqueId());
      player.sendMessage(ChatColor.GREEN + Locale.inviteinviteSentTo.replace("String_Node_Str",split[1]));
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(Locale.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"+ Locale.invitetoAcceptOrReject);
      Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + Locale.invitewarningYouWillLoseIsland);
    }
 else {
      player.sendMessage(ChatColor.RED + Locale.inviteerrorYourIslandIsFull);
    }
  }
 else {
    player.sendMessage(ChatColor.RED + Locale.inviteerrorThatPlayerIsAlreadyInATeam);
  }
}
 else {
  player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
}
}
 else {
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
  if (inviteList.containsValue(playerUUID)) {
    inviteList.remove(getKeyByValue(inviteList,player.getUniqueId()));
    player.sendMessage(ChatColor.YELLOW + Locale.inviteremovingInvite);
  }
  inviteList.put(invitedPlayerUUID,player.getUniqueId());
  player.sendMessage(ChatColor.GREEN + Locale.inviteinviteSentTo.replace("String_Node_Str",split[1]));
  Bukkit.getPlayer(invitedPlayerUUID).sendMessage(Locale.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"+ Locale.invitetoAcceptOrReject);
  if (plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
    Bukkit.getPlayer(invitedPlayerUUID).sendMessage(ChatColor.RED + Locale.invitewarningYouWillLoseIsland);
  }
}
 else {
  player.sendMessage(ChatColor.RED + Locale.inviteerrorThatPlayerIsAlreadyInATeam);
}
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
final UUID invitedPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (invitedPlayerUUID == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
Player newPlayer=plugin.getServer().getPlayer(invitedPlayerUUID);
if (newPlayer == null) {
player.sendMessage(ChatColor.RED + Locale.errorOfflinePlayer);
return true;
}
if (!plugin.getPlayers().hasIsland(playerUUID) && !plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouMustHaveIslandToInvite);
return true;
}
if (player.getName().equalsIgnoreCase(split[1])) {
player.sendMessage(ChatColor.RED + Locale.inviteerrorYouCannotInviteYourself);
return true;
}
if (plugin.getPlayers().getMembers(playerUUID).contains(invitedPlayerUUID)) {
player.sendMessage(ChatColor.RED + Locale.coopOnYourTeam);
return true;
}
if (!plugin.getPlayers().inTeam(invitedPlayerUUID)) {
if (!plugin.getPlayers().hasIsland(invitedPlayerUUID)) {
  player.sendMessage(ChatColor.RED + Locale.errorNoIslandOther);
  return true;
}
}
CoopPlay.getInstance().addCoopPlayer(player,newPlayer);
player.sendMessage(ChatColor.GREEN + Locale.coopSuccess.replace("String_Node_Str",newPlayer.getDisplayName()));
newPlayer.sendMessage(ChatColor.GREEN + Locale.coopMadeYouCoop.replace("String_Node_Str",player.getDisplayName()));
return true;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (Settings.allowPvP) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownCommand);
return false;
}
final UUID targetPlayerUUID=plugin.getPlayers().getUUID(split[1]);
if (targetPlayerUUID == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
Player target=plugin.getServer().getPlayer(targetPlayerUUID);
if (target == null) {
player.sendMessage(ChatColor.RED + Locale.errorOfflinePlayer);
return true;
}
if (target.isOp() || VaultHelper.checkPerm(target,Settings.PERMPREFIX + "String_Node_Str")) {
player.sendMessage(ChatColor.RED + Locale.expelFail.replace("String_Node_Str",target.getDisplayName()));
return true;
}
boolean coop=CoopPlay.getInstance().removeCoopPlayer(player,target);
if (coop) {
target.sendMessage(ChatColor.RED + Locale.coopRemoved.replace("String_Node_Str",player.getDisplayName()));
player.sendMessage(ChatColor.GREEN + Locale.coopRemoveSuccess.replace("String_Node_Str",target.getDisplayName()));
}
if (plugin.isOnIsland(player,target)) {
plugin.homeTeleport(target);
target.sendMessage(ChatColor.RED + Locale.expelExpelled);
plugin.getLogger().info(player.getName() + "String_Node_Str" + target.getName()+ "String_Node_Str");
player.sendMessage(ChatColor.GREEN + Locale.expelSuccess.replace("String_Node_Str",target.getDisplayName()));
}
 else if (!coop) {
player.sendMessage(ChatColor.RED + Locale.expelNotOnIsland);
}
return true;
}
 else if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
if (!plugin.getPlayers().inTeam(playerUUID)) {
player.sendMessage(ChatColor.RED + Locale.kickerrorNoTeam);
return true;
}
if (teamLeader != null && !teamLeader.equals(playerUUID)) {
player.sendMessage(ChatColor.RED + Locale.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 + Locale.kickerrorNotPartOfTeam);
return true;
}
if (teamMembers.contains(targetPlayer)) {
if (player.getUniqueId().equals(targetPlayer)) {
  player.sendMessage(ChatColor.RED + Locale.leaveerrorLeadersCannotLeave);
  return true;
}
Player target=plugin.getServer().getPlayer(targetPlayer);
if (target != null) {
  target.sendMessage(ChatColor.RED + Locale.kicknameRemovedYou.replace("String_Node_Str",player.getName()));
  CoopPlay.getInstance().clearMyInvitedCoops(target);
  CoopPlay.getInstance().clearMyCoops(target);
  if (target.getWorld().getName().equalsIgnoreCase(ASkyBlock.getIslandWorld().getName())) {
    for (    ItemStack i : target.getInventory().getContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    for (    ItemStack i : target.getEquipment().getArmorContents()) {
      if (i != null) {
        try {
          player.getWorld().dropItemNaturally(player.getLocation(),i);
        }
 catch (        Exception e) {
        }
      }
    }
    player.getInventory().clear();
    player.getInventory().setArmorContents(null);
    player.getInventory().setHelmet(null);
    player.getInventory().setChestplate(null);
    player.getInventory().setLeggings(null);
    player.getInventory().setBoots(null);
    player.getEquipment().clear();
    if (Settings.resetChallenges) {
      plugin.getPlayers().resetAllChallenges(player.getUniqueId());
    }
    plugin.getPlayers().setIslandLevel(player.getUniqueId(),0);
    plugin.getPlayers().save(player.getUniqueId());
    plugin.updateTopTen();
    player.updateInventory();
  }
  if (!target.performCommand(Settings.SPAWNCOMMAND)) {
    target.teleport(ASkyBlock.getIslandWorld().getSpawnLocation());
  }
}
 else {
  plugin.setMessage(targetPlayer,ChatColor.RED + Locale.kicknameRemovedYou.replace("String_Node_Str",player.getName()));
}
plugin.removeWarp(targetPlayer);
sender.sendMessage(ChatColor.RED + Locale.kicknameRemoved.replace("String_Node_Str",split[1]));
removePlayerFromTeam(targetPlayer,teamLeader);
teamMembers.remove(targetPlayer);
if (teamMembers.size() < 2) {
  removePlayerFromTeam(player.getUniqueId(),teamLeader);
}
}
 else {
plugin.getLogger().warning("String_Node_Str" + player.getName() + "String_Node_Str"+ plugin.getPlayers().getName(targetPlayer));
player.sendMessage(ChatColor.RED + Locale.kickerrorNotPartOfTeam);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 else if (split[0].equalsIgnoreCase("String_Node_Str")) {
if (VaultHelper.checkPerm(player,Settings.PERMPREFIX + "String_Node_Str")) {
targetPlayer=plugin.getPlayers().getUUID(split[1]);
if (targetPlayer == null) {
player.sendMessage(ChatColor.RED + Locale.errorUnknownPlayer);
return true;
}
if (!plugin.getPlayers().inTeam(player.getUniqueId())) {
player.sendMessage(ChatColor.RED + Locale.makeLeadererrorYouMustBeInTeam);
return true;
}
if (plugin.getPlayers().getMembers(player.getUniqueId()).size() > 2) {
player.sendMessage(ChatColor.RED + Locale.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 + Locale.makeLeaderyouAreNowTheOwner);
    }
 else {
      plugin.setMessage(targetPlayer,Locale.makeLeaderyouAreNowTheOwner);
    }
    player.sendMessage(ChatColor.GREEN + Locale.makeLeadernameIsNowTheOwner.replace("String_Node_Str",plugin.getPlayers().getName(targetPlayer)));
    removePlayerFromTeam(targetPlayer,teamLeader);
    removePlayerFromTeam(teamLeader,teamLeader);
    plugin.transferIsland(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(player.getUniqueId(),targetPlayer);
    addPlayertoTeam(targetPlayer,targetPlayer);
    return true;
  }
  player.sendMessage(ChatColor.RED + Locale.makeLeadererrorThatPlayerIsNotInTeam);
}
 else {
  player.sendMessage(ChatColor.RED + Locale.makeLeadererrorNotYourIsland);
}
}
 else {
player.sendMessage(ChatColor.RED + Locale.makeLeadererrorGeneralError);
}
return true;
}
 else {
player.sendMessage(ChatColor.RED + Locale.errorNoPermission);
return false;
}
}
 else {
return false;
}
}
return false;
}