Git Product home page Git Product logo

Comments (8)

sgtcaze avatar sgtcaze commented on August 16, 2024

Oh I think I may have forgotten to put a a 16 character tag limit in the API. I'll have a commit out soon. Thanks!

from nametagedit.

VanadeysHaven avatar VanadeysHaven commented on August 16, 2024

Well the thing is, the names above our heads appear to be fine. please note it doesn't apply to all players, and the weirdest thing is, it doesn't crash on my name, but others (that have a shorter tag + name) it does. And when i disable Citizens 2 it seems to be fine. So it's about the NPC's.

This is my ranks enum class, as you can see (the last argument is my nametag) they don't exceed the limit at all.

from nametagedit.

sgtcaze avatar sgtcaze commented on August 16, 2024

So you have an NPC of a player that is potentially already online? My thinking is that the NPC might already have a prefix/suffix, and we're trying to add even more to it. Interesting though, haven't seen this issue before.

We use Citizens2 on this server I work for, and use NametagEdit. Haven't encountered this issue before. I'll check it out soon.

from nametagedit.

VanadeysHaven avatar VanadeysHaven commented on August 16, 2024

The NPC's are like a staff stand, so NPC's there have the exact name and skin of a player, when that player joins it changes the prefix on both the NPC and the actual player. But when the player leaves, the prefix of the NPC changes back to normal. But it only seems to work when the name is EXACTLY equal to that of the player. So just a white (no colorcodes) name with the right capitals.

You can recreate it with the following steps:

  1. Spawn a NPC of your player.
  2. Give yourself a prefix, and it should change on the NPC aswell.

And the NametagEdit.getApi().setPefix(...) only gets called when a player joins and when their rank changes.

from nametagedit.

sgtcaze avatar sgtcaze commented on August 16, 2024

You are calling this api method in the PlayerJoinEvent?

from nametagedit.

VanadeysHaven avatar VanadeysHaven commented on August 16, 2024

Yeah, but for now as a temp solution I have changed the prefixes to just be a color, and now it seems to work fine. But I really want the rank also be above the players head. (On the player itself not the NPC)

from nametagedit.

JustOneMoreBlock avatar JustOneMoreBlock commented on August 16, 2024

Are you still have any issues?

from nametagedit.

Max604 avatar Max604 commented on August 16, 2024

Sorry to reopen this but I still get this periodically which to fix it I have to restart nametagedit with plugman. I usually get string lengths around ~40. E.g. 40 > 16

from nametagedit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.