Ignore server owner for role sync
Tim269 opened this issue ยท 0 comments
Hey, thanks for maintaining this plugin. I hope I didn't oversee other issues but every time I join my own server I get this message. However, the role has admin powers and MANAGE_ROLES permissions. I think this is caused by the fact that no one can change something from the discord server owner?
[13:11:58 ERROR]: Could not pass event PlayerJoinEvent to DiscordSRV v1.16.9
github.scarsz.discordsrv.dependencies.jda.core.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MANAGE_ROLES
at github.scarsz.discordsrv.dependencies.jda.core.managers.GuildController.checkPermission(GuildController.java:2247) ~[?:?]
at github.scarsz.discordsrv.dependencies.jda.core.managers.GuildController.modifyMemberRoles(GuildController.java:1473) ~[?:?]
at github.scarsz.discordsrv.util.DiscordUtil.modifyRolesOfMember(DiscordUtil.java:562) ~[?:?]
at github.scarsz.discordsrv.util.GroupSynchronizationUtil.reSyncGroups(GroupSynchronizationUtil.java:103) ~[?:?]
at github.scarsz.discordsrv.util.GroupSynchronizationUtil.reSyncGroups(GroupSynchronizationUtil.java:42) ~[?:?]
at github.scarsz.discordsrv.listeners.PlayerJoinLeaveListener.PlayerJoinEvent(PlayerJoinLeaveListener.java:47) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor584.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.13.2.jar:git-Paper-631]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.13.2.jar:git-Paper-631]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66) ~[patched_1.13.2.jar:git-Paper-631]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:520) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.PlayerList.onPlayerJoin(PlayerList.java:369) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.PlayerList.a(PlayerList.java:180) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.LoginListener.b(LoginListener.java:169) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.LoginListener.tick(LoginListener.java:65) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.NetworkManager.a(NetworkManager.java:271) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.ServerConnection.c(ServerConnection.java:129) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1132) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:940) ~[patched_1.13.2.jar:git-Paper-631]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:837) ~[patched_1.13.2.jar:git-Paper-631]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]