Paper
Paper copied to clipboard
Add option to disable "x/y players sleeping" message.
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.
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
isn't the proper fix here to have your vanish plugin modify the count displayed here?
As discussed in #6864, this should most likely be implemented by
- [ ] Implementing a world-based configuration option to disable the
sleep.skipping_night
orsleep.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.
Any updates on this? Would love to be able to disable them as currently using a plugin for sleeping.
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.
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.
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...
Has anyone made this a plugin for 1.20.2?
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.