Configuration
On this page(12)
SnWeekEnds ships with the following YAML files. New keys are auto-merged on boot; your edits and comments are preserved. The boosts/ folder is the exception: it is yours, and the examples are copied only once, when the folder does not exist.
config.yml
# ============================================================
# SnWeekEnds - configuration
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. Do NOT add a config-version key (retired).
# Set update-configs: false to freeze this file (SnLib only warns about
# missing keys instead of inserting them).
# Sections marked "# sn:extensible" are yours: entries you delete there
# stay deleted.
# ============================================================
# Active language code; loads lang/messages_<code>.yml (falls back to en).
lang: en
# Master switch of the SnLib auto-updater for this plugin's managed files.
update-configs: true
# Runtime debug output (also toggleable live via /weekend debug).
debug:
# Master toggle of the debug output.
enabled: false
# Verbosity threshold: OFF, INFO, DEBUG or TRACE.
level: DEBUG
# Category filter; an empty list lets every category through.
categories: []
# ------------------------------------------------------------
# Main command.
# ------------------------------------------------------------
command:
# Aliases of /weekend. Re-read on /weekend reload.
aliases: [weekends]
# ------------------------------------------------------------
# Weekend window. The weekend is active from start to end every week,
# measured on the wall clock of the timezone below. The default is
# Friday 12:00 to Monday 00:00 (the end of Sunday): 60 hours.
# ------------------------------------------------------------
window:
# Day the weekend starts: MONDAY, TUESDAY, ... SUNDAY.
start-day: FRIDAY
# Time of day it starts, 24h "HH:mm".
start-time: "12:00"
# Day the weekend ends.
end-day: MONDAY
# Time of day it ends, 24h "HH:mm". MONDAY "00:00" is the end of Sunday.
end-time: "00:00"
# Java zone id of the window (Europe/Madrid, America/Argentina/Buenos_Aires, UTC).
# Empty uses the server's own zone.
timezone: ""
# ------------------------------------------------------------
# Expression aliases. A name here can start any expression in boosts/*.yml,
# so "[call] edtools.getBoostersAPI()" expands to the value below followed by
# ".getBoostersAPI()". Add your own shorthands for the APIs you call often.
# ------------------------------------------------------------
# sn:extensible
expression-aliases:
# EdTools API entry point (es.edwardbelt.edgens.iapi.EdToolsAPI.getInstance()).
edtools: "static:es.edwardbelt.edgens.iapi.EdToolsAPI.getInstance()"
# ------------------------------------------------------------
# Boss bar shown to every online player while the weekend is active.
# Its text is bossbar.title in the language file; the roulette lives in
# roulette.yml.
# ------------------------------------------------------------
bossbar:
# Show the boss bar during the weekend.
enabled: true
# Ticks between two animation frames (2 to 20).
frame-period-ticks: 2
# How far the gradient of the title moves each frame, as a fraction of
# its length (0 stops it).
phase-step: 0.04
# Bar colors cycled through: PINK, BLUE, RED, GREEN, YELLOW, PURPLE, WHITE.
colors: [RED, YELLOW, GREEN, BLUE, PURPLE, PINK]
# Frames each bar color lasts before the next one.
color-frames: 5
# NOTCHED_6, NOTCHED_10, NOTCHED_12, NOTCHED_20 or PROGRESS.
overlay: PROGRESS
# true fills the bar with the time left of the weekend; false keeps it full.
countdown: trueroulette.yml
The weekend roulette: when it spins, the wheel drawn into the resource pack and the segments it can land on. Each segment sets the multiplier your boosts read as {roulette-multiplier} and runs its own actions.
# ============================================================
# SnWeekEnds - weekend roulette
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. Sections marked "# sn:extensible" are yours:
# entries you delete there stay deleted.
#
# While the weekend is active a wheel spins on every player's screen.
# The color it lands on sets the weekend multiplier that every boost
# reads as {roulette-multiplier} (for example
# "[call] event.addMultiplier(0.15 * {roulette-multiplier})"), and runs
# that color's actions. The result lasts until the next spin or until the
# weekend ends, when it goes back to x1.
#
# The wheel and the spin sound come from a resource pack this plugin
# writes to plugins/SnWeekEnds/resourcepack/SnWeekEnds-Roulette.zip
# (rewritten on boot, on /weekend reload and on /weekend roulette pack).
# Merge that zip into your server resource pack (SnTexturePack: put it in
# texturepack/merge/ or list it under merge.paths, then build). Without
# the pack players still read the results, but the wheel shows as boxes.
# ============================================================
# Master switch of the roulette. false = no spins and every boost reads x1.
enabled: true
# World names (case-insensitive) where players do not see or hear the roulette wheel:
# no wheel, no spin sounds, no result title, for example a PvP world: [pvp].
# The result broadcast, the segment actions and the boss bar are unchanged.
hidden-worlds: []
# Spin automatically when the weekend starts.
spin-on-start: true
# Delay between the start of the weekend and its first spin (30s, 2m...).
start-delay: 10s
# Time between two automatic spins while the weekend lasts (6h, 12h...).
# 0 spins only once per weekend.
interval: 0
# ------------------------------------------------------------
# The spin.
# ------------------------------------------------------------
# The defaults follow the bundled sound second by second: the wheel
# appears, turns from 0.75s to 9.25s (it speeds up, then slows down onto
# the result), flashes on the final hit of the sound at 10.15s and stays
# filled with the winning color until the sound fades out.
spin:
# Time the still wheel is on screen before it starts turning (0 to 10s).
intro: 0.75s
# How long the wheel turns before it stops.
duration: 8.5s
# Full turns the wheel makes before it stops on the result (1 to 20).
# More turns in the same time make it faster.
rotations: 12
# Time the stopped wheel stays on screen before the flash of the result.
# With the bundled sound that flash lands on its final hit.
reveal-delay: 0.9s
# Time the whole wheel stays filled with the winning color before the
# result title. 0 skips the filled wheel.
result-fill: 2.7s
# White flashes: one when the wheel appears, one on the result and one
# when the filled wheel goes away. false turns them off.
flash: true
# How long the result title stays on screen.
result-stay: 4s
# Sounds: "SOUND [volume] [pitch]", a vanilla id (UI_BUTTON_CLICK) or a
# resource pack id with its namespace (snweekends:roulette.spin). none = silent.
sounds:
# Played once to every online player when the wheel starts turning.
spin: "snweekends:roulette.spin 1 1"
# Played each time a new slice passes under the pointer.
tick: none
# Played when the result is revealed.
win: none
# ------------------------------------------------------------
# The wheel drawn into the resource pack. Changing any of these (or the
# segment colors) needs the pack rebuilt and sent to players again.
# With the defaults the pack weighs about 4 MB.
# ------------------------------------------------------------
wheel:
# Animation frames of a full turn (12 to 120, and never fewer than two
# per slice). More frames turn smoother and make the pack bigger.
frames: 48
# How many times each segment appears around the wheel (1 to 6, and at
# most 120 slices in all).
repeat: 2
# Size in pixels of each frame texture (64 to 256, the largest picture a
# Minecraft font can draw).
texture-size: 256
# Resolution of the rim, the hub and the pointer, which do not turn: 2
# draws them twice as sharp as the slices (four textures in all), 1 as
# sharp as the slices. 2 needs an even glyph-height and a glyph-ascent
# of at most half of it; any other wheel is drawn at 1.
frame-resolution: 2
# Drawn height of the wheel in font pixels (a letter is 8). The title
# draws it four times bigger, and the whole title scales with each
# player's GUI Scale: 56 is the largest wheel that still fits the screen
# of a player on GUI Scale Auto. On GUI Scale 2 it covers about half of
# the screen height.
glyph-height: 56
# Font pixels the wheel rises above the title baseline (at most
# glyph-height). Raise it to move the wheel up the screen. Half of
# glyph-height minus 2 puts the wheel in the middle of the screen.
glyph-ascent: 26
# The drop shadow Minecraft draws under every title, which shows as a
# dark crescent along the lower right edge of the wheel. false removes
# it for players on 1.21.4 or newer (the server must be 1.21.4 or newer
# too); older clients always draw it.
shadow: false
# Rim color of the wheel, "#RRGGBB".
rim-color: "#F2B01E"
# Color of the dots of light on the rim, "#RRGGBB" (drawn with sparkles).
light-color: "#FFF3B8"
# Color of the pointer at the top, "#RRGGBB".
pointer-color: "#F7B924"
# Color of the hub in the middle, "#RRGGBB".
hub-color: "#E8A91C"
# Color of the gem in the pointer while the wheel turns, "#RRGGBB". On
# the filled wheel the gem takes the winning color.
gem-color: "#2F4BFF"
# Color of the lines between the slices, "#RRGGBB".
separator-color: "#3A2206"
# White sparkles and glints of light on the wheel, and dots of light on
# the rim. false draws a clean, flat wheel.
sparkles: false
# Motion-blurred frames shown while the wheel turns fast. false leaves
# them out of the pack (about half the size) and the wheel always shows
# its sharp frames.
motion-blur: true
# ------------------------------------------------------------
# Segments. Each key is a segment id (letters, digits, - and _), usable in
# boost conditions as {roulette} and in /weekend roulette spin <segment>.
# weight chance relative to the other segments
# color its slice color on the wheel, "#RRGGBB"
# name how players see it (titles, chat, bossbar, placeholders)
# multiplier the weekend multiplier it sets (0.5 halves the boosts)
# actions server lines run once when it wins ([console], [broadcast], [call])
# player-actions lines run for every online player when it wins ([message],
# [title], [sound], [actionbar] and the other player tags)
# ------------------------------------------------------------
# sn:extensible
segments:
red:
weight: 25
color: "#E53935"
name: "&#E53935&lRED"
multiplier: 0.5
actions: []
player-actions: []
orange:
weight: 20
color: "#FB8C00"
name: "&#FB8C00&lORANGE"
multiplier: 0.75
actions: []
player-actions: []
green:
weight: 25
color: "#43A047"
name: "+A047&lGREEN"
multiplier: 1.5
actions: []
player-actions: []
blue:
weight: 15
color: "#1E88E5"
name: "E88E5&lBLUE"
multiplier: 2.0
actions: []
player-actions: []
gold:
weight: 5
color: "#FDD835"
name: "&#FDD835&lGOLD"
multiplier: 3.0
actions: []
player-actions:
- "[sound] UI_TOAST_CHALLENGE_COMPLETE 1 1"
purple:
weight: 10
color: "#8E24AA"
name: "E24AA&lKEY ALL"
multiplier: 1.0
# SnCrates key all: replace "basica" with your crate id, or use your own
# crate plugin's command.
actions:
- "[console] crates key giveall basica 1"
player-actions:
- "[sound] ENTITY_PLAYER_LEVELUP 1 1"guis/weekend.yml
# ============================================================
# SnWeekEnds - the weekend menu (opened by /weekend)
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved.
# Colours: &a legacy codes, &#RRGGBB and <#RRGGBB> hex, [rgb] gradients.
# ============================================================
# Menu title. It is resolved when the menu opens: a title cannot be written into an
# open window, so the countdown sits in the status cell.
# Placeholders:
# {state} active or inactive, the id of the status template in use. Build a
# name with it to show one resource pack texture per state, for
# example a glyph called weekend-{state}.
# {status} state word, from the status: section of lang/messages_en.yml
# When the weekend starts or ends with the menu open, a title that uses them is
# swapped by reopening the window once. That needs the status region to hold at
# least one cell.
title: "₢f2&lWeekend Benefits"
# Ticks between repaints of the status cell, so its countdown keeps ticking while the
# menu is open. 0 turns the repaint off (the cell then updates only when you reopen it).
update-interval: 20
# ------------------------------------------------------------
# LAYOUT
# f = filler t = the status cell x = close button
# m s e p l v g = the seven info items, left to right
# (space) = empty
# Move, add or remove cells as needed: the plugin never names a slot.
# A letter may repeat: every cell that carries it shows the same item, so a
# menu drawn by a resource pack texture can cover one picture with several
# cells (give those items an invisible item-model or custom-model-data).
# ------------------------------------------------------------
layout:
- "fffftffff"
- "f f"
- "fmseplvgf"
- "ffffxffff"
# ------------------------------------------------------------
# REGIONS
# Cells the plugin fills on every repaint.
# status: the cells that show the active or the inactive template below. One
# cell is enough; when the letter repeats in the layout, every one of
# its cells shows the status.
# Keep the key declared - to turn the region OFF, take its letter out
# of the layout above instead of deleting it here.
# ------------------------------------------------------------
regions:
status: t
# ------------------------------------------------------------
# STATUS TEMPLATES
# The plugin picks one per repaint: "active" while the weekend is running,
# "inactive" otherwise. Both are keyless: the status region above places them.
# Placeholders (both templates):
# {status} state word, from the status: section of lang/messages_en.yml
# {time-left} time until the running weekend ends; 0s while it is not running
# {starts-in} time until the next weekend starts (next week's while one is running)
# {ends-in} time until the next end: the running weekend's, or the upcoming
# weekend's while it is not running
# {start-day} {start-time} {end-day} {end-time} the weekly window of config.yml
# {roulette} name of the segment the roulette landed on (roulette.yml); the
# status.roulette-none word of the lang file before it lands
# {multiplier} the weekend multiplier that segment set (1.5, 2, 0.75); 1 before it lands
# Durations read like "3d 11h 3m 21s"; their units and the day names come from the
# time: section of lang/messages_en.yml.
# material also accepts texture-<base64>, texture:<base64> and basehead-<base64>
# to use a custom player head.
# ------------------------------------------------------------
templates:
active:
material: PAPER
display-name: "&2★ &r&a&lWEEKEND ACTIVE &r&2★"
lore:
- "&7In this menu you can view all of the perks"
- "&7and boosters active during the weekend."
- " "
- "&2Roulette: &r{roulette} &r&7(&fx{multiplier}&7)"
- "&2Weekend Benefits end in &r&f{time-left}&r&2."
inactive:
material: PAPER
display-name: "&4★ &r&c&lWEEKEND INACTIVE &r&4★"
lore:
- "&7In this menu you can view all of the perks"
- "&7and boosters active for the upcoming weekend."
- " "
- "&4Weekend Benefits start in &r&f{starts-in}&r&4."
# ------------------------------------------------------------
# STATIC ITEMS
# Plain decoration, not bound by the plugin: they resolve no {token}
# placeholders of their own, only %papi% ones. The seven info items
# write their numbers by hand - edit them to match your boosts/*.yml.
# Delete an item, or add your own.
# To make a number follow the roulette (needs PlaceholderAPI), write it as
# %snweekends_percent_15% instead of 15%: it shows 15 times the current
# multiplier with its percent sign (22.5% under x1.5, 15% before the wheel
# lands). %snweekends_scaled_15% is the same number without the sign.
# ------------------------------------------------------------
# sn:extensible
items:
filler:
key: f
material: GRAY_STAINED_GLASS_PANE
display-name: " "
money:
key: m
material: EMERALD
display-name: "&2&lMoney &r&a&lBooster"
lore:
- "&7All money gained is &r&fincreased"
- "&7by &r&a15% &r&7during the weekend."
souls:
key: s
material: MAGMA_CREAM
display-name: "&4&lSouls &r&c&lBooster"
lore:
- "&7All souls gained is &r&fincreased"
- "&7by &r&c20% &r&7during the weekend."
essence:
key: e
material: PURPLE_DYE
display-name: "&5&lEssence &r&d&lBooster"
lore:
- "&7All essence gained is &r&fincreased"
- "&7by &r&d15% &r&7during the weekend."
pass:
key: p
material: WRITABLE_BOOK
display-name: "&1&lPass &r&9&lBooster"
lore:
- "&7All pass experience gained is &r&fincreased"
- "&7by &r&916% &r&7during the weekend."
milestone:
key: l
material: BEACON
display-name: "&3&lMilestone &r&b&lBooster"
lore:
- "&7All milestone progress gained is &r&fincreased"
- "&7by &r&b19% &r&7during the weekend."
vote-party:
key: v
material: HONEYCOMB
display-name: "&6&lVote Party &r&e&lRequirements"
lore:
- "&7The votes required to start a &r&fVote Party"
- "&7are &r&freduced &r&7to &r&e200 &r&7during the weekend."
gg-wave:
key: g
material: PAPER
display-name: "&#E72EFF&lDouble GG Wave &r&#F7B8FF&lCredits"
lore:
- "&7Every &r&fGG Wave&r&7 will give &r&#F7B8FF2 Credits"
- "&7instead of 1 during the weekend!"
close:
key: x
material: BARRIER
display-name: "&cClose"
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[close]"lang/messages_en.yml
# ============================================================
# SnWeekEnds - language file (English)
# Managed by SnLib: new keys merge in on boot, your values are kept.
# Restyle any line; your edits survive updates.
# ============================================================
# Prefix prepended to every single-line message sent via sn.lang().send(...)
prefix: "₢f2&lSnWeekEnds &8| &7"
# snlib.* is SnLib's shared command contract (14 keys; the two help.group-*
# keys exist since SnLib 1.36.0). Every Sn plugin ships
# this block UNCHANGED: SnLib bundles NEUTRAL defaults for any key you omit and
# merges them in on boot, so an incomplete block leaks unbranded lines. Shipping
# the FULL block is what keeps the whole fleet visually identical. Placeholders
# {plugin} {usage} {description} {page} {total} {min} {max} {value} {command}
# {group} {path} are filled by SnLib. NEVER put {prefix} here (it is auto-prepended).
snlib:
no-permission: "&cYou do not have permission to use this command."
usage: "&cUsage: &e{usage}"
invalid-number: "&cInvalid number: &e{value}"
invalid-value: "&cInvalid value: &e{value}"
out-of-range: "&cValue must be between &e{min} &cand &e{max}&c: &e{value}"
number-too-small: "&cValue must be at least &e{min}&c: &e{value}"
player-not-found: "&cPlayer not found: &e{value}"
unknown-subcommand: "&cUnknown subcommand: &e{value}"
reload-done: "&aConfiguration reloaded."
help:
header: "&8&m----------&r ₢f2&l{plugin} &8&m----------"
# Branded no-separator form. SnLib's neutral default is "&e{usage} &7{description}".
entry: "₢f2{usage} &7{description}"
footer: "&7Page &f{page}&7/&f{total} &8- ₢f2/{command} help <page>"
# Own help of a groupHelp() command group (/<cmd> admin <module> help).
group-header: "&8&m----------&r ₢f2&l{group} &8&m----------"
group-footer: "&7Page &f{page}&7/&f{total} &8- ₢f2{path} help <page>"
# Short state words. Each is substituted into a {status} slot of the messages below,
# of the menus under guis/ and of the PlaceholderAPI output, so a restyle here applies
# everywhere at once.
status:
active: "&aActive"
inactive: "&cInactive"
# What decides the state of the weekend: the weekly window, or an admin override.
source-schedule: "&7schedule"
source-forced-on: "&aforced on"
source-forced-off: "&cforced off"
# Shown instead of an empty list.
none: "&7none"
# Shown instead of a roulette result while the wheel has not landed yet.
roulette-none: "&7no spin yet"
# Words of the durations and day names shown in menus, messages and placeholders. A duration
# renders as its numbers followed by these suffixes: "3d 11h 3m 21s". A suffix is appended to
# its number exactly as written, so " days" (with the space) reads "3 days".
time:
# Suffix after a number of days.
days: "d"
# Suffix after a number of hours.
hours: "h"
# Suffix after a number of minutes.
minutes: "m"
# Suffix after a number of seconds.
seconds: "s"
# Shown instead of a duration shorter than one second.
zero: "0s"
# Day names of the weekend window in menus and messages.
day-names:
monday: "Monday"
tuesday: "Tuesday"
wednesday: "Wednesday"
thursday: "Thursday"
friday: "Friday"
saturday: "Saturday"
sunday: "Sunday"
# Your own plugin messages. Do NOT write {prefix} in any value: SnLib
# auto-prepends the prefix above to every single-line message sent via
# sn.lang().send(...).
messages:
# Shown when guis/weekend.yml is missing and the menu cannot open.
menu-unavailable: "&cThe weekend menu is not available right now."
# A command only a player can use, typed from the console.
players-only: "&cOnly players can use this command."
# /weekend toggle: the roulette is no longer shown to this player (the result still reaches the chat).
roulette-hidden: "&7The weekend roulette is now &chidden &7for you. You still get the result in chat."
# /weekend toggle again: the roulette shows on this player's screen again.
roulette-shown: "&7The weekend roulette is &ashown &7to you again."
# Command messages. Placeholders of started, stopped, status-active and status-inactive:
# {status} {source} {start-day} {start-time} {end-day} {end-time} {zone} {time-left}
# {starts-in} {duration} {enabled} {loaded} {listeners} {applied}.
# /weekend start: the weekend was forced on.
started: "&7Weekend forced on. It ends in &f{time-left}&7."
# /weekend stop: the weekend was forced off.
stopped: "&7Weekend forced off. The weekly schedule resumes in &f{starts-in}&7."
# /weekend status while the weekend is active. Several lines, sent without the prefix.
status-active:
- "&8&m----------&r ₢f2&lWeekend &8&m----------"
- "&7State: {status} &8(&7{source}&8)"
- "&7Schedule: &f{start-day} {start-time} &7to &f{end-day} {end-time} &8(&7{zone}&8)"
- "&7Ends in: &f{time-left} &8(&7this weekend lasts {duration}&8)"
- "&7Boosts: &f{enabled}&7/&f{loaded} &7enabled, &f{listeners} &7listener(s) bound"
- "&7Applied: &f{applied}"
# /weekend status while the weekend is not active. Several lines, sent without the prefix.
status-inactive:
- "&8&m----------&r ₢f2&lWeekend &8&m----------"
- "&7State: {status} &8(&7{source}&8)"
- "&7Schedule: &f{start-day} {start-time} &7to &f{end-day} {end-time} &8(&7{zone}&8)"
- "&7Next start in: &f{starts-in}"
- "&7Boosts: &f{enabled}&7/&f{loaded} &7enabled, &f{listeners} &7listener(s) bound"
- "&7Applied: &f{applied}"
# /weekend validate. {label} is the command the sender typed.
validate-none: "&eNo boost files are loaded. Add a file to boosts/ and run &f/{label} reload&e."
# Summary line. {boosts} boost files were checked, {problems} problems found in total.
validate-header: "&7Checked &f{boosts} &7boost(s): &f{problems} &7problem(s)."
# One line per boost without problems.
validate-boost-ok: "[noprefix]&a{boost} &8- &7OK"
# One line per boost with problems, followed by one validate-problem line each.
validate-boost: "[noprefix]&e{boost} &8- &7{count} problem(s)"
validate-problem: "[noprefix]&8 - &7{problem}"
# /weekend test: {phase} is start or end, {players} is how many online players the player list ran for.
test-ran: "&7Ran the &f{phase} &7lists of &f{boost}&7 (player list for &f{players} &7player(s))."
# /weekend test with a boost id that no longer exists.
test-unknown: "&cNo boost named &e{boost}&c is loaded."
# /weekend roulette spin: the wheel started.
roulette-spin-started: "&7The roulette is spinning."
# /weekend roulette spin while a spin is already running.
roulette-already-spinning: "&cThe roulette is already spinning."
# /weekend roulette spin while the weekend is not active.
roulette-inactive: "&cThe roulette only spins while the weekend is active."
# /weekend roulette spin while roulette.yml has enabled: false or no segment.
roulette-disabled: "&cThe roulette is disabled or has no segment in roulette.yml."
# /weekend roulette spin <segment> with a segment roulette.yml does not define.
roulette-unknown: "&cNo roulette segment named &e{segment}&c."
# /weekend roulette force <segment> next: the next automatic spin lands on {segment}.
roulette-forced-next: "&7The next automatic roulette spin will land on &e{segment}&7."
# The same, while no automatic spin is due (spin-on-start off and interval 0, or this weekend's
# one spin already happened): the force waits for the next automatic spin there is.
roulette-forced-next-unscheduled: "&7The next automatic roulette spin will land on &e{segment}&7. &8(&7No automatic spin is due right now: it waits for the next one.&8)"
# /weekend roulette unforce: the force of {segment} was dropped.
roulette-unforced: "&7The next automatic roulette spin is random again &8(&7was &e{segment}&8)&7."
# /weekend roulette unforce with no force stored.
roulette-unforce-none: "&cThe next automatic roulette spin is not forced."
# /weekend roulette clear: the result went back to x1.
roulette-cleared: "&7Roulette result cleared: every boost reads &fx1 &7again."
# /weekend roulette pack while the pack is being written.
roulette-pack-building: "&7Writing the roulette resource pack..."
# The pack was written. {path} is the file, {frames} the pictures of the wheel it holds.
roulette-pack-written: "&7Roulette pack written to &f{path} &8(&7{frames} frames&8)&7. Merge it into your server pack."
# The pack on disk was already up to date.
roulette-pack-unchanged: "&7Roulette pack &f{path} &7is already up to date."
# The pack could not be written. {reason} is the error.
roulette-pack-failed: "&cThe roulette pack could not be written: &e{reason}"
# The roulette on screen. {segment} is the segment name of roulette.yml, {multiplier} its multiplier.
roulette:
# Subtitle shown with the turning wheel: the segment under the pointer right now, for
# example "{segment}". Empty shows none: the wheel is drawn in the middle of the screen, so a
# subtitle is written over it (it only fits under a small wheel, see wheel.glyph-height).
spinning-subtitle: ""
# Title of the revealed result.
result-title: "{segment}"
# Subtitle of the revealed result.
result-subtitle: "&7Weekend boosts &fx{multiplier}"
# Chat line sent to everyone when the result is revealed.
result-broadcast: "&7The roulette landed on {segment}&7: weekend boosts are now &fx{multiplier}&7."
# The boss bar of the weekend (config.yml bossbar). Placeholders: {time-left}, {roulette} (the
# current segment name), {multiplier} and {phase}, the moving offset of the gradient: keep it as
# the last argument of <gradient:...:{phase}> and repeat the first color at the end so it loops.
bossbar:
# Text of the bar while the weekend is active.
title: "<gradient:#FF5555:#FFAA00:#FFFF55:#55FF55:#55FFFF:#5555FF:#FF55FF:#FF5555:{phase}><bold>WEEKEND</bold></gradient> &8| &7Ends in &f{time-left} &8| &7Roulette {roulette} &fx{multiplier}"
# Text of the bar while the roulette spins.
title-spinning: "<gradient:#FF5555:#FFAA00:#FFFF55:#55FF55:#55FFFF:#5555FF:#FF55FF:#FF5555:{phase}><bold>THE ROULETTE IS SPINNING</bold></gradient>"Boosts
A boost is one file in plugins/SnWeekEnds/boosts/. The file name without .yml is the boost id (letters, digits, - and _). All shipped examples are disabled except announcements.yml. Set enabled: true after checking the names for your setup.
player-start runs for every online player at the start AND on every join while the weekend is active. Keep those lines safe to repeat: never put a give, a payout or any one-shot reward there.
boosts/announcements.yml
# ============================================================
# SnWeekEnds - boost: announcements
# One boost per file; the file name (without .yml) is the boost id.
# Example files are copied only on the first install: edit, rename or
# delete them freely, a deleted file never comes back.
#
# Action lines: [call] <expression>, [console] <command>, [broadcast] <text>
# run without a player; [message] [title] [actionbar] [sound] [player]
# need one. Prefix any line with [chance=N] (0-100) to run it N% of the time.
# Placeholders: {player} {uuid} {remaining-ms} {remaining-seconds}
# {end-epoch-ms} {duration-ms} {roulette} {roulette-multiplier}, plus
# %papi% placeholders. {roulette} is the segment id the roulette landed on
# (none before the first spin) and {roulette-multiplier} its multiplier (1).
# An optional on-roulette list runs after every roulette result.
# ============================================================
# Whether this boost takes part in weekends.
enabled: true
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not.
on-restart: skip
# Server-level actions when the weekend starts.
on-start:
- "[broadcast] ₢f2&lWeekend &8| &7The weekend has started! Boosts are active until Monday."
# Server-level actions when the weekend ends.
on-end:
- "[broadcast] ₢f2&lWeekend &8| &7The weekend is over. See you next week!"
# Actions for every online player when the weekend starts, and for every player
# who joins while it is active.
player-start:
- "[title] ₢f2&lWEEKEND;&7Boosts are active;10;60;20"
- "[sound] ENTITY_PLAYER_LEVELUP 1 1"
# Actions for every online player when the weekend ends.
player-end:
- "[title] ₢f2&lWEEKEND OVER;&7Boosts are gone;10;60;20"
- "[sound] BLOCK_NOTE_BLOCK_BASS 1 0.8"
# Event listeners bound only while the weekend is active (none here).
listeners: {}boosts/edtools-money.yml
# ============================================================
# SnWeekEnds - boost: edtools-money
# +15% money from EdTools while the weekend is active.
# Requires EdTools. Set enabled: true to use it.
# ============================================================
# Whether this boost takes part in weekends.
enabled: false
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not. Listeners are bound either way.
on-restart: reapply
# Event listeners bound only while the weekend is active. Each key is a listener id.
listeners:
# Listener id, shown in warnings and in /weekend validate.
money:
# Fully qualified class of the event to listen to.
event: es.edwardbelt.edgens.iapi.event.EdToolsCurrencyAddEvent
# Plugin that owns the event class (loaded through that plugin).
plugin: EdTools
# Bukkit priority: LOWEST, LOW, NORMAL, HIGH, HIGHEST or MONITOR.
priority: NORMAL
# true skips events another plugin already cancelled.
ignore-cancelled: false
# Values read from the event on every fire, usable as {name} below. The event
# fires asynchronously, so conditions compare these values (PAPI does not
# resolve off the main thread).
variables:
# The EdTools currency id being added.
currency: "event.getCurrency()"
# Conditions that must all pass (==, !=, >, <, >=, <=, && and ||).
# Use the currency id of your EdTools setup.
conditions:
- "{currency} == money"
# Actions when the conditions pass. [call] runs inline, before EdTools reads
# the multiplier: addMultiplier adds onto the current multiplier, scaled by the
# roulette result (roulette.yml; x1 while it has not spun).
actions:
- "[call] event.addMultiplier(0.15 * {roulette-multiplier})"boosts/edtools-souls.yml
# ============================================================
# SnWeekEnds - boost: edtools-souls
# +20% souls from EdTools while the weekend is active.
# Requires EdTools. Set enabled: true to use it.
# ============================================================
# Whether this boost takes part in weekends.
enabled: false
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not. Listeners are bound either way.
on-restart: reapply
# Event listeners bound only while the weekend is active. Each key is a listener id.
listeners:
# Listener id, shown in warnings and in /weekend validate.
souls:
# Fully qualified class of the event to listen to.
event: es.edwardbelt.edgens.iapi.event.EdToolsCurrencyAddEvent
# Plugin that owns the event class (loaded through that plugin).
plugin: EdTools
# Bukkit priority: LOWEST, LOW, NORMAL, HIGH, HIGHEST or MONITOR.
priority: NORMAL
# true skips events another plugin already cancelled.
ignore-cancelled: false
# Values read from the event on every fire, usable as {name} below.
variables:
# The EdTools currency id being added.
currency: "event.getCurrency()"
# Conditions that must all pass. Use the currency id of your EdTools setup.
conditions:
- "{currency} == souls"
# Actions when the conditions pass: adds 0.20 onto the current multiplier,
# scaled by the roulette result (roulette.yml; x1 while it has not spun).
actions:
- "[call] event.addMultiplier(0.20 * {roulette-multiplier})"boosts/edtools-essence.yml
# ============================================================
# SnWeekEnds - boost: edtools-essence
# +15% essence from EdTools while the weekend is active.
# Requires EdTools. Set enabled: true to use it.
# ============================================================
# Whether this boost takes part in weekends.
enabled: false
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not. Listeners are bound either way.
on-restart: reapply
# Event listeners bound only while the weekend is active. Each key is a listener id.
listeners:
# Listener id, shown in warnings and in /weekend validate.
essence:
# Fully qualified class of the event to listen to.
event: es.edwardbelt.edgens.iapi.event.EdToolsCurrencyAddEvent
# Plugin that owns the event class (loaded through that plugin).
plugin: EdTools
# Bukkit priority: LOWEST, LOW, NORMAL, HIGH, HIGHEST or MONITOR.
priority: NORMAL
# true skips events another plugin already cancelled.
ignore-cancelled: false
# Values read from the event on every fire, usable as {name} below.
variables:
# The EdTools currency id being added.
currency: "event.getCurrency()"
# Conditions that must all pass. Use the currency id of your EdTools setup.
conditions:
- "{currency} == essence"
# Actions when the conditions pass: adds 0.15 onto the current multiplier,
# scaled by the roulette result (roulette.yml; x1 while it has not spun).
actions:
- "[call] event.addMultiplier(0.15 * {roulette-multiplier})"boosts/dungeons-souls.yml
# ============================================================
# SnWeekEnds - boost: dungeons-souls
# A permanent x1.2 souls global event in SnDungeons for the whole weekend,
# started through the SnDungeons API (no listener needed).
# Requires SnDungeons. Set enabled: true to use it.
# ============================================================
# Whether this boost takes part in weekends.
enabled: false
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not. SnDungeons keeps its global event
# across restarts, so skip avoids starting it twice.
on-restart: skip
# Server-level actions when the weekend starts. startEvent(type, multiplier, millis):
# type is an active SnDungeons booster type, the multiplier must be above 1
# (1.2 = +20%), and {remaining-ms} makes it last until the weekend ends.
on-start:
- "[call] service:com.sn.dungeons.api.SnDungeonsAPI.boosters().globals().startEvent('currency:souls', 1.2, {remaining-ms})"
# Server-level actions when the weekend ends: stops the running global event.
on-end:
- "[call] service:com.sn.dungeons.api.SnDungeonsAPI.boosters().globals().stopEvent()"
# Server-level actions run after every roulette result while this boost is applied
# (roulette.yml): restarts the event with the bonus scaled by the result, so a x2
# result gives +40% and a x0.5 result +10%.
on-roulette:
- "[call] service:com.sn.dungeons.api.SnDungeonsAPI.boosters().globals().stopEvent()"
- "[call] service:com.sn.dungeons.api.SnDungeonsAPI.boosters().globals().startEvent('currency:souls', 1 + 0.2 * {roulette-multiplier}, {remaining-ms})"
# Event listeners bound only while the weekend is active (none here).
listeners: {}boosts/mythic-boss.yml
# ============================================================
# SnWeekEnds - boost: mythic-boss
# An extra boss crate key for every kill of a MythicMobs boss during the weekend.
# Requires MythicMobs. Set enabled: true to use it.
# The MythicMobs class and method names below are NOT verified against the
# MythicMobs API: check them for your MythicMobs version, then run
# /weekend validate to confirm they resolve.
# ============================================================
# Whether this boost takes part in weekends.
enabled: false
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not. Listeners are bound either way.
on-restart: reapply
# Event listeners bound only while the weekend is active. Each key is a listener id.
listeners:
# Listener id, shown in warnings and in /weekend validate.
boss-kill:
# Fully qualified class of the event to listen to.
event: io.lumine.mythic.bukkit.events.MythicMobDeathEvent
# Plugin that owns the event class (loaded through that plugin).
plugin: MythicMobs
# Bukkit priority: LOWEST, LOW, NORMAL, HIGH, HIGHEST or MONITOR.
priority: NORMAL
# true skips events another plugin already cancelled.
ignore-cancelled: false
# Expression that returns the event's player; it fills {player} and {uuid}
# and is required by player tags. A kill without a player killer has none.
player: "event.getKiller()"
# Values read from the event on every fire, usable as {name} below.
variables:
# Internal name of the MythicMobs mob type that died.
mob: "event.getMobType().getInternalName()"
# Conditions that must all pass.
conditions:
- "{mob} == KingSlime"
# Actions when the conditions pass. Use your own crate command.
actions:
- "[console] crates give {player} boss 1"
- "[message] &7Weekend bonus: ₢f2+1 boss key&7!"boosts/commands-example.yml
# ============================================================
# SnWeekEnds - boost: commands-example
# Drives any plugin through console commands: here a server-wide booster that
# lasts exactly until the weekend ends. Replace the commands with your own.
# Set enabled: true to use it.
# ============================================================
# Whether this boost takes part in weekends.
enabled: false
# When the server boots inside an active weekend this boost already applied:
# reapply runs on-start again, skip does not. Use skip when the command's
# plugin keeps its effect across restarts.
on-restart: skip
# Server-level actions when the weekend starts. {remaining-seconds} is the time
# left of the current weekend.
on-start:
- "[console] booster start global xp 2 {remaining-seconds}"
- "[console] say Weekend booster started for {remaining-seconds} seconds"
# Server-level actions when the weekend ends.
on-end:
- "[console] booster stop global xp"
# Actions for every online player when the weekend starts, and for EVERY join
# while it is active (a player who relogs runs them again). Keep these lines
# harmless when repeated: messages, titles, an effect that does not stack. Never
# put a give, a payout or any one-shot reward here. [chance=N] runs the line N%
# of the time.
player-start:
- "[console] msg {player} The weekend booster is active!"
# Actions for every online player when the weekend ends.
player-end: []
# Event listeners bound only while the weekend is active (none here).
listeners: {}