mrgeneralq / sleep-most

Control the amount of percentage of sleeping players required to make it day. 100K+ downloads on spigot!
https://www.spigotmc.org/resources/sleep-most-1-14-4-configurable-messages-and-percentage.60623/
30 stars 12 forks source link

Display the number of ppl sleeping as toast #158

Closed yipjunkai closed 1 year ago

yipjunkai commented 1 year ago

Rather than spamming the chat with 1/3 players are sleeping, maybe implement the notification as an advancement toasts.

mrgeneralq commented 1 year ago

Hello @yipjunkai

Thank you for your proposal. I've been looking into the toast, but this would require custom advancements which I believe sleeping is not really considered an advancement. In case you don't want the message to be visible you can make the message in the messages.yml an empty text.

players-left-night: ''

You can still use PlaceholderAPI to use sleep-most placeholders and show messages.

More on placeholders here: https://mrgeneralq.gitbook.io/sleepmost/placeholders/placeholder-api

Kind regards Quinten