mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-04-19 09:07:06 +00:00
fix players count as online if login event is canceled firstly by another plugin
This commit is contained in:
parent
1eba10b8d6
commit
185f62c284
@ -44,6 +44,9 @@ public class RedisBungeeListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onLogin(final LoginEvent event) {
|
||||
if (event.isCancelled()){
|
||||
return;
|
||||
}
|
||||
event.registerIntent(plugin);
|
||||
plugin.getProxy().getScheduler().runAsync(plugin, new RedisCallable<Void>(plugin) {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user