Add setting check for item frame place

This commit is contained in:
Fabrizio La Rosa 2020-07-29 00:57:40 +02:00
parent 4c494c572e
commit 5f6a1d2f57

View File

@ -10,6 +10,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.block.Action;
import org.bukkit.event.block.BlockMultiPlaceEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.hanging.HangingPlaceEvent;
import org.bukkit.event.player.PlayerInteractEvent;
public class PlacePermission extends ListeningPermission {
@ -43,4 +44,9 @@ public class PlacePermission extends ListeningPermission {
public void onMultiPlace(BlockMultiPlaceEvent event) {
cancelAndMessage(event, event.getPlayer(), plugin, messageManager);
}
@PermissionHandler
public void onHangingPlace(HangingPlaceEvent event) {
cancelAndMessage(event, event.getPlayer(), plugin, messageManager);
}
}