mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Fixed edit permissions getting added to the wrong world, resolves #901
This commit is contained in:
parent
d56379b523
commit
88597350eb
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user