@EventHandler(priority = EventPriority.NORMAL)
	public void onPlayerChat(PlayerChatEvent evt) {
		
		evt.setCancelled(true);
		String message = evt.getMessage();
		String msg = "";
		int distance = say_distance;
		if (message.toLowerCase().startsWith("yell ")) {
			msg = ChatColor.RED
					+ message.substring(5, message.length()).toUpperCase();
			distance = yell_distance;
		} else if (message.toLowerCase().startsWith("whisper ")) {
			msg = ChatColor.BLUE
					+ message.substring(8, message.length());
			distance = whisper_distance;
		} else if (message.toLowerCase().startsWith("ooc ")) {
			msg = ChatColor.YELLOW + "[OOC] "
					+ message.substring(4, message.length());
			distance = -1;
			sendMessageToServer(evt.getPlayer().getName(), msg);
			return;
		} else {
			msg = message;
			distance = say_distance;
		}

		sendMessage(evt.getPlayer(), ChatColor.WHITE + msg, distance);

	}