Hi I wanna execute a command with an other command/action or something else. An example: I execute the command "/20dirt" then ist should execute "/give edocsyl 2 20"
Code: if(command.getName().equalsIgnoreCase("20dirt")) { Bukkit.getServer().dispatchCommand(player, "give " + player.getName() + " 2 20"); } Or better: Code: if(command.getName().equalsIgnoreCase("dirt")) { if(args.length > 0) { Bukkit.getServer().dispatchCommand(player, "give " + player.getName() + " 2 " + args[0]); } else { player.sendMessage("§cUsage: /dirt <amount>"); } }