Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Adds full support for socialspy in EssentialsDiscord

Open mrbubbles06 opened this issue 2 years ago • 4 comments

Information

This PR closes #5586.

Details

Proposed feature:

Adds support for socialspy (viewing private messages) in EssentialsDiscord.

Environments tested:

OS: MacOS 14.1

Java version: Temurin-17.0.10+7

  • [x] Most recent Paper version (1.20.4, git-Paper-393)
  • [ ] CraftBukkit/Spigot/Paper 1.12.2
  • [ ] CraftBukkit 1.8.8

Demonstration:

image image

mrbubbles06 avatar Jan 23 '24 08:01 mrbubbles06

Looks great (I already ended up making a custom extension to do this because it was so needed for our moderation ability. It would be amazing to have it as a built in). Personally though I'd prefer it if the naming and formatting was more consistent with the rest of EssentialsX and EssentialsXDiscord namely:

  • I think the message formatting should mirror the socialspy formatting. That is instead of {sender-username} -> {receiver-username}: {message} i think [SS][{sender-displayname} -> {receiver-displayname}]: {message} or similar is more appropriate.
  • I think the message type name in the config should be something like socialspy or private-message in the same style as the other message types.

nelind3 avatar Feb 20 '24 12:02 nelind3

I think the message formatting should mirror the socialspy formatting. That is instead of {sender-username} -> {receiver-username}: {message} i think [SS][{sender-displayname} -> {receiver-displayname}]: {message} or similar is more appropriate.

I have a PR to make the Social Spy messages configurable to use either the player name or the display name (because player names are so much better for SS messages).

Bobcat00 avatar Feb 20 '24 16:02 Bobcat00

If that does go through (which it really should display names versus player names are very much a thing that should be configurable) i think the socialspy formatting here should still mirror the in game socialspy formatting and it's defaults. If the default changes to socialspy using player names then this should default to player names too in my opinion. It's essentially the same message they should have the same default formatting.

nelind3 avatar Feb 21 '24 20:02 nelind3

I agree. Also, my PR does not change the default being display names.

Bobcat00 avatar Feb 21 '24 21:02 Bobcat00