forked from Upstream/Velocitab
Added a delay on join
This commit is contained in:
parent
e17d36deb5
commit
d47ee75d5b
@ -146,15 +146,12 @@ public class TabListListener {
|
|||||||
|
|
||||||
final Group group = groupOptional.get();
|
final Group group = groupOptional.get();
|
||||||
plugin.getScoreboardManager().resetCache(joined, group);
|
plugin.getScoreboardManager().resetCache(joined, group);
|
||||||
if (justQuit.contains(joined.getUniqueId())) {
|
|
||||||
plugin.getServer().getScheduler().buildTask(plugin,
|
|
||||||
() -> tabList.joinPlayer(joined, group))
|
|
||||||
.delay(250, TimeUnit.MILLISECONDS)
|
|
||||||
.schedule();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
tabList.joinPlayer(joined, group);
|
final int delay = justQuit.contains(joined.getUniqueId()) ? 100 : 250;
|
||||||
|
plugin.getServer().getScheduler().buildTask(plugin,
|
||||||
|
() -> tabList.joinPlayer(joined, group))
|
||||||
|
.delay(delay, TimeUnit.MILLISECONDS)
|
||||||
|
.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
|
Loading…
Reference in New Issue
Block a user