mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 15:47:38 +01:00
Delay the first "please login/register" message on join
This commit is contained in:
parent
95b65ae20a
commit
92287cb5dd
@ -224,8 +224,8 @@ public class AsynchronousJoin implements Process {
|
|||||||
: MessageKey.REGISTER_MESSAGE;
|
: MessageKey.REGISTER_MESSAGE;
|
||||||
}
|
}
|
||||||
if (msgInterval > 0 && LimboCache.getInstance().getLimboPlayer(name) != null) {
|
if (msgInterval > 0 && LimboCache.getInstance().getLimboPlayer(name) != null) {
|
||||||
BukkitTask msgTask = service.runTask(new MessageTask(service.getBukkitService(), plugin.getMessages(),
|
BukkitTask msgTask = service.runTaskLater((Runnable)new MessageTask(service.getBukkitService(), plugin.getMessages(),
|
||||||
name, msg, msgInterval));
|
name, msg, msgInterval), 20L);
|
||||||
LimboPlayer limboPlayer = LimboCache.getInstance().getLimboPlayer(name);
|
LimboPlayer limboPlayer = LimboCache.getInstance().getLimboPlayer(name);
|
||||||
if (limboPlayer != null) {
|
if (limboPlayer != null) {
|
||||||
limboPlayer.setMessageTask(msgTask);
|
limboPlayer.setMessageTask(msgTask);
|
||||||
|
Loading…
Reference in New Issue
Block a user