Cancels the event of the interacted block
This commit is contained in:
parent
ff9b125426
commit
35b5724da5
Binary file not shown.
@ -30,6 +30,7 @@ import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
@ -890,6 +891,7 @@ public class FactionsPlayerListener implements Listener {
|
||||
|
||||
SavageFactions.plugin.log("Guess we will cancel the event then");
|
||||
event.setCancelled(true);
|
||||
event.setUseInteractedBlock(Event.Result.DENY);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user