Recent content by Person6HG

  1. P

    Execute a command in code

    Hey, I want to execute a command anywhere in a code. How can I do this? Example: if (act == Action.RIGHT_CLICK_AIR) { Player p2 = e.getPlayer(); if(e.getPlayer().getInventory().getItemInHand().getId() == 1) { p2.sendMessage(Main.pfx + "Teleporter online!"); //execute a command }
Top