Some spambot protection? Nasty stuff.

This commit is contained in:
Adam committed 2012-04-23 20:33:18 -04:00
1 parent 285cf3f977
commit 08139b001e
3 files changed
+55 -1

No files matched your search

@@ -0,0 +1,35 @@
package net.h31ix.anticheat.manage;
import net.h31ix.anticheat.Anticheat;
import org.bukkit.entity.Player;
public class LoginManager {
Anticheat plugin;
boolean join;
public LoginManager(Anticheat plugin)
{
this.plugin = plugin;
}
public boolean log()
{
if(join == true)
{
return false;
}
else
{
join = true;
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable()
{
@Override
public void run()
{
join = false;
}
}, 5L);
return true;
}
}
}