Replies: 6 comments
-
I wouldn't mind this, its not really a super common usecase, but not really harmful to add this. |
Beta Was this translation helpful? Give feedback.
-
Another solution is to add a method like |
Beta Was this translation helpful? Give feedback.
-
hmm im curious about if is better a config or allow plugins alter this directly by code (method) |
Beta Was this translation helpful? Give feedback.
-
Now I think that adding |
Beta Was this translation helpful? Give feedback.
-
I think a config for this is better. Plugins setting it seems to just be asking for conflicting plugins trying to set it to multiple things. |
Beta Was this translation helpful? Give feedback.
-
Plugins can create |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
Yes.
I want to change name of these senders to something that regular players cannot have (that doesn't match the regular expression
[a-zA-Z0-9_.]{2,16}
AKA valid player name).Thus, in the case of public chat notifications about [remote] administration actions, and if a player "Rcon" or "CONSOLE" is connected to the server, it will be easy to understand who exactly performed some action (player CONSOLE or real console with name changed to, for example, "$erver" ($ isn't a valid symbol in player name) or "Remote Console" (player can't contain space in their name)).
Describe the solution you'd like.
Add a setting to Paper configuration, i.e.
console-sender-name
andremote-console-sender-name
, with"default"
values by default to keep the current behavior.Describe alternatives you've considered.
Just check for the command sender class type in my plugins and use my custom
String
s instead ofCommandSender#getName()
.But, even if I omit the fact that I have a lot of plugins and support for "custom
String
s" needs to be added to each separately, then what to do with 3rd-party plugin notifications?...Other
PR should be very simple, so I hope someone can save me from having to fork the entire server just to change a couple of lines in its source...
Related files:
Beta Was this translation helpful? Give feedback.
All reactions