mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16: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){
|
public void onLogin(Player player){
|
||||||
vMinecraftUsers.addUser(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) {
|
public boolean onDamage(PluginLoader.DamageType type, BaseEntity attacker, BaseEntity defender, int amount) {
|
||||||
if(defender.isPlayer()){
|
if(defender.isPlayer()){
|
||||||
Player player = (Player)defender;
|
Player player = (Player)defender;
|
||||||
|
Loading…
Reference in New Issue
Block a user