@EventHandler(priority = EventPriority.HIGHEST)
	public void onCommandPreprocess(PlayerCommandPreprocessEvent event) {
		if (event.getMessage().toLowerCase().startsWith("/eg leave")) return;
		Player player = event.getPlayer();
		for (Map.Entry<Integer, Game> en : plugin.getRunningGames().entrySet()) {
			if (en.getValue().getArrayListofPlayers().contains(player.getName()) && !player.hasPermission("EndersGame.override")) {
				event.setCancelled(true);
				player.sendMessage(ChatColor.RED + "You cannot use commands while in-game. To leave, use /eg leave");
				return;
			}
		}
	}