[Lib] NametagSpawner (Spawn Nametags without Mobs)

Discussion in 'Resources' started by DevRosemberg, Feb 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    DevRosemberg

    Ultimate_n00b Seriously, now Minecade is claiming right over this? There are now 4 networks that use them... I though mine was gona be original.
     
  2. Offline

    filoghost

    The idea is of Asdjke...he originally made it for the Overcast Network
     
  3. Offline

    DevRosemberg

    filoghost *Refers to start of first post*
     
  4. Offline

    Ultimate_n00b

  5. Offline

    hawkfalcon

    You have just as much claim to this as anybody else.
     
    DSH105 likes this.
  6. Offline

    Georgeto

    1. Add following method to NameTagSpawner
    Code:java
    1. public void despawn(Player player) {
    2. int packetAmount = (int) Math.ceil((nameTagCount * 2) / 127f);
    3. int index = 0;
    4. int endEntity = startEntityId + nameTagCount * 2;
    5. for (int p = 0; p < packetAmount; p++) {
    6. WrapperPlayServerEntityDestroy destroy = new WrapperPlayServerEntityDestroy();
    7. LinkedList<Integer> entities = new LinkedList<Integer>();
    8. for (int i = startEntityId + index; i < endEntity; i++) {
    9. entities.add(i);
    10. index++;
    11. if(index % 127 == 0)
    12. break;
    13. }
    14. destroy.setEntities(entities);
    15. destroy.sendPacket(player);
    16. }
    17. }

    2. Add following method to NameTagMessage
    Code:java
    1. public void despawn(Player player) {
    2. spawner.despawn(player);
    3. }

    3. Call msg.despawn() and the message will disappear.
     
    mrCookieSlime likes this.
  7. Offline

    mrCookieSlime

  8. Offline

    Goblom

    JackBaggins I wouldnt use my plugin right now, it works well, but has horrible performance issues with some people. I suggest Holographic displays by filoghost or HoloAPI by DSH105 & CaptainBern
     
    CaptainBern and DSH105 like this.
  9. Offline

    DSH105

    * And CaptainBern ;3
     
    CaptainBern likes this.
Thread Status:
Not open for further replies.

Share This Page