Fix Player NPE
This commit is contained in:
parent
d9311addab
commit
c43340ee15
@ -156,7 +156,7 @@ public class SimplyPlugin extends JavaPlugin {
|
|||||||
|
|
||||||
protected void refreshPlayerPermissions(String player) {
|
protected void refreshPlayerPermissions(String player) {
|
||||||
refreshConfig();
|
refreshConfig();
|
||||||
PermissionAttachment attachment = permissions.get(player);
|
PermissionAttachment attachment = permissions.get(getServer().getPlayer(player).getName());
|
||||||
for (String key : attachment.getPermissions().keySet()) {
|
for (String key : attachment.getPermissions().keySet()) {
|
||||||
attachment.unsetPermission(key);
|
attachment.unsetPermission(key);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user