megtobb fix

This commit is contained in:
2025-02-16 21:24:52 +01:00
parent 6242a31db4
commit 3a9d5ad9b3

View File

@@ -41,14 +41,11 @@ public class WolfFfaCommand implements CommandExecutor, TabCompleter {
} }
private boolean checkItem(String key, String kittype, Player player) { private boolean checkItem(String key, String kittype, Player player) {
String path = "kits." + kittype + "." + player.getUniqueId(); String path = "kits." + kittype + "." + player.getUniqueId() + "." + key;
if (plugin.getConfig().contains(path)) { return plugin.getConfig().getBoolean(path, false);
return (boolean) plugin.getConfig().get(path + "." + key);
} }
return false;
}