UnsupportedOperationException spam when group sync is attempted with vault but without a permission plugin
Dinty1 opened this issue · 0 comments
Expected behavior
Ideally this should display a more compact error explaining that a permission plugin is required
Actual behavior
Prints a rather cryptic error with stack trace which isn’t ideal and is kind of spammy:
02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] Could not get player's groups. Caused by a error in Vault or it's permissions provider: SuperPerms
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] java.lang.UnsupportedOperationException: SuperPerms no group permissions.
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at Vault.jar//net.milkbowl.vault.permission.plugins.Permission_SuperPerms.getPlayerGroups(Permission_SuperPerms.java:91)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at Vault.jar//net.milkbowl.vault.permission.Permission.getPlayerGroups(Permission.java:637)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at DiscordSRV-Build-1.28.0.jar//github.scarsz.discordsrv.objects.managers.GroupSynchronizationManager.resync(GroupSynchronizationManager.java:243)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at DiscordSRV-Build-1.28.0.jar//github.scarsz.discordsrv.listeners.PlayerJoinLeaveListener.lambda$onPlayerJoin$0(PlayerJoinLeaveListener.java:58)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[02:31:59] [Craft Scheduler Thread - 3 - DiscordSRV/ERROR]: [DiscordSRV] at java.base/java.lang.Thread.run(Thread.java:1583)
Steps to reproduce
- set up group sync
- Install vault (but not any permission plugin)
- /discord resync
Server software and version
/
Checks
- I am not using an outdated version of DiscordSRV.
- I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.
Ticket number or message link to where you asked in DiscordSRV's Discord server about this
I asked myself that’s probably good enough 🤔
Anything else
No response