Fixed ASync Inventory Open.

This commit is contained in:
Brianna 2019-04-24 15:11:42 -04:00
parent 189d951dba
commit b61f0d4232
2 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,8 @@ public class AbstractChatConfirm implements Listener {
handler.onChat(chatConfirmEvent);
if (onClose != null) {
onClose.onClose();
Bukkit.getScheduler().scheduleSyncDelayedTask(UltimateModeration.getInstance(), () ->
onClose.onClose(), 0L);
}
HandlerList.unregisterAll(listener);
}

View File

@ -82,7 +82,9 @@ public class SettingsManager implements Listener {
config.set(value, event.getMessage());
}
this.finishEditing(player);
Bukkit.getScheduler().scheduleSyncDelayedTask(UltimateModeration.getInstance(), () ->
this.finishEditing(player), 0L);
event.setCancelled(true);
}