221222223224225226227228229
if (Minecraft.isGuiScreenOpen()) { return; } Player player = Minecraft.getPlayer(); if (player != null) { CommandSender sender = new CommandSender(MinecraftServer.getPlayerByUsername(player.getPlayerName())); CommandManager.runCommand(sender, BINDINGS.getString(key + "", "")); } }
51525354555657
Player su = (Player)params.get(0); String command = (String)params.get(1); if (params.size() == 3) { command += " " + (String)params.get(2); } CommandManager.runCommand(new CommandSender(su), command); }