String msg = authAvail ? m._("login_msg") : m._("reg_msg");
int time = settings.getRegistrationTimeout() * 20;
int msgInterval = settings.getWarnMessageInterval();
BukkitScheduler sched = this.getServer().getScheduler();
if (time != 0) {
int id = sched.scheduleSyncDelayedTask(this, new TimeoutTask(this, name), time);
LimboCache.getInstance().getLimboPlayer(name).setTimeoutTaskId(id);
}
sched.scheduleSyncDelayedTask(this, new MessageTask(this, name, msg, msgInterval));
}
}