Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add option to disable "x/y players sleeping" message.

Open artur9010 opened this issue 3 years ago • 8 comments

Is your feature request related to a problem?

Minecraft 1.17 added new feature - it sends a message to all players when player goes to the bed. That function ignores vanished players and that ones in creative mode which leaks the number of online administrations on the server.

obraz

Describe the solution you'd like.

Add option in config or gamerule to disable that message.

Describe alternatives you've considered.

Welp, there is no option built-in in game server to disable that.

Other

No response

artur9010 avatar Nov 03 '21 17:11 artur9010

isn't the proper fix here to have your vanish plugin modify the count displayed here?

MiniDigger avatar Nov 04 '21 07:11 MiniDigger

As discussed in #6864, this should most likely be implemented by

  • [ ] Implementing a world-based configuration option to disable the sleep.skipping_night or sleep.players_sleeping messages respectively.
  • [ ] Implementing an API event(s) that is/are called when the server attempts to send these messages that allow plugins to modify the resulting message. These events should still be called if the configuration option disabled the messages but would then be pre-cancelled.

lynxplay avatar Nov 04 '21 16:11 lynxplay

Any updates on this? Would love to be able to disable them as currently using a plugin for sleeping.

xIGBClutchIx avatar Dec 12 '21 02:12 xIGBClutchIx

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 10 '22 05:02 stale[bot]

I see no purpose in exposing it as a config option, there is a cost to ever increasing config sizes in terms of usability.

The default message under paper should reflect whether the player is considered for sleeping using the existing API, which would solve the issues surrounding vanish / creative.

Any message sent to the actionbar should generate an event, if it does not already do so.

ryantheleach avatar Feb 12 '22 05:02 ryantheleach

Is this still something that is wanted? My attempts at PRing anything didn't really go far, and this is such a hyper specific thing. If you ever really want to change it you can just use a resource pack...

Owen1212055 avatar Sep 13 '22 18:09 Owen1212055

Has anyone made this a plugin for 1.20.2?

Kylen-V avatar Nov 26 '23 06:11 Kylen-V

Perhaps a simple setSendActionRow (or better name) method could be added to the PlayerEnter/LeaveEvents so plugins can disable it and if required, handle action bars manually.

notTamion avatar Feb 29 '24 16:02 notTamion