BloodBacker What bit are you not sure how to do? World has a getEntities() method. If you're not sure how to make commands, I recommend that you follow the plugin tutorial on the Bukkit wiki.
BloodBacker loop over all blocks in the world and set all fire blocks to air (though, I suggest you don't do it like this since it will most likely kill your server). AdamQpzm last time I checked, fire was still a block ;3.
fireblast709 how to loop over all blocks.. ? AdamQpzm I know how to use commands.. AdamQpzm @fireblast709 We could save it to a list? like, when a player use flint and steal, put the block/ idk what flint and steal is, to the list. After the game, you check if the block is fire, if it is fire, set it to air? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
remove or disable? disable code: Code:java @EventHandlerpublic void onIgnite(BlockIgniteEvent e) {e.setCancelled(true);}
BloodBacker You can use that event to log fire locations. Then loop through those locations to check if they are still fire (I'm sure there's an event you could use when fire goes out to take it out of the log, then you wouldn't have to check if the block is still fire), then set to air.
I'd use the event Hilgert so kindly provided and extend it. Whenever something ignites, loop over all blocks in a radius of 5 and if they're fire, set them to air. BloodBacker
Like this: Code:java public List<Location> fire = new ArrayList<Location>();@EventHandler public void onIgnite(BlockIgniteEvent e){ if (e.getCause().equals(IgniteCause.FLINT_AND_STEEL)){ this.plugin.fire.add(e.getBlock().getLocation()); } } And than, after the game? how to set all fire blocks to air, like timer or someting?