mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
parent
9d396fa91f
commit
6ad51bba65
@ -1439,6 +1439,9 @@ public class PlayerEventListener extends PlotListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
|
||||
if (event.getRightClicked().getType() == EntityType.UNKNOWN) {
|
||||
return;
|
||||
}
|
||||
Location location = BukkitUtil.adapt(event.getRightClicked().getLocation());
|
||||
PlotArea area = location.getPlotArea();
|
||||
if (area == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user