Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Nametag not hidden in EssentialsPE

Comments in 'Plugin Development' started by Blabla, Oct 30, 2016.

  1. Blabla
    Offline

    Blabla Active Member

    Joined:
    Sep 19, 2015
    Posts:
    82
    Minecraft User:
    The_Beast_Inside
    Hey guys, (no, this is not the issue tracker for EssentialsPE, I know.)
    So @dktapps has been updating PM, and I tried to update EssentialsPE and make it properly working (it doesn't crash anymore, thats a good thing) but I have a problem. I watched the commits and if I'm right DATA_SHOW_NAMETAG has to be changed to DATA_FLAG_CAN_SHOW_NAMETAG. After doing this the stuff kind of started working again, but instead of hiding the nametag as it's supposed to when using the /vanish command, it just leaves the nametag visible.
    Did I do something wrong? Or is it just a bug in PM which is left to be fixed? Any help would be very much appreciated! :)
    Code:
    https://github.com/Sandertv/EssentialsPE/blob/patch-1/src/EssentialsPE/BaseFiles/BaseAPI.php#L2154
  2. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    Last edited: Oct 30, 2016
    Blabla likes this.
  3. Blabla
    Offline

    Blabla Active Member

    Joined:
    Sep 19, 2015
    Posts:
    82
    Minecraft User:
    The_Beast_Inside
    Problem is... It used to be DATA_SHOW_NAMETAG, which seems to be removed now. Do I use DATA_NAMETAG for that now?

    Nevermind, thanks for pointing at that line!
  4. Blabla
    Offline

    Blabla Active Member

    Joined:
    Sep 19, 2015
    Posts:
    82
    Minecraft User:
    The_Beast_Inside
    I get it, thanks!
    HimbeersaftLP likes this.
  5. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Guys, I know constants are exciting but you don't have to shout them all the time.
  6. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    I hope that was a joke...
    Blabla likes this.
  7. dktapps
    Offline

    dktapps Active Member

    Joined:
    Jul 25, 2016
    Posts:
    101
    Most metadata properties that were just true/false became flags in this update. New API methods setNameTagVisible() and setNameTagAlwaysVisible() have been added for your convenience.

    NOTE: Playing with entity metadata directly is DEPRECATED, please use the provided API methods where possible. Entity metadata implementation will be rewritten in the future.
  8. Blabla
    Offline

    Blabla Active Member

    Joined:
    Sep 19, 2015
    Posts:
    82
    Minecraft User:
    The_Beast_Inside
    Okay! I'll keep this in mind for future updating! :)
    HimbeersaftLP likes this.

Share This Page

Advertisement