mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01:00
Prevent lava bucket placed in air (far away from user)
event.isCancelled() does not return the expected value
This commit is contained in:
parent
f0c503dd13
commit
ebc56c0e15
@ -24,11 +24,6 @@ public class EssentialsProtectPlayerListener extends PlayerListener
|
||||
@Override
|
||||
public void onPlayerInteract(final PlayerInteractEvent event)
|
||||
{
|
||||
if (event.isCancelled())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final User user = ess.getUser(event.getPlayer());
|
||||
|
||||
if (prot.getSettingBool(ProtectConfig.disable_build) && !user.canBuild())
|
||||
|
Loading…
Reference in New Issue
Block a user