InventivetalentDev / NickNamer

Spigot Name & Skin changer plugin
https://www.spigotmc.org/resources/5341
MIT License
104 stars 28 forks source link

Nick doesn't work in chat #119

Closed TheRealGriind closed 4 years ago

TheRealGriind commented 4 years ago

What steps will reproduce the problem?

  1. Install some chat plugin (I've tried ChatEX & EssentialsXChat for 1.15.2)
  2. Set the playername placehodler to the PAPI placehodler for Nicknamer
  3. write something (EssentialsXChat i tihk doesn't support placeholders that well,since it just kept the old look, with ChatEX the name just dissapeared, and never shown, even if i was nicked or not)

What were you expecting to happen? What happened instead?

That the name works & shows (PAPI placeholder, etc works...) What happens is that everything works, exempt the chat functions

What version of the plugin are you using? Type /version <Plugin Name>

3.18.2-SNAPSHOT

What Spigot version are you using? Type /version

git-Paper-112 (MC: 1.15.2)

What plugins are you using? Type /plugins

Chat related are: ChatEX If you need all plugins, please leave a reply

Do you have an error log? Use pastebin.com. If you're not sure, upload your whole server log

No, I don't

Did your client crash? Upload errors in .minecraft/logs/latest.log as well

No, I didn't

Additional information? (Are you using Bungeecord? Did it work in previous versions? etc.)

I am using Waterfall BungeeCord fork, but it was the same when I only used normal Spigot

I do understand that this may be a fault with PAPI, or ChatEX as well

Th3Shadowbroker commented 4 years ago

Hello @GriindGaming, thank you for reporting this problem.

What happens is that everything works, exempt the chat functions

What message do you get when you're running /papi parse <username> %nicknamer_nickname%? Are you using the NickNamer eCloud expansion? If that's the case please uninstall it. NickNamer comes with it's own expansion. Please let me know if this solved your problem.

TheRealGriind commented 4 years ago

Hello, sorry that I'm late, but I have now tested the parse command, and it comes up with my name, however I installed the eCloud expansion because I didn't find any expansions that came with the plugin. And the parse command only works when the eCloud expansion is installed.

I nicked myself "test" and tried the parse command with & without the eCloud expansion and the results were that it came us with "test" when it was installed, however when it was not it just gave me the placeholder.

Th3Shadowbroker commented 4 years ago

Mhhhh.... 🤔 I can't replicate what you described. I only have PAPI, NickNamer and its requirements installed and the placeholders work accordingly.

I didn't find any expansions that came with the plugin.

There's nothing to find. It's included in the plugin itself 🙂

TheRealGriind commented 4 years ago

Hmm... What chat plugin do you use then? I have tried both EssentialsXChat and ChatEX.

TheRealGriind commented 4 years ago

Because for me, it works in the Scoreboard (Side list), it's only in the chat that it doesn't show anything

Th3Shadowbroker commented 4 years ago

Sorry! I forgot to test ChatEx. I were totally focused on the placeholders 😅

I'm using EssentialsXChat. The problem with EXC is, that it does not support PlaceholderAPI so you have to configure NickNamer to replace names in all outgoing messages. (Like in the example below 🔽)

NickNamer (config.yml)

replace:
  chat:
    # Replace names in messages sent by players
    player: true

    # Replaces names in ALL outgoing messages
    out: true <-- This will to the trick

If you want to use ChatEx instead this (🔼 ) will also work. You just have to to replace the %player placeholder with %displayname like this: ChatEx (config.yml)

message-format: '%prefix%displayname%suffix: %message'
global-message-format: '&9[%world] %prefix%displayname%suffix: &e%message'

I honestly don't know why PlaceholderAPI placeholders do not work at this point 😅

Please let me know if this solved your problem 🙂

TheRealGriind commented 4 years ago

Aight, I'll try

TheRealGriind commented 4 years ago

Yeah, It kinda works, but I see three problems with this unfortunately... http://prntscr.com/skkffi

As you can see the suffix is doubled, this can be fixed by just removing the extra "%suffix" although, the suffix is straight on the name instead of a space, and I want an automatic space to make it as easy to add a new group/prefix, suffix, etc as possible.

The third problem is that here you can see my actual IGN, instead of showing me the nicked name.

Right now I have just edited the chatex config, but yeah.

The reason why I have ChatEX right now, is because the same problem is with EssentialXChat for me...

Th3Shadowbroker commented 4 years ago

Forget what I said about the %displayname. It just worked in my case because I have no plugin manipulating the displayname by attaching the groups to it. %player should work! 😅

ChatEx (config.yml)

message-format: '%prefix%player%suffix: %message'
global-message-format: '&9[%world] %prefix%player%suffix: &e%message'
TheRealGriind commented 4 years ago

Aight, I'll try

TheRealGriind commented 4 years ago

Do I still have to turn on all messages though?

Th3Shadowbroker commented 4 years ago

Yes

TheRealGriind commented 4 years ago

Aight, I see one potential problem though... If someone types the real name of the player they might be able to know that they're nicked as that player because they see that their message changed?

Correct me if I'm wrong...

TheRealGriind commented 4 years ago

Also, is there any other dependencies other than the spigot nicknamer plugins to be able to use the bungeecord synchronizer? Right now it ain't working...

Th3Shadowbroker commented 4 years ago

Also, is there any other dependencies other than the spigot nicknamer plugins to be able to use the Bungeecord synchronizer? Right now it ain't working...

Installing the sync.-plugin and making sure bungeecord in the spigot.yml and NickNamers config.yml as well as ip_forward in your BungeeCord config.yml are set to true should work 🤔

Aight, I see one potential problem though... If someone types the real name of the player they might be able to know that they're nicked as that player because they see that their message changed?

Correct me if I'm wrong...

Feel free to create an issue 🙂

TheRealGriind commented 4 years ago

Weird... I got all those things enabled and installed and it doesn't work?

TheRealGriind commented 4 years ago

Nvm fixed it... Just suddenly started working, lol.

Th3Shadowbroker commented 4 years ago

Nice! 👍