Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

[Solved] Tab list compatibility fixes do not fully work. [Distance based bug]

Open Matmorcat opened this issue 12 years ago • 22 comments

So, I have been having a problem with the latest Citizens 2 dev build. This build claims to provide tab list compatability, though it doesn't hide 100% of the NPCs. 2 NPCs always refuse to be hidden.

What happens:

  1. We have a large area with all the staff listed and shown as statues at /warp staff
  2. When someone goes to /warp staff, all the staff names flash on the TAB list breifly.
  3. After a moment, most of the names disappear (leaving 2 NPC names still on TAB), and your name is gone (probably replaced by one of the NPCs' names).
  4. If you teleport away from the area, the names are still displayed in TAB, though if you relog, the TAB list will become accurate upon logging in, if the chunks where the NPCs exist are not loaded.
  5. Else, if you log out and log back in while the chunks are loaded at the NPCs, then they fake names in TAB remain and your name is still hidden.

Tested on both 1.8 (vanilla client) and 1.7.9 client with only Optifine. Spigot 1.7.10 + 1.8 Protocol Hack (Spigot Update - 20140909a) Citizens2 #1172 (also tested the build patch that someone posted earlier on github; same result). Java 1.7

Example <- The players "Holyapple1984" and "B1adeX" are not online and are NPCs in an area at /warp staff along with many other NPCs.

It is always Holyapple1984 and B1adeX, when teleporting there that remain on the list.

Matmorcat avatar Sep 23 '14 04:09 Matmorcat

EDIT: I realized that the reason they were showing on TAB was because they were a distance away from the player when they enter the area. If you teleport/relog too far away from an NPC, they get stuck on the tab list for you, regardless of relogging.

They also disappear from TAB when you get close enough. This is a strange distance based bug. I hope you can fix it.

Matmorcat avatar Sep 23 '14 05:09 Matmorcat

EDIT 2: When you're near an NPC with the same name as someone online, they are hidden from the TAB list.

Matmorcat avatar Sep 23 '14 22:09 Matmorcat

This is as a result of #59

Matmorcat avatar Sep 25 '14 16:09 Matmorcat

I can confirm this is a bug in 1.8 Spigot. It's happening on my server occasionally.

mcmonkey4eva avatar Oct 04 '14 01:10 mcmonkey4eva

Might be fixed now?

fullwall avatar Oct 07 '14 17:10 fullwall

This is still not fixed with using build 1178 and even the newest patched spigot 20141001a.

dpodp avatar Oct 10 '14 14:10 dpodp

Using Latest Citizens build artifact #1178. Human NPC's from my server spawn world are appearing in the tablist server-wide and my name disappears from the tablist. Any other suggestions to fix? Using Spigot1656.jar THANKS!

tjbruce17594 avatar Oct 30 '14 23:10 tjbruce17594

screen shot 2014-11-08 at 9 15 21 pm Thought it was fixed in #1180 but NPC's name still appear. My username has come back though. Please fix if you can! thanks

tjbruce17594 avatar Nov 08 '14 10:11 tjbruce17594

Same here. Using Build #1180 and NPCs of players who are already online show up in the TAB list as well as the player.

SequaciousGAMES avatar Nov 13 '14 22:11 SequaciousGAMES

Can you try the latest build?

fullwall avatar Nov 17 '14 02:11 fullwall

It appears 100% clean for me.

mcmonkey4eva avatar Nov 17 '14 02:11 mcmonkey4eva

Build #1183 fixes this for me

SequaciousGAMES avatar Nov 17 '14 06:11 SequaciousGAMES

Hi! Thanks for all your support, but the Human NPC's still appear in the TABlist. For some reason, this on occurs with the NPC's in the spawn world. Is there something i'm doing wrong? Here is a copy of my config. do i need to delete it for the new updates to take affect. Thanks for all your support.

Please look above for an example of what happens.

http://pastebin.com/0bnu7pW4

Thank You!

tjbruce17594 avatar Nov 17 '14 07:11 tjbruce17594

Could you provide a startup log too, so we can look for any inconsistencies?

Also a screenshot of your tablist as it is now?

mcmonkey4eva avatar Nov 17 '14 07:11 mcmonkey4eva

Ok, will post tomorrow. Thanks for your help! :D

tjbruce17594 avatar Nov 17 '14 10:11 tjbruce17594

Hi, here is my console log. Referring to Citizens only.

[06:30:35 INFO]: [Citizens] Loading Citizens v2.0.13-SNAPSHOT (build 1183) [06:31:14 INFO]: [Citizens] Enabling Citizens v2.0.13-SNAPSHOT (build 1183) [06:31:14 ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes [06:31:22 INFO]: [CommandNPC] Enabling CommandNPC v1.7 [06:31:22 INFO]: Injecting command info into Citizens. [06:31:23 INFO]: [cncp] Registered hook(NCPHook might get added later): Citizens2(default) / 2.2 [06:31:25 INFO]: [NoCheatPlus] Added hook: Citizens2(cncp) [2.0]. [06:31:29 INFO]: [Citizens] Loaded 116 NPCs.

[06:34:33 INFO]: This server is running CraftBukkit version git-Spigot-1.7.9-R0.2-208-ge0f2e95 (MC: 1.7.10) (Implementing API version 1.7.10-R0.1-SNAPSHOT) [06:34:42 INFO]: Citizens version 2.0.13-SNAPSHOT (build 1183) [06:34:42 INFO]: Website: http://www.citizensnpcs.co [06:34:42 INFO]: Authors: aPunch and fullwall

And here is a screenshot of the tablist currently. Appears on 1.7 and 1.8 clients. (only in the spawn world) screen shot 2014-11-18 at 6 36 19 am

Heads Up, This problem started only when I upgraded from Bukkit to Spigot.

If you need additional information, please let me know. Thanks for your ongoing support! Citizens2 is the best statue plugin out there. Thank you for maintaining it.

tjbruce17594 avatar Nov 17 '14 19:11 tjbruce17594

Haha, using Citizens only for statues is like using WorldEdit for digging blocks, but to each their own.

That is really strange, the latest fix seems really solid, and it works for everyone but you... are you able to create a local test server ( https://www.youtube.com/watch?v=I71eMkUZmDY&feature=youtu.be ) that shows the problem and upload the contents for us to play with?

mcmonkey4eva avatar Nov 17 '14 20:11 mcmonkey4eva

@tjbruce17594 - do you have remove-from-player-list set to false?

fullwall avatar Nov 18 '14 05:11 fullwall

My Current Config. http://pastebin.com/0bnu7pW4

This started when I updated from Bukkit to Spigot. Is there a plugin conflict, or something I did wrong etc? Also, the problem only occurs when you join the spawn/default world. The Human NPC's names stay on the tablist.

Thanks for your support.

tjbruce17594 avatar Nov 18 '14 07:11 tjbruce17594

Just came to say I am having the same problem. I am updated to the newest dev build as well. I believe this happens no matter what world you are on. If you set the name of the NPC as a minecraft username, thus giving them the skin of that minecraft user, then the name shows up on the scoreboard. If you give them a name, and then set them to a specific type, then they do not show up on the list. Hopefully this will help.

djstrikes3 avatar Nov 26 '14 18:11 djstrikes3