@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
    public void onPlayerCommand(PlayerCommandPreprocessEvent event) {
        Player player = event.getPlayer();
        if (player.hasPermission("GameAPI.join")) {
            if (okayNoArgCommands.contains(event.getMessage().toLowerCase()))
                return;
            if (okayArgCommands.contains(event.getMessage().toLowerCase().split(" ")[0]) || event.getMessage().toLowerCase().startsWith("/ctt kit"))
                return;
            for (Entry<Integer, Game> en : GameAPIMain.getRunners().entrySet()) {
                if (!(en.getValue() instanceof CTTGame))
                    continue;
                CTTGame g = (CTTGame) en.getValue();
                if (g.getPlayers().contains(player.getName())) {
                    player.sendMessage(ChatColor.RED + "You can't use commands while in game! To leave, use /l");
                    event.setCancelled(true);
                    CTT.debug(player.getName() + " has been denied the use of the command: " + event.getMessage());
                    return;
                }
            }
        }
    }