First version of fire antigriefs... Forgot this file.

This commit is contained in:
nossr50 2010-12-07 20:08:40 -08:00
parent 908456cf84
commit bfdbe3f6f9

View File

@ -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;