mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-29 12:37:40 +01:00
Listen for ServerPostConnectEvent in Velocity context listener (#3133)
This commit is contained in:
parent
b3ebf202fd
commit
ee6aa47d99
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user