Perform uninject tasks synchronously on Bukkit player quit (#2080)

This commit is contained in:
Luck 2020-03-24 09:43:32 +00:00
parent 779bbb9f88
commit 3a7fadb843
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -227,7 +227,7 @@ public class BukkitConnectionListener extends AbstractConnectionListener impleme
// perform unhooking from bukkit objects 1 tick later. // perform unhooking from bukkit objects 1 tick later.
// this allows plugins listening after us on MONITOR to still have intact permissions data // this allows plugins listening after us on MONITOR to still have intact permissions data
this.plugin.getBootstrap().getServer().getScheduler().runTaskLaterAsynchronously(this.plugin.getBootstrap(), () -> { this.plugin.getBootstrap().getServer().getScheduler().runTaskLater(this.plugin.getBootstrap(), () -> {
// Remove the custom permissible // Remove the custom permissible
try { try {
PermissibleInjector.uninject(player, true); PermissibleInjector.uninject(player, true);