Ejemplo n.º 1
0
 public BearTrap(ObjectID id) {
   super(id);
   if (isFinish()) {
     for (fArmorStand stand : getfAsList()) {
       if (stand.getName().equalsIgnoreCase("#IRON1#")) {
         stand1 = stand;
       } else if (stand.getName().equalsIgnoreCase("#IRON2#")) {
         stand2 = stand;
       }
     }
     setStatus(false);
     Bukkit.getPluginManager().registerEvents(this, main.getInstance());
     return;
   }
   spawn(id.getStartLocation());
 }