Package org.bukkit.scheduler

Examples of org.bukkit.scheduler.BukkitTask.cancel()


    final BukkitTask task = scheduler.runTaskTimerAsynchronously(plugin, runnable, firstDelay, repeatDelay);
   
    return new TaskWrapper() {
      @Override
      public void cancel() {
        task.cancel();
      }
    };
  }
}
View Full Code Here


      return;
    }
   
    if(playerremoval.containsKey(event.getPlayer().getName())) {
      BukkitTask task = playerremoval.get(player.getName());
      task.cancel();
    }
    players.put(player.getName(), new MIPlayer(player, plugin));
    if(!player.hasPermission("multiinv.exempt") || !player.hasPermission("multiinv.enderchestexempt")) {
      // Let's set a task to run once they get switched to the proper world by bukkit.
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new DeferredWorldCheck(player, this), 1);
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.