Buggy code:
public class CommandsAssistant extends Commands { @ CommandNode ( name = "setspawn" , permission = "mytown.cmd.assistant.setspawn" , parentName = "mytown.cmd" ) public static void setSpawnCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "claim" , permission = "mytown.cmd.assistant.claim" , parentName = "mytown.cmd" ) public static void claimCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "unclaim" , permission = "mytown.cmd.assistant.unclaim" , parentName = "mytown.cmd" ) public static void unclaimCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "blocks" , permission = "mytown.cmd.assistant.blocks" , parentName = "mytown.cmd" ) public static void blocksCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "invite" , permission = "mytown.cmd.assistant.invite" , parentName = "mytown.cmd" , completionKeys = { "residentCompletion" } ) public static void inviteCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "perm" , permission = "mytown.cmd.assistant.perm" , parentName = "mytown.cmd" ) public static void permCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "town" , permission = "mytown.cmd.assistant.perm.town" , parentName = "mytown.cmd.assistant.perm" ) public static void permTownCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "set" , permission = "mytown.cmd.assistant.perm.town.set" , parentName = "mytown.cmd.assistant.perm.town" , completionKeys = "flagCompletion" ) public static void permSetTownCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "whitelist" , permission = "mytown.cmd.assistant.perm.town.whitelist" , parentName = "mytown.cmd.assistant.perm.town" , completionKeys = { "flagCompletionWhitelist" } ) public static void permTownWhitelistCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "promote" , permission = "mytown.cmd.assistant.promote" , parentName = "mytown.cmd" , completionKeys = { "residentCompletion" , "rankCompletion" } ) public static void promoteCommand ( ICommandSender sender , List < String > args ) { } public static class ModifyRanks { @ CommandNode ( name = "add" , permission = "mytown.cmd.assistant.ranks.add" , parentName = "mytown.cmd.everyone.ranks" , completionKeys = { "-" , "ranksCompletion" } ) public static void ranksAddCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "remove" , permission = "mytown.cmd.assistant.ranks.remove" , parentName = "mytown.cmd.everyone.ranks" , completionKeys = { "rankCompletion" } ) public static void ranksRemoveCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "add" , permission = "mytown.cmd.assistant.ranks.perm.add" , parentName = "mytown.cmd.assistant.ranks.perm" ) public static void ranksPermAddCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "remove" , permission = "mytown.cmd.assistant.ranks.perm.remove" , parentName = "mytown.cmd.assistant.ranks.perm" ) public static void ranksPermRemoveCommand ( ICommandSender sender , List < String > args ) { } } @ CommandNode ( name = "perm" , permission = "mytown.cmd.assistant.ranks.perm" , parentName = "mytown.cmd.everyone.ranks" ) public static void ranksPermCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "list" , permission = "mytown.cmd.assistant.ranks.perm.list" , parentName = "mytown.cmd.assistant.ranks.perm" ) public static void ranksPermListCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "pass" , permission = "mytown.cmd.mayor.pass" , parentName = "mytown.cmd" , completionKeys = { "residentCompletion" } ) public static void passCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "limit" , permission = "mytown.cmd.assistant.plot.limit" , parentName = "mytown.cmd.everyone.plot" ) public static void plotLimitCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "show" , permission = "mytown.cmd.assistant.plot.limit.show" , parentName = "mytown.cmd.everyone.plot.limit" ) public static void plotLimitShowCommand ( ICommandSender sender , List < String > args , List < String > subCommands ) { } @ CommandNode ( name = "set" , permission = "mytown.cmd.assistant.plot.limit.set" , parentName = "mytown.cmd.assistant.plot.limit" ) public static void plotLimitSetCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "kick" , permission = "mytown.cmd.assistant.kick" , parentName = "mytown.cmd" , completionKeys = { "residentCompletion" } ) public static void kickCommand ( ICommandSender sender , List < String > args ) { } @ CommandNode ( name = "delete" , permission = "mytown.cmd.mayor.leave.delete" , parentName = "mytown.cmd.everyone.leave" ) public static void leaveDeleteCommand ( ICommandSender sender , List < String > args ) { Resident res = getDatasource ( ) . getOrMakeResident ( sender ) ; Town town = getTownFromResident ( res ) ; EntityPlayer player = ( ( EntityPlayer ) ( sender ) ) ; if ( town . getResidentRank ( res ) . getName ( ) . equals ( theMayorDefaultRank ) ) { town . notifyEveryone ( getLocal ( ) . getLocalization ( "mytown.notification.town.deleted" , town . getName ( ) , res . getPlayerName ( ) ) ) ; <START_BUG> MyTownUtils . giveItemToPlayer ( player , costItemName , ( ( Config . costAmountClaim ) * ( town . getBlocks ( ) . size ( ) ) ) ) ; <END_BUG> getDatasource ( ) . deleteTown ( town ) ; } } protected static boolean checkNearby ( int dim , int x , int z , Town town ) { } }

Fix:
makeRefund ( player , ( ( Config . costAmountClaim ) * ( town . getBlocks ( ) . size ( ) ) ) ) ;