Misc Changes

This commit is contained in:
Driftay 2019-11-16 04:25:34 -05:00
parent f8e22896d5
commit 9349a914ce
2 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,6 @@ public class CmdLock extends FCommand {
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");
this.requirements = new CommandRequirements.Builder(Permission.LOCK) this.requirements = new CommandRequirements.Builder(Permission.LOCK)
.playerOnly()
.build(); .build();
} }

View File

@ -37,6 +37,7 @@ public class PermissableRelationFrame {
GUIItems.add(new GuiItem(dumby, e -> e.setCancelled(true))); GUIItems.add(new GuiItem(dumby, e -> e.setCancelled(true)));
ConfigurationSection sec = FactionsPlugin.getInstance().getConfig().getConfigurationSection("fperm-gui.relation"); ConfigurationSection sec = FactionsPlugin.getInstance().getConfig().getConfigurationSection("fperm-gui.relation");
for (String key : sec.getConfigurationSection("slots").getKeys(false)) { for (String key : sec.getConfigurationSection("slots").getKeys(false)) {
if (key == null || sec.getInt("slots." + key) < 0) continue;
GUIItems.set(sec.getInt("slots." + key), new GuiItem(buildAsset("fperm-gui.relation.materials." + key, key), e -> { GUIItems.set(sec.getInt("slots." + key), new GuiItem(buildAsset("fperm-gui.relation.materials." + key, key), e -> {
e.setCancelled(true); e.setCancelled(true);
// Closing and opening resets the cursor. // Closing and opening resets the cursor.