Heyo, so I am having trouble getting my plugin to detect if the players EXP level is less than the EXP that is being taken away Code: }else if (args[0].equalsIgnoreCase("take")) { if(p.hasPermission("mcxp.take.self")){ if (args.length == 2) { try { String xpToGiveString = args[1]; float xpToTake = Integer.parseInt(xpToGiveString); float currentXP = p.getExp(); float totalXP = currentXP - xpToTake; /////THIS if(currentXP >= xpToTake){ p.sendMessage(ChatColor.DARK_AQUA + "[MCXP] You do not have enough experience"); return true; --------------------------------------------------------------------- }else{ p.giveExpLevels((int) totalXP); p.sendMessage(ChatColor.DARK_AQUA + "[MCXP]You have lost " + ChatColor.GOLD + xpToTake + ChatColor.DARK_AQUA + " experience points"); } }catch (NumberFormatException e){ p.sendMessage(ChatColor.GOLD + "[MCXP] Error: Please use a lower EXP amount or a whole number"); getLogger().severe(p.getName() + " needs to chill out on the exp..."); } } } The bold thing is not working for some reason, because if you try to take more EXP than you have it will let you and I'm trying to have it deny you the command if so Thanks for any help