Beispiel #1
0
 public void run() {
   int id = ((StorageMinecart) inventory.getHolder()).getEntityId();
   try {
     UpdaterContentFactory.createRoutingTableExchange(
         inventory, region, level, player, isfullreset, isnew);
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   if (!ByteCartUpdaterMoveListener.isExist()) {
     Listener updatermove = new ByteCartUpdaterMoveListener();
     ByteCart.myPlugin
         .getServer()
         .getPluginManager()
         .registerEvents(updatermove, ByteCart.myPlugin);
     ByteCartUpdaterMoveListener.setExist(true);
   }
   ByteCartUpdaterMoveListener.addUpdater(id);
   LogUtil.sendError(player, ByteCart.myPlugin.getConfig().getString("Info.SetUpdater"));
 }