mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Add setting check for item frame place
This commit is contained in:
parent
4c494c572e
commit
5f6a1d2f57
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user