From bfdbe3f6f928e285fd46a71cb2e83fd54c658eea Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 7 Dec 2010 20:08:40 -0800 Subject: [PATCH] First version of fire antigriefs... Forgot this file. --- vMinecraftListener.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vMinecraftListener.java b/vMinecraftListener.java index 25965391f..70459c811 100644 --- a/vMinecraftListener.java +++ b/vMinecraftListener.java @@ -90,6 +90,14 @@ public class vMinecraftListener extends PluginListener { public void onLogin(Player player){ vMinecraftUsers.addUser(player); } + public boolean onIgnite(Block block, Player player) { + if(vMinecraftSettings.stopFire){ + if (vMinecraftSettings.fireNoSpread.contains(block)){ + return true; + } + } + return false; + } public boolean onDamage(PluginLoader.DamageType type, BaseEntity attacker, BaseEntity defender, int amount) { if(defender.isPlayer()){ Player player = (Player)defender;