Bukkit.getPluginManager().registerEvents(new Listener() {
@EventHandler
public void onJoin(final PlayerJoinEvent e) {
if (e.getPlayer().hasPermission("skript.admin")) {
new Task(Skript.this, 0) {
@Override
public void run() {
Updater.stateLock.readLock().lock();
try {
final Player p = e.getPlayer();