Now requires perms to access menus.

This commit is contained in:
Brianna O'Keefe 2019-01-30 16:32:26 -05:00
parent c2fa5bd8af
commit 6bb98a77a6

View File

@ -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);
}
});