com.github.MilkBowl
diff --git a/src/main/java/su/nightexpress/nightcore/menu/impl/ConfigMenu.java b/src/main/java/su/nightexpress/nightcore/menu/impl/ConfigMenu.java
index c9fd1ce..9ed9d58 100644
--- a/src/main/java/su/nightexpress/nightcore/menu/impl/ConfigMenu.java
+++ b/src/main/java/su/nightexpress/nightcore/menu/impl/ConfigMenu.java
@@ -105,7 +105,7 @@ public abstract class ConfigMenu extends AbstractMenu
comments.add("=".repeat(20) + " ITEM OPTIONS " + "=".repeat(20));
comments.add("> Item: Item to display. Please check: " + Placeholders.WIKI_ITEMS_URL);
comments.add("> Priority: Button priority. Better values will override other item(s) in the same slot(s).");
- comments.add("> Slots: Button slots. From [0] to [Size - 1]. Split them with a comma.");
+ comments.add("> Slots: Button slots. From [0] to [Size - 1]. Split with commas.");
comments.add("> Click_Commands: Execute custom commands on click. " + Plugins.PLACEHOLDER_API + " available here.");
comments.add(" Available click types: " + String.join(", ", Lists.getEnums(ClickType.class)));
comments.add(" Click_Commands:");
@@ -154,13 +154,13 @@ public abstract class ConfigMenu
extends AbstractMenu
menuItem.setHandler(handler);
}
- if (cfg.contains(path + ".Click_Actions")) {
+ if (cfg.contains(path + ".Click_Commands")) {
Map> commandMap = new HashMap<>();
- for (String sType : cfg.getSection(path + ".Click_Actions")) {
+ for (String sType : cfg.getSection(path + ".Click_Commands")) {
ClickType clickType = StringUtil.getEnum(sType, ClickType.class).orElse(null);
if (clickType == null) continue;
- List commands = cfg.getStringList(path + ".Click_Actions." + sType);
+ List commands = cfg.getStringList(path + ".Click_Commands." + sType);
commandMap.put(clickType, commands);
}
commandMap.values().removeIf(List::isEmpty);
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 2854e12..d1604cf 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -8,4 +8,4 @@ api-version: 1.18
load: STARTUP
libraries:
- com.zaxxer:HikariCP:5.0.1
- - it.unimi.dsi:fastutil:8.5.11
\ No newline at end of file
+ - it.unimi.dsi:fastutil-core:8.5.13
\ No newline at end of file