mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-09 03:57:40 +08:00
Now requires perms to access menus.
This commit is contained in:
parent
c2fa5bd8af
commit
6bb98a77a6
@ -244,9 +244,9 @@ public class GUISpawnerOverview extends AbstractGUI {
|
||||
});
|
||||
|
||||
registerClickable(13, (player, inventory, cursor, slot, type) -> {
|
||||
if (type.isRightClick() && spawner.getBoost() == 0) {
|
||||
if (type.isRightClick() && spawner.getBoost() == 0 && player.hasPermission("epicspawners.canboost")) {
|
||||
new GUISpawnerBoost(plugin, spawner, player);
|
||||
} else if (type.isLeftClick() && spawner.getSpawnerStacks().size() == 1) {
|
||||
} else if (type.isLeftClick() && spawner.getSpawnerStacks().size() == 1 && player.hasPermission("epicspawners.convert") ) {
|
||||
new GUISpawnerConvert(plugin, spawner, player);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user