@EventHandler(priority = EventPriority.LOWEST)
	public void onPlayerChat(PlayerChatEvent event){
		if(event.isCancelled()) return;	
		Player sender = event.getPlayer();
		boolean isRadio = false; 
		
		//Check if the radio is on and the mic is open
		if(amcMain.isRadioOn(sender)&&amcMain.getPlayerMic(sender)){
			isRadio = true;
			//If the server requires the item in hand and we don't have it, flag this as non radio chat.
			if(amcMain.varHeldItemReq && sender.getItemInHand().getTypeId() != amcMain.varHeldItemID)
			{isRadio = false;}
		}
		
		
		if((!isRadio) && (!amcMain.isLocalManaged())){
			amcMain.logMessage("Ignoring chat event");
			return;
		}
		
		AMEventCenter.callAmChatEvent(sender, event.getMessage(),isRadio,amcMain.getPlayerRadioChannel(sender),amcMain.getPlayerRadioCode(sender));
		event.setCancelled(true);
	}