Use null instead of empty task
This commit is contained in:
parent
37fb319bd7
commit
f8d6669c5f
@ -25,7 +25,7 @@ public final class ProxyListener {
|
||||
@Subscribe
|
||||
public EventTask onDisconnect(final DisconnectEvent event) {
|
||||
if (event.getLoginStatus() == DisconnectEvent.LoginStatus.CONFLICTING_LOGIN) {
|
||||
return EventTask.async(() -> {});
|
||||
return null;
|
||||
}
|
||||
|
||||
return EventTask.async(() -> plugin.removePlayer(event.getPlayer()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user