mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-24 11:15:19 +01:00
Ok, go away stupid checks!
This commit is contained in:
parent
f80017de67
commit
c4f516582c
@ -37,13 +37,9 @@ public class ProcessSyncronousEmailRegister implements Runnable {
|
||||
|
||||
BukkitScheduler sched = plugin.getServer().getScheduler();
|
||||
if (time != 0) {
|
||||
if (LimboCache.getInstance().getLimboPlayer(name).getTimeoutTaskId() != null)
|
||||
LimboCache.getInstance().getLimboPlayer(name).getTimeoutTaskId().cancel();
|
||||
BukkitTask id = sched.runTaskLaterAsynchronously(plugin, new TimeoutTask(plugin, name, player), time);
|
||||
LimboCache.getInstance().getLimboPlayer(name).setTimeoutTaskId(id);
|
||||
}
|
||||
if (LimboCache.getInstance().getLimboPlayer(name).getMessageTaskId() != null)
|
||||
LimboCache.getInstance().getLimboPlayer(name).getMessageTaskId().cancel();
|
||||
BukkitTask nwMsg = sched.runTaskAsynchronously(plugin, new MessageTask(plugin, name, m.send("login_msg"), msgInterval));
|
||||
LimboCache.getInstance().getLimboPlayer(name).setMessageTaskId(nwMsg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user