mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
First version of fire antigriefs... Forgot this file.
This commit is contained in:
parent
908456cf84
commit
bfdbe3f6f9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user