mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Uplift to Velocity 3.0.0
This commit is contained in:
parent
3858519f8f
commit
808876f2f8
2
pom.xml
2
pom.xml
@ -177,7 +177,7 @@
|
||||
<dependency>
|
||||
<groupId>com.velocitypowered</groupId>
|
||||
<artifactId>velocity-api</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>3.0.0-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -15,6 +15,7 @@ import com.velocitypowered.api.event.connection.DisconnectEvent;
|
||||
import com.velocitypowered.api.event.connection.PluginMessageEvent;
|
||||
import com.velocitypowered.api.event.connection.PluginMessageEvent.ForwardResult;
|
||||
import com.velocitypowered.api.event.player.ServerConnectedEvent;
|
||||
import com.velocitypowered.api.event.player.ServerPostConnectEvent;
|
||||
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
|
||||
import com.velocitypowered.api.plugin.Plugin;
|
||||
import com.velocitypowered.api.proxy.Player;
|
||||
@ -41,12 +42,8 @@ public class VentureChatVelocity implements VentureChatProxySource {
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onPlayerJoin(ServerConnectedEvent event) {
|
||||
proxyServer.getScheduler().buildTask(this, () -> {
|
||||
public void onPlayerJoin(ServerPostConnectEvent event) {
|
||||
updatePlayerNames();
|
||||
})
|
||||
.delay(500, TimeUnit.MILLISECONDS)
|
||||
.schedule();
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
|
Loading…
x
Reference in New Issue
Block a user