mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Wait 20 ticks before removing player from the tablist
This commit is contained in:
parent
6764d040c3
commit
c105fcc339
@ -151,7 +151,7 @@ public class FakePlayer extends Player implements NavigableEntity {
|
|||||||
private void handleTabList(PlayerConnection connection) {
|
private void handleTabList(PlayerConnection connection) {
|
||||||
if (!option.isInTabList()) {
|
if (!option.isInTabList()) {
|
||||||
// Remove from tab-list
|
// Remove from tab-list
|
||||||
MinecraftServer.getSchedulerManager().buildTask(() -> connection.sendPacket(getRemovePlayerToList())).delay(2, TimeUnit.TICK).schedule();
|
MinecraftServer.getSchedulerManager().buildTask(() -> connection.sendPacket(getRemovePlayerToList())).delay(20, TimeUnit.TICK).schedule();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user