DiscordSRV

DiscordSRV

86.8k Downloads

Group -> Role synchronization

Scarsz opened this issue ยท 7 comments

commented
commented
  • [Thu 12:48:13 ERROR DiscordSRV] Group synchronization failed: Vault classes couldn't be found (did it enable properly?). Vault is required for synchronization to work.
    d

How to solve this?

commented

Install Vault. If you need further help join https://discord.discordsrv.com

Locking, as this ticket is resolved & support is handled through Discord.

commented

How does it currently work? Is there a command/config/etc?

commented

Works good but some things needs to be optimized:

  • Catching exeptions:
    • jda.core.exceptions.PermissionException "The Discord bot's role needs to be on the first/top place in the roles list or at least higher than every player's group"
    • java.lang.IllegalArgumentException "You can't link a Minecraft group with the @everyone role" <-- can be checked at config-reading

The PermissionsEx hook listen for an onCommand event and check the player's group then. Problem is that the group switch is done after this. Possible solution could be decreasing monitoring level for the event but needs testing.

Other permission plugins not tested.

commented

@Androkai need stack traces to fix things