Solved Need help with nuke command

Discussion in 'Plugin Development' started by Akilogramofstone, Nov 16, 2021.

  1. Hello, so I'm trying to make a nuke command that will spawn a lot of TNT above the player/target. How would I do this? This is my code so far.

    Code:
        @Override
        public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
            if (command.getName().equalsIgnoreCase("nuke")) {
                if (sender instanceof Player) {
                    Player player = (Player) sender;
                   
                    if (sender.hasPermission("minecraft.command.summon")) {
                        // spawn TNT
                    }
                }
            }
           
            return true;
        }
     
  2. Offline

    Kars

  3. Sorry for not responding in a while, but thanks for the link!
     

Share This Page