PySpigot script
Permission
copy/paste in script_options.yml
Code (Text):
mywatch.py
enabled: true
permissions:
mywatch.*:
description: allow myckname use, cooldown is by default
children:
mywatch.use: false
Commands
/mywatch or /watch
- to display the watch
- to hide the watch
- to display all the colors codes
- to set a clock color
- to set session time label
The watch will automatically display on join, and script reload.
Data is saved in
mywatch.watches file.
Configuration
Code (Text):
AUTOSAVE_ONSTART_INTERVAL_SECONDS = 1600
AUTOSAVE_INTERVAL_SECONDS = 3000
CLOCK_ONSTART_INTERVAL_SECONDS = 50
CLOCK_INTERVAL_SECONDS = 50
LABEL_ARGS_LIMIT = 4
CLOCK_DEFAULT_FORMAT = "&3"
MYWATCH_PREFIX = '&3&k000&r&3[My Watch]&r '
PLAYTIME_DEFAULT_LABEL = "PlyTm: "
MESSAGE_USAGE = "Usage: (/mywatch or /watch)\n- /mywatch &3on&r | /mywatch &3off&r\n- /mywatch &3color&r\n- /mywatch &3label <label>"
MESSAGE_USAGE_LABEL = "Usage: &3/mywatch label <label>&r"
MESSAGE_ALREADY_ON = "Your watch is &3already on"
MESSAGE_NODATA = "Did not find your data and session start time."
MESSAGE_TURNOFF_USELESS = "You do not have any watch to turn off."
MESSAGE_NODATA_ATALL = "You do not have any watch data."
MESSAGE_MYWATCH_HIDE = "Your watch is hidden. &3/mywatch on&r to show it back."
MESSAGE_WELCOMEBACK = "Welcome back!"
MESSAGE_NO_PERMISSION = "You &3do not have&r the permission."
MESSAGE_COLORS_LIST = "Colors are: "
MESSAGE_COLOR_SET = "Color &3is set."
MESSAGE_LABEL_SET = "Label &3is set."
MESSSAGE_CLOCK_WILLBEBACK = "\nYour watch will show in a moment."
MYWATCH_YAML_DATA_FILEPATH = '../scripts/mywatch.watches'
USE_PERMISSIONS = True
---
![[IMG]](//proxy.spigotmc.org/dcab4803697277939f191656db37febde6e031eb/68747470733a2f2f692e6962622e636f2f6759564a354c712f6d7977617463682d73637265656e73686f742d312e6a7067)