fix use and see perm

This commit is contained in:
JaTiTV 2022-04-19 09:40:15 +02:00
parent 7993dca126
commit 3bd0662273

View File

@ -62,9 +62,9 @@ public class Obj_Select {
String permUse = yamlConfiguration_gui.getString("Slots." + key + ".Permission.Use"); String permUse = yamlConfiguration_gui.getString("Slots." + key + ".Permission.Use");
Slot slot = new Slot(slotNumber, enable, function, permRequired, Slot slot = new Slot(slotNumber, enable, function, permRequired,
Objects.requireNonNull(permSee).replace("[function]", guiFileName).replace("[slot]", String.valueOf(slotNumber)) Objects.requireNonNull(permSee).replace("[function]", guiFileName).replace("[slot]", String.valueOf(slotNumber + 1))
.replace("[slotname]", key.toLowerCase()), .replace("[slotname]", key.toLowerCase()),
Objects.requireNonNull(permUse).replace("[function]", guiFileName).replace("[slot]", String.valueOf(slotNumber)) Objects.requireNonNull(permUse).replace("[function]", guiFileName).replace("[slot]", String.valueOf(slotNumber + 1))
.replace("[slotname]", key.toLowerCase())); .replace("[slotname]", key.toLowerCase()));
slots.add(slot); slots.add(slot);
} }