Package com.bergerkiller.bukkit.tc.controller

Examples of com.bergerkiller.bukkit.tc.controller.MinecartGroup.unload()


    //entities left behind?
    for (World world : WorldUtil.getWorlds()) {
      for (org.bukkit.entity.Entity entity : WorldUtil.getEntities(world)) {
        MinecartGroup group = MinecartGroup.get(entity);
        if (group != null) {
          group.unload();
        }
      }
    }

    save();
View Full Code Here


        if (group.canUnload()) {
          TrainCarts.plugin.log(Level.WARNING, "Train '" + group.getProperties().getTrainName() + "' forcibly unloaded!");
        } else {
          TrainCarts.plugin.log(Level.WARNING, "Train '" + group.getProperties().getTrainName() + "' had to be restored after unexpected unload");
        }
        group.unload();
        // For the next tick: update the storage system to restore trains here and there
        CommonUtil.nextTick(new Runnable() {
          public void run() {
            OfflineGroupManager.refresh();
          }
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.