Comments (8)
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.
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.
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.
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:
- Spawn a NPC of your player.
- 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.
You are calling this api method in the PlayerJoinEvent?
from nametagedit.
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.
Are you still have any issues?
from nametagedit.
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)
- Folder
- Tab problem HOT 1
- THE TABLIST IS BUGGED
- chat formatting suggestion
- Using an ItemsAdder icon in NametagEdit prefixes causes server errors.
- Feature Request and Plug-in Support
- Players being kicked
- Plugin no working in Minecraft 1.20.2 HOT 12
- Add option to group in API
- I have a problem with hex colors! HOT 1
- NametagEdit.getApi() always return null HOT 3
- plugin error while loading HOT 4
- Folia support
- LuckPerms Support on 1.20.2 HOT 1
- Players
- NametagEdit incompatible with future versionf of Paper
- Service Unavailable - https://ci.nametagedit.com/plugin/repository/everything/ HOT 2
- Player tag styles are inconsistent
- The client crashes on versions 1.8 - 1.12.2 after setting the prefix via the command /nte player nik prefix &c&l HOT 4
- username in tab editing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nametagedit.