Fix Player NPE

This commit is contained in:
Michel Roux 2012-05-18 18:26:56 +02:00
parent d9311addab
commit c43340ee15

View File

@ -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);
} }