megtobb fix

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

View File

@@ -41,17 +41,14 @@ public class WolfFfaCommand implements CommandExecutor, TabCompleter {
}
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 (boolean) plugin.getConfig().get(path + "." + key);
}
return false;
return plugin.getConfig().getBoolean(path, false);
}
@Override
public boolean onCommand(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
if (cmds.hasPermission("wolfffa.admin.tptoffa")) {