Merge pull request #902 from Malfrador/master

Fixed edit permissions getting added to the wrong world
This commit is contained in:
Daniel Saukel 2020-10-16 15:52:07 +02:00 committed by GitHub
commit bcd7f4478f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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