Hotfix for /msg tab completion on Velocity.

This commit is contained in:
Aust1n46 2021-08-29 02:02:21 -04:00
parent 41852f501f
commit c2a6548d7b
2 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mineverse.Aust1n46.chat</groupId>
<artifactId>VentureChat</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>
<scm>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>

View File

@ -8,6 +8,7 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import org.slf4j.Logger;
@ -96,7 +97,12 @@ public class VentureChatVelocity implements VentureChatProxySource {
@Subscribe
public void onPlayerQuit(DisconnectEvent event) {
// Delay sending plugin message to make sure disconnecting player is truly disconnected.
proxyServer.getScheduler().buildTask(this, () -> {
updatePlayerNames();
})
.delay(1, TimeUnit.SECONDS)
.schedule();
}
private void updatePlayerNames() {