Fixed edit permissions getting added to the wrong world, resolves #901

This commit is contained in:
Malfrador 2020-10-16 14:38:21 +02:00
parent d56379b523
commit 88597350eb

View File

@ -63,7 +63,7 @@ public class DEditPlayer extends DInstancePlayer implements EditPlayer {
// Permission bridge
if (plugin.getPermissionProvider() != null) {
for (String permission : plugin.getMainConfig().getEditPermissions()) {
plugin.getPermissionProvider().playerAddTransient(world.getName(), player, permission);
plugin.getPermissionProvider().playerAddTransient(getWorld().getName(), player, permission);
}
}
}