mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 11:37:05 +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
|
// Permission bridge
|
||||||
if (plugin.getPermissionProvider() != null) {
|
if (plugin.getPermissionProvider() != null) {
|
||||||
for (String permission : plugin.getMainConfig().getEditPermissions()) {
|
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