Examples of scheduleSyncRepeatingTask()


Examples of org.bukkit.scheduler.BukkitScheduler.scheduleSyncRepeatingTask()

        }
        ConfigFile config = ConfigManager.getConfigFile();
        if (!config.getBoolean(ConfPaths.DATA_CONSISTENCYCHECKS_CHECK, true)) return;
        // Schedule task in seconds.
        final long delay = 20L * config.getInt(ConfPaths.DATA_CONSISTENCYCHECKS_INTERVAL, 1, 3600, 10);
        consistencyCheckerTaskId = sched.scheduleSyncRepeatingTask(this, new Runnable() {
            @Override
            public void run() {
                runConsistencyChecks();
            }
        }, delay, delay );
View Full Code Here

Examples of org.bukkit.scheduler.BukkitScheduler.scheduleSyncRepeatingTask()

    // Launch the BEAST !
    getServer().getPluginManager().registerEvents(this, this);

    // List updater.
    scheduler.scheduleSyncRepeatingTask(this, new Runnable() {
      @Override
      public void run() {
        checkEntities();
      }
    }, 10, listUpdatePeriod);
View Full Code Here

Examples of org.bukkit.scheduler.BukkitScheduler.scheduleSyncRepeatingTask()

        checkEntities();
      }
    }, 10, listUpdatePeriod);

    // Entity updater.
    scheduler.scheduleSyncRepeatingTask(this, new Runnable() {
      @Override
      public void run() {
        updateEntities();
      }
    }, 15, entityUpdatePeriod);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.