NPE when import from PermissionsBukkit (1.7.1)
This commit is contained in:
parent
0ad58581d8
commit
8d49e0ecc0
@ -31,9 +31,11 @@ public class ImportPermBukkit extends SimplyAPI implements ImportManager {
|
|||||||
addPlayerGroup(player, group);
|
addPlayerGroup(player, group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (permBukkit.getConfigurationSection("users/" + player + "/permissions") != null) {
|
||||||
for (Entry<String, Object> perm : permBukkit.getConfigurationSection("users/" + player + "/permissions").getValues(false).entrySet()) {
|
for (Entry<String, Object> perm : permBukkit.getConfigurationSection("users/" + player + "/permissions").getValues(false).entrySet()) {
|
||||||
addPlayerPermission(player, perm.getKey(), (Boolean) perm.getValue());
|
addPlayerPermission(player, perm.getKey(), (Boolean) perm.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (String world : plugin.getKeys(permBukkit, "users/" + player + "/worlds")) {
|
for (String world : plugin.getKeys(permBukkit, "users/" + player + "/worlds")) {
|
||||||
for (Entry<String, Object> worldperm : permBukkit.getConfigurationSection("users/" + player + "/worlds/" + world).getValues(false).entrySet()) {
|
for (Entry<String, Object> worldperm : permBukkit.getConfigurationSection("users/" + player + "/worlds/" + world).getValues(false).entrySet()) {
|
||||||
@ -43,9 +45,11 @@ public class ImportPermBukkit extends SimplyAPI implements ImportManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (String group : plugin.getKeys(permBukkit, "groups")) {
|
for (String group : plugin.getKeys(permBukkit, "groups")) {
|
||||||
|
if (permBukkit.getConfigurationSection("groups/" + group + "/permissions") != null) {
|
||||||
for (Entry<String, Object> perms : permBukkit.getConfigurationSection("groups/" + group + "/permissions").getValues(false).entrySet()) {
|
for (Entry<String, Object> perms : permBukkit.getConfigurationSection("groups/" + group + "/permissions").getValues(false).entrySet()) {
|
||||||
addGroupPermission(group, perms.getKey(), (Boolean) perms.getValue());
|
addGroupPermission(group, perms.getKey(), (Boolean) perms.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (String world : plugin.getKeys(permBukkit, "groups/" + group + "/worlds")) {
|
for (String world : plugin.getKeys(permBukkit, "groups/" + group + "/worlds")) {
|
||||||
for (Entry<String, Object> worldperm : permBukkit.getConfigurationSection("groups/" + group + "/worlds/" + world).getValues(false).entrySet()) {
|
for (Entry<String, Object> worldperm : permBukkit.getConfigurationSection("groups/" + group + "/worlds/" + world).getValues(false).entrySet()) {
|
||||||
|
@ -2,7 +2,7 @@ name: SimplyPerms
|
|||||||
main: net.crystalyx.bukkit.simplyperms.SimplyPlugin
|
main: net.crystalyx.bukkit.simplyperms.SimplyPlugin
|
||||||
author: Xefir Destiny
|
author: Xefir Destiny
|
||||||
website: http://www.crystalyx.net/
|
website: http://www.crystalyx.net/
|
||||||
version: 1.7
|
version: 1.7.1
|
||||||
softdepend: [ PermissionsBukkit ]
|
softdepend: [ PermissionsBukkit ]
|
||||||
commands:
|
commands:
|
||||||
permissions:
|
permissions:
|
||||||
|
Loading…
Reference in New Issue
Block a user