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

Missing message when trying to do commands when plugin is not enabled in that world #132

Closed Villmarksjenta closed 2 years ago

Villmarksjenta commented 2 years ago

If you have forgotten to enable SleepMost in a world, you will not receive an error message when executing commands. When doing for example /sm sleep, no message appears in chat.

Expected behaviour: If plugin is disabled in that world, and a player tries to execute a player command, I expect a "Sleepmost is not enabled in this world" message.

mrgeneralq commented 2 years ago

Added a check in the /sm sleep command to check if world is enabled