Tnt auto ignite with a simple /tnt command?

Discussion in 'Plugin Development' started by kencraftservices, Jun 8, 2013.

Thread Status:
Not open for further replies.
  1. So I'm coding this private plugin for my server and already have added a couple commands without ANY problems at all. I wanted to add /tnt which is also an alias for /antioch in Essentials, but I looked at bukkit api and couldn't find an entity interface for it. Any ideas?

    [Shorter version]: I can't figure out how to code /tnt to auto ignite a piece of tnt in the area you're looking at.
  2. Offline


    Player player = (Player) sender;
    Location loc = player.getLocation()
    loc.getWorld().spawn(loc, TNTPrimed.class);
  3. Wow thanks dude.
Thread Status:
Not open for further replies.

Share This Page