mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-13 19:52:03 +01:00
Disable /unlimited for fire block
This commit is contained in:
parent
f4ef5a2094
commit
37d77f3e89
@ -308,6 +308,8 @@ public class EssentialsBlockListener extends BlockListener
|
|||||||
case PISTON_BASE:
|
case PISTON_BASE:
|
||||||
is.setDurability((short)0);
|
is.setDurability((short)0);
|
||||||
break;
|
break;
|
||||||
|
case FIRE:
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
boolean unlimitedForUser = user.hasUnlimited(is);
|
boolean unlimitedForUser = user.hasUnlimited(is);
|
||||||
if (unlimitedForUser)
|
if (unlimitedForUser)
|
||||||
|
Loading…
Reference in New Issue
Block a user