Sleep Multiplier icon

Sleep Multiplier -----

Time goes by faster when players sleep



This is a simple plugin that adds a feature while the player sleep, it will cause time in the world that the players are sleeping to pass faster.

By default, the maximum time changing speed is 20 and the plugin calculates the proportion of players sleeping to calculate the multiplier time.
Eg. if half the server is asleep, the time changing speed is 10. If 3/4 of the players are asleep the time changing speed is 15.

Also there's a fancy HUD that pops up during sleep.
[​IMG]

Commands:
/addworld <worldname> - Adds world to be affected by the sleep multiplier. If you want to affect the world that you are standing in, keep "<worldname>" empty
/removeworld <worldname> - Removes the world to be affected by the sleep multiplier. If you want to affect the world you are standing in don't add a worldname.
Debug commands:
/worldstats - Prints the current sleepMultiplier stats of the world you are currently in
/resetworld - Fully resets calculation of world's sleep multiplication

Config:

Code (Text):
Worlds:
  AffectedWorlds:
  Settings:
    Title:
      topMessage: '& [email protected]'
      bottomMessage: '& [email protected]&a(@sx speed)'
    MultiplierMax: 20
DO NOT TOUCH "AffectedWorlds:", this is where the plugin stores the UUID for each world the plugin is keeping track of. Everything to be edited is within "Settings:"

MultiplierMax: Currently the sleep-multiplication is a global setting across all the different worlds. You can change this to any positive number, negative numbers may break something.
Title:topMessage: - This is where the top title that is presented to the player while they are sleeping is saved. You can edit this message using the formatting below.
Title:bottomMessage: - This is where the top title that is presented to the player while they are sleeping is saved. You can edit this message using the formatting below.

Text formatting

There are special characters you can use that will allow for the plugin to present the calculated values to the player.
@s: When this is placed in the message, it will show the current multiplication set for the world
@t: This will show the current time to the player, eg: 22:05
@p: This will show the proportion of players that are sleeping at the time.

Any colour formatting can be completed using &#, where the # can be replaced with the relevant character for the colour.

Example:
If I set the top message to:
'&cThe current time is & [email protected]'
I will expect the plugin to present the following message (suppose the current time is 05:27)
Bugs:
Doesn't add/remove from the maximum number if a player is op'd during runtime. Current workaround: Have the user reconnect.
Resource Information
Author:
----------
Total Downloads: 1,802
First Release: Nov 11, 2018
Last Update: Jul 8, 2023
Category: ---------------
All-Time Rating:
6 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings