Examples of despawn()


Examples of l2p.gameserver.model.entity.vehicle.L2Vehicle.despawn()

            }
          }
        }
        if(boat != null)
        {
          boat.despawn();
          boat.spawn();
        }
        break;
      case admin_boat_reload:
        for(L2Vehicle b : L2VehicleManager.getInstance().getBoats().values())
View Full Code Here

Examples of net.citizensnpcs.api.npc.NPC.despawn()

        dB.report(scriptEntry, getName(), name.debug());

        NPC npc = ((BukkitScriptEntryData)scriptEntry.entryData).getNPC().getCitizen();

        Location prev = npc.isSpawned() ? npc.getEntity().getLocation() : null;
        npc.despawn(DespawnReason.PENDING_RESPAWN);
        npc.setName(name.asString().length() > 100 ? name.asString().substring(0, 100): name.asString());
        if (prev != null)
            npc.spawn(prev);

    }
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.