Configuration
On this page(3)
SnPvpItems ships with the following YAML files. New keys are auto-merged on boot; your edits and comments are preserved.
config.yml
# ============================================================
# SnPvpItems - 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 /pvpitems 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 /pvpitems. Re-read on /pvpitems reload.
aliases: [pvpi, habilidades]
# ------------------------------------------------------------
# Presentation. gui opens the menu; chat prints the text view.
# ------------------------------------------------------------
presentation:
# Bare /pvpitems: gui opens the abilities menu, chat prints the generated help.
main: gui
# ============================================================
# Abilities live in abilities.yml; texts in lang/. /pvpitems reload
# applies every change.
# ============================================================
# ------------------------------------------------------------
# Ability item look. Placeholders: {color} {name} {NAME} (upper case),
# {lore} (the item's own lore lines from abilities.yml), {cooldown},
# {usage} (the usage hint below, by how the ability triggers) and
# {uses-line} (the line below; removed on items without a uses limit).
# ------------------------------------------------------------
item:
# Display name of every ability item.
name: "&8▪ {color}&l{NAME}"
# Lore of every ability item.
lore:
- "&8ᴀʙɪʟɪᴛʏ"
- ""
- "{lore}"
- ""
- "&7 {color}⏳ &fCooldown: &7{cooldown}"
- "{uses-line}"
- ""
- "&7 (( &f&o{usage} &7))"
# Lore line of items with a uses limit. {uses} left, {max} the item started with.
uses-line: "&7 {color}⚒ &fUses: &7{uses}/{max}"
# Enchantment glint on every ability item.
glow: true
# Usage hint shown as {usage} in the item lore, by how the ability triggers.
usage:
# Abilities used with a right click.
click: "Right-click to use it"
# Abilities applied by hitting a player with the item.
hit: "Hit a player with it"
# Abilities thrown as a projectile.
throw: "Right-click to throw it"
# Fishing-rod abilities.
fish: "Cast it and reel in once hooked"
# ------------------------------------------------------------
# Item behavior.
# ------------------------------------------------------------
# Show the cooldown shadow on the item, like ender pearls. On 1.21.2+ it
# covers that ability only; on older versions every item of the material.
cooldown-shadow: true
# ------------------------------------------------------------
# Limits.
# ------------------------------------------------------------
cooldowns:
# Seconds between any two abilities, on top of each ability's own
# cooldown. 0 disables the global cooldown.
global: 3
# Worlds where abilities work. An empty list allows every world.
worlds: []
safe-zones:
# Block abilities inside WorldGuard regions with pvp: deny, and against
# players standing in one. An ability with safe-zone: true still works
# there (only abilities that touch nobody should use it).
block: true
# ------------------------------------------------------------
# Integrations. Each one is skipped when its plugin is missing.
# ------------------------------------------------------------
integrations:
# Read the pvp flag of WorldGuard regions for the safe-zone rule.
worldguard: true
clans:
# Clanmates are never enemies (SnClans).
enabled: true
# Members of allied clans count as friends too.
allies: true
# Staff in staff mode or vanish (SnStaff) neither use nor receive abilities.
snstaff: true
# Player metadata keys that mark staff who neither use nor receive
# abilities (vanish plugins, staff modes of other plugins).
staff-metadata: [vanished]
# Entity metadata keys that mark NPCs; abilities never target them.
npc-metadata: [NPC]
# ------------------------------------------------------------
# Feedback.
# ------------------------------------------------------------
sounds:
# Format "sound volume pitch"; "" plays nothing. Played to the user.
use: "entity.illusioner.cast_spell 0.8 1.4"
# Played when the ability is still cooling down.
cooldown: "block.note_block.bass 0.6 0.8"
# Played to the player an ability lands on.
receive: "entity.wither.shoot 0.4 1.6"
# Send the cooldown messages to the action bar instead of the chat.
cooldown-actionbar: trueabilities.yml
# ============================================================
# SnPvpItems - abilities
# Managed by SnLib: your values and comments are preserved. Every
# top-level key is an ability id: add, rename or delete entries freely;
# entries you delete stay deleted. /pvpitems reload applies every change.
# Give an item with /pvpitems give <player> <ability> [amount].
#
# Fields of every ability (all optional except type and material):
# enabled false = it can be neither used nor given (default true)
# type what it does (list below); several abilities may share a type
# material the item (use a different one per ability: below 1.21.2 the
# cooldown shadow covers every item of a material)
# name display name; color: its color (&#RRGGBB)
# cooldown seconds until it can be used again (default 0 = none)
# consume true = one item is spent per use (default); false = it stays
# uses N = each item lasts N uses, then breaks (0 or absent = no
# limit); overrides consume. Shown in the item lore.
# lore the item's own lore lines ({lore} in config.yml item.lore)
# safe-zone true = also works inside safe zones (only for abilities
# that touch nobody; default false)
# model resource-pack custom model data (optional)
#
# Types and their values (on hit = hit a player with the item):
# effects click: effects on you. effects: ["strength 2 6"] =
# effect, level, seconds (level and seconds default to 1 and 5)
# heal click: health (2 = one heart) plus optional effects
# hit-effects on hit: effects on the player you hit
# area-effects click: effects on the enemies within radius;
# self-effects on you
# freeze on hit: the player cannot move for duration seconds
# swap throw: you swap places if it hits (up to distance blocks)
# cage on hit: locks the player for duration seconds in a cage
# of block (+ a cobweb at the feet when cobweb: true)
# ninja-star click: takes you behind the last player that hit you
# (within window seconds) after delay seconds
# anti-pearl on hit: no ender pearls for duration seconds
# rocket, leap click: launches you (height, force); no fall damage
# for no-fall seconds
# shockwave click: knocks the enemies within radius away
# (force, height, damage)
# magnet click: pulls the enemies within radius to you (force)
# grapple fish (rod): pulls you to where the hook sticks
# (force per block, capped at max; no-fall seconds
# without fall damage)
# recall click: back to where you threw your last ender pearl
# (within window seconds)
# lightning click: lightning on the player you look at (range, damage)
# fireball click: shoots a fireball (speed); it burns no blocks
# scramble on hit: shuffles the player's hotbar
# tracker click: the enemies within radius glow for duration seconds
# silence on hit: no abilities for duration seconds
# wound on hit: no healing for duration seconds
# cleanse click: removes your negative effects and statuses
# thorns click: reflects percent % of the melee damage you take
# for duration seconds
# damage and health are in half hearts (2 = one heart), before armor.
# ============================================================
# sn:extensible-root
swapper:
enabled: true
type: swap
material: SNOWBALL
name: "Swapper"
color: "BC8FF"
cooldown: 30
distance: 15
lore:
- "&7 Throw it at a player and"
- "&7 you swap places."
trap:
enabled: true
type: cage
material: COBWEB
name: "Trap"
color: "&#BDBDBD"
cooldown: 60
duration: 4
block: GLASS
cobweb: true
lore:
- "&7 Hit a player to lock"
- "&7 them in a cage."
ninja-star:
enabled: true
type: ninja-star
material: NETHER_STAR
name: "Ninja star"
color: "&#B45CFF"
cooldown: 60
window: 15
delay: 3
lore:
- "&7 Takes you behind the last"
- "&7 player that hit you."
anti-pearl:
enabled: true
type: anti-pearl
material: ENDER_EYE
name: "Anti-pearl"
color: "AF77E"
cooldown: 45
duration: 15
lore:
- "&7 Hit a player and they cannot"
- "&7 throw pearls for a while."
freezer:
enabled: true
type: freeze
material: BLUE_ICE
name: "Freezer"
color: "FD8FF"
cooldown: 60
duration: 3
lore:
- "&7 Hit a player to leave"
- "&7 them frozen."
poison:
enabled: true
type: hit-effects
material: SPIDER_EYE
name: "Poison"
color: "BD65B"
cooldown: 40
effects: ["poison 2 5"]
lore:
- "&7 Hit a player to"
- "&7 poison them."
curse:
enabled: true
type: hit-effects
material: FERMENTED_SPIDER_EYE
name: "Curse"
color: "C6BFF"
cooldown: 45
effects: ["weakness 1 8", "slowness 1 8"]
lore:
- "&7 Hit a player to weaken"
- "&7 and slow them."
strength:
enabled: true
type: effects
material: BLAZE_POWDER
name: "Strength"
color: "&#FF6B61"
cooldown: 90
effects: ["strength 2 6"]
lore:
- "&7 Strength II for"
- "&7 6 seconds."
resistance:
enabled: true
type: effects
material: SHULKER_SHELL
name: "Resistance"
color: "&#E05CFF"
cooldown: 90
effects: ["resistance 3 5"]
lore:
- "&7 Resistance III for"
- "&7 5 seconds."
speed:
enabled: true
type: effects
material: SUGAR
name: "Speed"
color: "	EEFFF"
cooldown: 60
safe-zone: true
effects: ["speed 3 8"]
lore:
- "&7 Speed III for"
- "&7 8 seconds."
medkit:
enabled: true
type: heal
material: GLISTERING_MELON_SLICE
name: "Medkit"
color: "&#F27C7C"
cooldown: 120
health: 10
lore:
- "&7 Heals 5 hearts"
- "&7 instantly."
smoke-bomb:
enabled: true
type: area-effects
material: INK_SAC
name: "Smoke bomb"
color: "	A9A9A"
cooldown: 60
radius: 6
effects: ["blindness 1 4", "nausea 1 6"]
self-effects: ["speed 2 4"]
lore:
- "&7 Blinds the enemies nearby"
- "&7 and speeds you up to escape."
rocket:
enabled: true
type: rocket
material: FIREWORK_ROCKET
name: "Rocket"
color: "&#FF9F43"
cooldown: 45
height: 1.6
force: 0.6
no-fall: 8
lore:
- "&7 Launches you into the air,"
- "&7 with no fall damage."
leap:
enabled: true
type: leap
material: FEATHER
name: "Leap"
color: "&#E8FA4B"
cooldown: 20
safe-zone: true
height: 0.35
force: 1.6
no-fall: 4
lore:
- "&7 Dashes you toward where"
- "&7 you are looking."
shockwave:
enabled: true
type: shockwave
material: SLIME_BALL
name: "Shockwave"
color: "FC9A8"
cooldown: 60
radius: 5
force: 1.8
height: 0.5
damage: 2
lore:
- "&7 Knocks the enemies nearby"
- "&7 far away."
magnet:
enabled: true
type: magnet
material: LODESTONE
name: "Magnet"
color: "᨟FF"
cooldown: 60
radius: 8
force: 1.2
lore:
- "&7 Pulls the enemies nearby"
- "&7 toward you."
grapple:
enabled: true
type: grapple
material: FISHING_ROD
name: "Grapple"
color: "&#FFD24A"
cooldown: 15
consume: false
uses: 10
force: 0.35
max: 3
no-fall: 4
lore:
- "&7 Hook it into a block and"
- "&7 reel in to fly to it."
time-rewind:
enabled: true
type: recall
material: CLOCK
name: "Time rewind"
color: "�E0FF"
cooldown: 60
window: 15
lore:
- "&7 Takes you back to where you"
- "&7 threw your last pearl."
lightning:
enabled: true
type: lightning
material: LIGHTNING_ROD
name: "Lightning"
color: "&#FFE654"
cooldown: 60
range: 25
damage: 6
lore:
- "&7 Strikes the player you"
- "&7 are looking at."
fireball:
enabled: true
type: fireball
material: FIRE_CHARGE
name: "Fireball"
color: "&#FF5A1F"
cooldown: 30
speed: 1.5
lore:
- "&7 Shoots a fireball that"
- "&7 burns whoever it hits."
scrambler:
enabled: true
type: scramble
material: ECHO_SHARD
name: "Scrambler"
color: "&#FF5CC8"
cooldown: 60
lore:
- "&7 Hit a player to shuffle"
- "&7 their hotbar."
tracker:
enabled: true
type: tracker
material: COMPASS
name: "Tracker"
color: "�FF3B"
cooldown: 60
radius: 30
duration: 10
lore:
- "&7 The enemies nearby glow"
- "&7 and are seen from afar."
seal:
enabled: true
type: silence
material: AMETHYST_SHARD
name: "Seal"
color: "&#B28DFF"
cooldown: 60
duration: 5
lore:
- "&7 Hit a player and they cannot"
- "&7 use abilities for a while."
wound:
enabled: true
type: wound
material: REDSTONE
name: "Wound"
color: "&#D13B3B"
cooldown: 45
duration: 8
lore:
- "&7 Hit a player and they cannot"
- "&7 heal for a while."
cleanse:
enabled: true
type: cleanse
material: PRISMARINE_CRYSTALS
name: "Cleanse"
color: "CF5E4"
cooldown: 60
lore:
- "&7 Removes every negative"
- "&7 effect on you."
thorns:
enabled: true
type: thorns
material: PRISMARINE_SHARD
name: "Thorns"
color: "FBF6A"
cooldown: 90
duration: 6
percent: 35
lore:
- "&7 Reflects part of the melee"
- "&7 damage you take."guis/abilities.yml
# ============================================================
# SnPvpItems - abilities menu
# Opened by /pvpitems (when presentation.main is gui). Lists every enabled
# ability of abilities.yml with the look of its item and its cooldown state.
# Managed by SnLib: new keys merge in on boot, your edits are kept.
# The entry template is filled by the plugin; keep its placeholders as shipped:
# {id} {name} {type} {state}
# ============================================================
title: "₢f2&lAbilities"
# Ticks between refreshes of the open menu, so the cooldown state keeps counting down. 0 freezes it.
update-interval: 20
# Only plain left, right and shift clicks run the buttons; number keys and drops are ignored.
strict-clicks: true
# The abilities fill every "p" cell of the layout, page by page.
pagination: true
paged-key: p
# p abilities, < > pages, x close, f filler.
layout:
- "fffffffff"
- "fpppppppf"
- "fpppppppf"
- "fpppppppf"
- "fpppppppf"
- "<fffxfff>"
# Buttons of the layout; each one fills the cells of its key letter.
# sn:extensible
items:
filler:
material: GRAY_STAINED_GLASS_PANE
display-name: " "
key: f
close:
material: BARRIER
display-name: "&cClose"
key: x
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[close]"
previous-page:
material: ARROW
display-name: "₢f2Previous Page"
key: "<"
click-actions:
- "[previous-page]"
- "[sound] UI_BUTTON_CLICK"
nav-disabled:
material: GRAY_STAINED_GLASS_PANE
display-name: "&7No previous page"
lore:
- "&8You are on the first page"
next-page:
material: ARROW
display-name: "₢f2Next Page"
key: ">"
click-actions:
- "[next-page]"
- "[sound] UI_BUTTON_CLICK"
nav-disabled:
material: GRAY_STAINED_GLASS_PANE
display-name: "&7No next page"
lore:
- "&8You are on the last page"
templates:
# One ability. The plugin supplies the item itself (material, name, glow, model data and lore
# come from abilities.yml and config.yml item.*), so only the lore below is added after it.
# {state} is the Ready word of the lang file, or the time left on the ability's cooldown.
# Do not add display-name here: it would replace the item's own name.
entry:
material: BARRIER
lore:
- ""
- "&7Status: {state}"
click-actions:
- "[sound] UI_BUTTON_CLICK"The texts live in lang/messages_en.yml and lang/messages_es.yml. Set lang in config.yml to pick one.