Package org.bukkit.scheduler

Examples of org.bukkit.scheduler.BukkitRunnable


  private void setupScoreboardObjectives()
  {
    // defer to prevent exception on server start,
    // before any worlds are fully loaded
    new BukkitRunnable()
    {
      @Override
      public void run()
      {
        // setup the objectives for each team
View Full Code Here


      Collections.shuffle(rotation);
    }
    catch (IOException e) { e.printStackTrace(); }

    // defer the task of loading the next map to the first server tick
    new BukkitRunnable() { @Override public void run() { loadNextMap(); } }.runTask(plugin);
  }
View Full Code Here

  @EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
  public void matchComplete(MatchCompleteEvent event)
  {
    if (event.getMatch() == this.currentMatch && AutoRefMatch.COMPLETED_SECONDS >= 15)
      new BukkitRunnable()
      {
        @Override
        public void run()
        {
          currentMatch.broadcast(ChatColor.GREEN + "Coming next: " +
View Full Code Here

TOP

Related Classes of org.bukkit.scheduler.BukkitRunnable

Copyright © 2018 www.massapicom. 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.