LogWriter.error(String.format("%s attempted to utilize a %s Packet without an item, they could be a hacker",player.getCommandSenderName(),type.toString()));
returnfalse;
}
switch(type){
caseWAND:
if(item.getItem()!=CustomItems.wand){
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a Wand, they could be a hacker",player.getCommandSenderName(),type.toString()));
returnfalse;
}
break;
caseMOUNTER:
if(item.getItem()!=CustomItems.mount){
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a Mounter, they could be a hacker",player.getCommandSenderName(),type.toString()));
returnfalse;
}
break;
caseCLONER:
if(item.getItem()!=CustomItems.cloner){
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a Cloner, they could be a hacker",player.getCommandSenderName(),type.toString()));
returnfalse;
}
break;
caseTELEPORTER:
if(item.getItem()!=CustomItems.teleporter){
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a Teleporter, they could be a hacker",player.getCommandSenderName(),type.toString()));
returnfalse;
}
break;
caseSCRIPTER:
if(item.getItem()!=CustomItems.scripter){
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a Scripter, they could be a hacker",player.getCommandSenderName(),type.toString()));
returnfalse;
}
break;
casePATHER:
if(item.getItem()!=CustomItems.moving){
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a Pather, they could be a hacker",player.getCommandSenderName(),type.toString()));
LogWriter.error(String.format("%s attempted to utilize a %s Packet without a valid Block, they could be a hacker",player.getCommandSenderName(),type.toString()));