Fix vanish player update

There's still no message on vanish so it can be figured out from the chat history
This commit is contained in:
Norbi Peti 2020-03-20 01:46:36 +01:00
parent 50cc0c8e61
commit b484fe6f64
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -183,6 +183,7 @@ class MCListener implements Listener {
@EventHandler
public void onVanish(VanishStatusChangeEvent event) {
MCChatUtils.updatePlayerList();
if (event.isCancelled()) return;
Bukkit.getScheduler().runTask(DiscordPlugin.plugin, MCChatUtils::updatePlayerList);
}
}