PreferredEnvironment

PreferredEnvironment 2.0.19

Apply custom times to current server date
  • Like
Reactions: Abbas
Added config options to set permissions for what can be changed in the menu.
"Custom permission to change time": "preferredenvironment.use",
"Custom permission to change weather": "preferredenvironment.use",
  • Like
Reactions: JBob
Add a short delay when user joins the server before sending custom environment vars as it doesn't always update for the player
Added chat command /mytime
Reset server defaults in config if it doesn't exist
Add server environment settings to config, editing server values via UI edits the config
Fixed environment data not being cleared when leaving a zone with no personal settings applied
Added chat command /senv which open the server environment menu for easily modifying server values from in game (requires permission 'preferredenvironment.admin')
Added Clear, Dust, Fog, Overcast, Rain and Storm chance options (server menu only)
Added progress time toggle (server menu only)

6efb0f94578ca8bcc6f5649903ea471d.jpg
Changed "Disabled" text to "Use Server Value"
Detect if permission to use has been revoked and if so remove user data (zone overrides still apply until they leave the zone). This way if you want to give timed access you can use a plugin such as TimedPermissions to do so
Fixed time being stuck when disabling it