-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use LuckPerms track events to synchronise to permission changes.
In essence, ModMode now waits for LuckPerms to tell it that the player's permissions have fully changed before performing any steps that depend on those new permissions. Notification messages announcing the new ModMode state are sent to the staff member last, after all other actions (including permission changes) have been performed. So client mods that perform actions in response to those messages will trigger once the player has completely transitioned to the new state. The transition into ModMode comprises three steps: 1. Actions appropriate for the player's permissions prior to changing state and actions that are not affected by permissions are performed first. 2. Asynchronous promotion or demotion of the player along a track to enter or leave ModMode. Completion of this permission processing eventually triggers an asynchronous event that is used to schedule a synchronous task to perform the next step. 3. Actions that depend on the player's permissions to be in their final (promoted or demoted state).
- Loading branch information
Showing
4 changed files
with
230 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.