%name% does not get parsed into DiscordSRV
Used Version
ShowItem v1.6.20 (build 463)
Config
# If the messages should try finding a text icon for this item from WolfieMarios Resourcepack (http://imgur.com/a/oHvbX)
texticon-rp: false
# If you have WorldResourcepacks (https://s.moep.tv/wrp) or ForceResourcepacks (https://s.moep.tv/frp) installed
# then you can specify which pack contains the icons. So if WRP/FRP has not send a pack to the player or a pack
# that does not include the icons according to the below list then it wont show the icon characters to him.
# Set to an empty list [] in order to completely disable this compatibility.
packs-with-icons: []
# - serverpack
# If you have issues with item names not translating and showing their id you can enable this option
# and use the manual mapping in transmapping.yml for all items
use-translation-mapping: false
# This option sets whether it should try to use the Bungee chat api when on a spigot server
# It does nothing on a normal craftbukkit
use-fancy-msg: false
# The default radius for the /showitem (/show, /si) command if no -r(adius) parameter is specified
# Can also be "all" or "world" if the command without argument should target everyone (in the world)
default-radius: 16
# Disable the sending of metrics data
disable-metrics: false
# Whether or not to check for updates. Ingame notifications are controlled by the showitem.updatenotification permission.
update-check: false
# Config options for the help functionality in the inventory
# In order to use this players need the showitem.helpclick permission
help-click:
# Which type of click should send the help
# LEFT, SHIFT_LEFT, RIGHT, SHIFT_RIGHT, MIDDLE, NUMBER_KEY (see numbers), DOUBLE_CLICK, DROP, CONTROL_DROP
click-types:
- MIDDLE
# Which slots should send the help message
# ARMOR, CONTAINER, QUICKBAR (hotbar)
# Star is wildcard for every slot
slot-types:
- "*"
# If click is of type NUMBER_KEY then these numbers will trigger the help
# Star is wildcard for every number
numbers:
- "*"
chat:
variables:
# Which variables we should replace in the chat with the player's current item
# %slot% is the place where the slot number should be
- "[item]"
- "[i]"
- "{i}"
- "{item}"
commands:
# A list of commands where we should replace the variable with the item info
- "msg"
- "say"
- "me"
- "ch"
# Maximum count of variables per message
# Bypass with the showitem.chat.spam permission
# 0 = unlimited
max-per-message: 1
# How to display variables that exceed the max count
# An empty string removes them completely
overflow-display: ""
# Allow variable with no item in hand?
# Uses lang.error.noitem as error message when false
show-empty-hand: true
# How should packets be handled? (requires a restart)
# Possible values:
# auto - automatically detect the best solution
# ProtocolLib - use ProtocolLib (if installed)
# nms - directly access native Minecraft server code
# reflection - access Minecraft server via reflections
packet-handler: auto
# Priority of the ProtocolLib listener (requires restart)
# Possible values: lowest, low, normal, high, highest
listener-priority: highest
# Filter strings out of item names and lore
filter:
# Strings are compared case-insensitive
# r= prefix indicates that the string should be handled as a regex
list:
- "jndi"
# Replace with the following string.
# If the string is only one character long it will fill up the word's length with it
replace: "I just tried to crash the server! Ban me!"
# Block certain items from getting shown.
# Can be bypassed with showitem.blockbypass and showitem.blockbypass.<blockname>
block:
# Whether or not this match is inverted (match only items that don't match the values)
inverted: false
# List of materials to block
# Materials: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
material: []
# - STONE
# - DIAMOND_SWORD
# Block items with certain strings in their names from getting shown (case-insensitive)
# r= prefix indicates that the string should be handled as a regex
name: []
# - "name 1"
# - "r=name \\d"
# Block items with certain strings in the lore from getting shown (case-insensitive)
# r= prefix indicates that the string should be handled as a regex
lore: []
# - "name 1"
# - "r=name \\d"
# Item durability value, can use comparators, <x, >x, =x, !=x or just equal a single number
# An empty string matches all durabilities
# Also supports chaining of comparators with a comma. E.g. >5,<20 for between 5 and 20
durability: ""
# Block items with the unbreakable tag
unbreakable: false
# Block items with certain enchantments, can block both all or only certain levels
# Names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
# Can take the same comparators as the durability for the level
enchantments: []
# - "DAMAGE_ALL"
# - "ARROW_DAMAGE:>2"
# Serialize the item to YAML and filter it with regex.
# This is only for advanced users and is less efficient, leave empty to disable.
serialized: ""
specific:
# Block only specific items that match certain block types. All global types can be used.
# Can by bypassed with showitem.blockbypass.specific.<name> e.g. showitem.blockbypass.specific.special-sword
special-sword:
material:
- DIAMOND_SWORD
name:
- "Phoenix616's Sword"
unbreakable: true
enchantments:
- "DAMAGE_ALL:>9000"
# Add multiple matcher, e.g. an invenerted matcher that
# blocks everything that isn't in this matcher
# inverted-match:
# inverted: true
# material:
# - WRITTEN_BOOK
cooldowns:
# Cooldowns for the radius and the direct show command in seconds.
# 0 to disable cooldowns entirely.
# Exempt permission: showitem.cooldownexempt
all: 0
world: 0
radius: 0
direct: 0
chat: 0
# Whether or not we should attempt to send the nickname instead of the username
# This will also include colors/prefixes of the team the player is in!
use-nick-name: true
lang:
no-permission: "&cYou don't have the permission %permission%"
count: " x%count%"
item:
# The different texts that display the item
# The %icon% variable will only be displayed when texticonrp is set to true
# The %count% variable will be replaced with lang.count if more than 1 item is shown
# The string will be automatically colored but it tries to respect custom codes
unnamed: "&8[&6%icon%%type%%count%&8]&f&r"
named: "&8[&6%icon%%name%%count%&8]&f&r"
none: "&8[&6Empty&8]&r&f&r"
# The %type% variable is also usable in the named string for example like this:
# named: "%icon%%type% &6named %name%
slot:
numbered: " from slot %slot%"
hand: ""
all:
self: "You show %item%%slot% to everyone!"
target: "%player% shows everyone %item%%slot%!"
world:
self: "You show %item%%slot% to everyone in your world!"
target: "%player% shows %item%%slot% to everyone in his world!"
radius:
self: "You hold up %item%%slot%!%customradius%"
custom: "&8(View distance: %radius%&8 blocks)"
target: "%player% holds up %item%%slot%!"
player:
self: "You show %player% %item%%slot%"
target: "%player% shows you %item%%slot%"
help:
item-info: "&eOptions for showing %item%&e from slot %slot%:"
suggest-hover: "&9Click to insert &f%insert%&9 into input"
chat: "&e> &6Write &f%variable%&6 into chat."
player: "&e> &6Show a specific player: &f%command%"
default: "&e> &6Show people in a %radius% block radius: &f%command%"
radius: "&e> &6Show people in a custom radius: &f%command%"
world: "&e> &6Show to everyone in your world: &f%command%"
all: "&e> &6Show every online player: &f%command%"
error:
no-item: "&cYou don't have an item to show in that slot. :("
invalid-slot: "&e%input% &cis not a valid slot!"
item-blocked: "&cYou are not allowed to show this item! (Blocked by %definition%&c)"
player-offline: "&cThe player %player%&c is not online"
noone-around: "&cThere are no players around which could see your item :("
cooldown: "&cYou have to wait %remaining%&c more seconds before showing another item!"
Environment description
Purpur-1632 (1.18.2) on Java 17.0.3+7
Full Log
N/A
What other programs/plugins are you running?
DiscordSRV v1.26.0-SNAPSHOT
What is happening?
What did you expect to happen?
Additional context
N/A
Edited by partydev