Adds settingtypes

This commit is contained in:
AliasAlreadyTaken 2024-05-10 09:48:57 +02:00
parent 4dc265cea8
commit 6730682124

View File

@ -1,6 +1,31 @@
[category]
[yl_announcements]
# First line: Name the settings
# Second line: Say what it does, how to use it, what it changes
# Third line: Is it optional? What's the default value? Does it expect a certain set of values?
yl_announcements.external_value (Description of the setting) string "default_value"
# Debug mode
# Set this to true to enable debug mode, it will output some more values to log
# Optional, default is false
yl_announcements.debug (Debug mode) bool false
# Save path
# Set this to where in the worldfolder you want the JSON files stored.
# Optional, default is yl_announcements
yl_announcements.save_path (Save path) string yl_announcements
# Colour
# Set this to the colour you want the announcements have in chat
# Optional, default is "#7676ff" ("cornflower blue")
yl_announcements.colour (Colour) string #7676ff
# Frequency
# Set this to the default repeat timer you want the announcements have in chat
# Optional, default is 3600 seconds (means: once per hour)
yl_announcements.frequency (Frequency) float 3600.0 1.0
# User privs
# Enable holders of these privs to list and copy announcements
# Optional, default: interact
yl_announcements.user_privs (User privs) string interact
# Admin Privs
# Enable holders of these privs to use all commands
# Optional, default: server
yl_announcements.admin_privs (Admin Privs) string server