Uplift to Velocity 3.0.0

This commit is contained in:
Aust1n46 2021-08-26 23:29:25 -04:00
parent 3858519f8f
commit 808876f2f8
2 changed files with 4 additions and 7 deletions

View File

@ -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>

View File

@ -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