Listen for ServerPostConnectEvent in Velocity context listener (#3133)

This commit is contained in:
Luck 2021-08-14 09:08:14 +01:00
parent b3ebf202fd
commit ee6aa47d99
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -27,7 +27,7 @@ package me.lucko.luckperms.velocity.context;
import com.velocitypowered.api.event.PostOrder;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.player.ServerConnectedEvent;
import com.velocitypowered.api.event.player.ServerPostConnectEvent;
import com.velocitypowered.api.proxy.Player;
import com.velocitypowered.api.proxy.ServerConnection;
import com.velocitypowered.api.proxy.server.RegisteredServer;
@ -71,7 +71,7 @@ public class VelocityPlayerCalculator implements ContextCalculator<Player> {
}
@Subscribe(order = PostOrder.FIRST)
public void onServerConnect(ServerConnectedEvent e) {
public void onServerConnect(ServerPostConnectEvent e) {
this.plugin.getContextManager().signalContextUpdate(e.getPlayer());
}
}