megtobb fix
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user