megtobb fix
This commit is contained in:
@@ -41,17 +41,14 @@ 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
|
public boolean onCommand(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
|
||||||
if (cmds.hasPermission("wolfffa.admin.tptoffa")) {
|
if (cmds.hasPermission("wolfffa.admin.tptoffa")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user