此插件允许你对其他玩家隐身。
功能
- 使你完全对其他玩家不可见。
- 拥有 'simplevanish.see' 权限的玩家可以看到隐身的玩家。
- 在游戏中重载插件配置。
- 可配置隐身玩家的设置(例如:飞行、拾取物品等)。(+ 个人设置)
- 支持 PlaceholderAPI。
- 可在 english.yml 和 german.yml 中自定义消息。(你也可以创建自己的语言文件)
命令
/vanish – 切换你自己的隐身模式
/vanish <player> – 切换其他玩家的隐身模式
/vanish settings – 打开你的隐身设置菜单
/vanish toggle <setting> – 直接切换特定设置
/simplevanish reload – 重载插件配置
/simplevanish about – 显示插件信息
权限
simplevanish.use.self – 对自己使用 /vanish
simplevanish.use.other – 对他人使用 /vanish <player>
simplevanish.see – 查看隐身玩家
simplevanish.reload – 使用 /simplevanish reload
simplevanish.admin – 访问重载和关于命令
simplevanish.admin.update – 接收更新通知
simplevanish.settings – 访问设置菜单
simplevanish.setting.auto-vanish – 加入服务器时自动隐身
simplevanish.setting.invulnerable – 隐身期间获得无敌状态
simplevanish.setting.nightvision-effect – 隐身期间获得夜视效果
simplevanish.setting.clear-weather – 隐身期间强制清除天气
simplevanish.setting.item-pickup – 隐身期间拾取物品
simplevanish.setting.allow-flight – 隐身期间飞行
simplevanish.setting.silent-containers – 隐身期间无声地打开容器
占位符
- %simplevanish_vanished%: 玩家是否已隐身?
- %simplevanish_vanished_players%: 返回所有隐身玩家的数量
- %simplevanish_fake_playercount%: 返回玩家数量,但不包括隐身玩家
配置文件
查看 config.yml
# 此插件使用 MiniMessage 处理消息。
# 更多信息请访问 https://docs.adventure.kyori.net/minimessage.html
file-version: 1
# 每条消息前的前缀
prefix: "<#84F3D4><b>SimpleVanish</b> <dark_gray>⚡ <gray>"
# 使用的消息语言文件
langFile: 'english'
# 更新检查器设置
updateChecker:
# 当有新版本可用时向控制台发送消息
consoleMessage: true
# 当有新版本可用时向玩家发送消息
# 这需要 'simplevanish.admin.update' 权限或者是 OP
playerMessage: true
# 操作栏设置
actionbar:
# 是否启用操作栏?
enabled: true
# 玩家隐身时的消息
on: "<gray>Vanish <dark_gray>- <green>ON"
# 玩家可见时的消息
off: "<gray>Vanish <dark_gray>- <red>OFF"
# 玩家是否可以定义自己的隐身设置?
personalSettings: true
# 未启用个人设置的玩家的默认设置
defaultSettings:
# 玩家加入服务器时是否自动隐身?
auto-vanish: true
# 玩家隐身时是否无敌?
invulnerable: true
# 玩家隐身时是否获得夜视效果?
nightvision-effect: false
# 玩家进入隐身状态时是否清除天气?
# 这仅影响隐身玩家的天气
clear-weather: false
# 隐身玩家是否可以拾取物品?
item-pickup: true
# 是否允许隐身玩家飞行?
allow-flight: true
# 隐身玩家是否能在不打开容器的情况下查看容器预览?
silent-containers: true
# 隐身玩家是否能在不打开的情况下查看其他玩家的物品栏预览?
player-inv-inspector: true
# 额外隐藏设置(隐身玩家应在哪些地方隐藏?)
extraHidingSettings:
# 是否在服务器列表中将隐身玩家从玩家计数中隐藏?
serverList: true
# 在睡眠检查中是否忽略隐身玩家?
sleeping: true
# 是否隐藏隐身玩家的加入消息?
joinMessage: true
# 是否隐藏隐身玩家的离开消息?
quitMessage: true
# 是否隐藏隐身玩家的死亡消息?
deathMessage: true
# 是否隐藏隐身玩家的进度消息?
advancementMessage: true
# 过滤隐身玩家的 Tab 补全?
tabCompletions: true
# 占位符设置
placeholders:
# 玩家隐身状态的占位符
vanished:
# 玩家隐身时使用的占位符
true: "<gray>[<yellow>V<gray>]"
# 玩家可见时使用的占位符
false: ""
# 显示隐身玩家数量的占位符
vanished_players:
# 没有隐身玩家时使用的占位符
none: "<red>None"
# 有隐身玩家时使用的占位符
count: "<yellow>%count%"
# 显示所有非隐身玩家的占位符
fake_playercount:
# 没有非隐身玩家时使用的占位符
none: "<red>None"
# 有非隐身玩家时使用的占位符
count: "<yellow>%count%"
查看 english.yml
# 此插件使用 MiniMessage 处理消息。
# 更多信息请访问 https://docs.adventure.kyori.net/minimessage.html
file-version: 1
# 通用消息
general:
noPlayer: "<gray>你必须是一名<red>玩家<gray>才能执行此命令!"
noPerms: "<gray>你<red>没有权限<gray>执行此命令!"
其他消息
other:
updateChecker: "<gray>有一个<yellow>更新<gray>可用!你正在使用的版本是<red>v%current-version%<gray>,最新版本为<green>v%latest-version%<gray>!"
symbol:
true: "<green>✔"
false: "<red>✘"
hoverMessage: "<gray>点击切换"
setting-names:
auto-vanish: "自动消失"
invulnerable: "无敌"
nightvision-effect: "夜视效果"
clear-weather: "清除天气"
item-pickup: "物品拾取"
allow-flight: "允许飞行"
silent-containers: "静默容器"
player-inv-inspector: "玩家背包检查器"
silent-containers-title: "%container% <red>(消失)"
player-inv-inspector-title: "%player%'s Inventory <red>(消失)"
命令消息
commands:
/simplevanish 命令的消息(主插件命令)
simplevanish:
usage: "<gray>请使用 <red>/simplevanish <about/reload><gray>!"
about: "<gray>SimpleVanish v%version% <dark_gray>- <gray>%author%"
reload:
reloading: "<yellow>正在重载 <gray>SimpleVanish..."
reloaded: "<green>成功重载 <gray>SimpleVanish!<dark_gray>(%time%ms)"
error: "<gray>重载 SimpleVanish 时发生 <red>错误<gray>!请检查控制台以获取详细信息。"
vanish:
usage: "<gray>请使用 <red>/vanish <?player/settings/toggle> <?setting><gray>!"
settings:
noPerms: "<gray>你<red>没有权限<gray>更改此设置!<dark_gray>(%setting%)"
prefix:
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- "<gray>----- <aqua>设置 <gray>-----"
- " "
entries:
- "<gray>%symbol% <white>%setting%"
suffix:
- " "
- "<gray>点击符号以切换。"
- " "
enabled: "<white>%player% <gray>现已进入<green>隐身状态<gray>!"
disabled: "<white>%player% <gray>现在<red>可见<gray>!"
playerNotFound: "<gray>未找到指定的玩家<red>!"
</details>
<details>
<summary>查看 german.yml</summary>
此插件使用 MiniMessage 进行消息传递。
更多信息请参见
file-version: 1
通用消息
general:
noPlayer: "<gray>只有<red>玩家<gray>才能执行此操作!"
noPerms: "<gray>你<red>没有权限<gray>使用此命令!"
# 其他消息
other:
updateChecker: "<gray>有一个 <yellow>可用更新<gray>!当前版本为 <red>v%current-version%<gray>,最新版本为 <green>v%latest-version%<gray>!"
symbol:
true: "<green>✔"
false: "<red>✘"
hoverMessage: "<gray>点击以切换"
setting-names:
auto-vanish: "自动消失"
invulnerable: "无敌"
nightvision-effect: "夜视效果"
clear-weather: "晴朗天气"
item-pickup: "拾取物品"
allow-flight: "允许飞行"
silent-containers: "静默容器"
player-inv-inspector: "玩家物品栏检查器"
silent-containers-title: "%container% <red>(隐身)"
player-inv-inspector-title: "%player% 的物品栏 <red>(隐身)"
# 命令消息
commands:
# /simplevanish 命令的消息(插件主命令)
simplevanish:
usage: "<gray>请使用 <red>/simplevanish <about/reload><gray>!"
about: "<gray>SimpleVanish v%version% <dark_gray>- <gray>%author%"
reload:
reloading: "<yellow>SimpleVanish <gray>正在重载<gray>..."
reloaded: "<green>SimpleVanish <gray>已成功重载! <dark_gray>(%time%ms)"
error: "<gray>在重载 SimpleVanish 时发生了一个 <red>错误<gray>!请查看控制台以获取详细信息。"
vanish:
usage: "<gray>请使用 <red>/vanish <?玩家/设置/切换> <?设置项><gray>!"
settings:
noPerms: "<gray>你 <red>没有权限<gray>更改此设置! <dark_gray>(%setting%)"
prefix:
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- "<gray>----- <aqua>设置 <gray>-----"
- " "
entries:
- "<gray>%symbol% <white>%setting%"
suffix:
- " "
- "<gray>点击符号以切换。"
- " "
enabled: "<white>%player% <gray>现在处于 <green>隐身状态<gray>!"
disabled: "<white>%player% <gray>现在处于 <red>可见状态<gray>!"
playerNotFound: "<gray>指定的玩家 <red>未被找到<gray>!"
开发者须知:
当玩家隐身时,会为其添加一个简单的元数据条目 "vanished"。
你可以像这样检查玩家是否隐身:
if (player.hasMetadata("vanished")) {
// 玩家处于隐身状态
}
这让你可以轻松地将隐身状态集成到你自己的插件或功能中。
联系方式
如果您遇到任何问题或漏洞,或者有新增功能的需求,请通过 Discord 联系我,或加入我的 Discord 服务器。
我的 Discord 用户名是 Losterixx。
我的 Discord 服务器:链接
This plugin allows you to make yourself invisible to other players.
Features
- Make youreself completly inviseble to others.
- Players with 'simplevanish.see' can see vanished players.
- Reload the plugin in-game.
- Configurable settings for vanished players (e.g., fly, item pickup ...). (+ Personal settings)
- PlaceholderAPI Support
- Customizable messages in english.yml & german.yml. (You can also create own lang-files)
Commands
/vanish – Toggle vanish mode for yourself
/vanish <player> – Toggle vanish mode for another player
/vanish settings – Open your vanish settings menu
/vanish toggle <setting> – Toggle a specific setting directly
/simplevanish reload – Reload the plugin configuration
/simplevanish about – Show plugin information
Permissions
simplevanish.use.self – Use /vanish for yourself
simplevanish.use.other – Use /vanish <player>
simplevanish.see – See vanished players
simplevanish.reload – Use /simplevanish reload
simplevanish.admin – Access reload and about commands
simplevanish.admin.update – Receive update notifications
simplevanish.settings – Access settings menu
simplevanish.setting.auto-vanish – Enable auto-vanish on join
simplevanish.setting.invulnerable – Become invulnerable while vanished
simplevanish.setting.nightvision-effect – Get night vision while vanished
simplevanish.setting.clear-weather – Force clear weather while vanished
simplevanish.setting.item-pickup – Pick up items while vanished
simplevanish.setting.allow-flight – Fly while vanished
simplevanish.setting.silent-containers – Open containers silently while vanished
Placeholders
- %simplevanish_vanished%: Is the player Vanished?
- %simplevanish_vanished_players%: Returns the number of all vanished players
- %simplevanish_fake_playercount%: Return the playercount but without vanished players
Configs
View config.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html
file-version: 1
# The prefix before every message
prefix: "<#84F3D4><b>SimpleVanish</b> <dark_gray>⚡ <gray>"
# The messages file to use
langFile: 'english'
# Settings for the update checker
updateChecker:
# Send a message to the console when a new version is available
consoleMessage: true
# Send a message to the player when a new version is available
# This requires the permission 'simplevanish.admin.update' or to be an OP
playerMessage: true
# Settings for the action bar
actionbar:
# Should the action bar be enabled?
enabled: true
# Message when the player is vanished
on: "<gray>Vanish <dark_gray>- <green>ON"
# Message when the player is visible
off: "<gray>Vanish <dark_gray>- <red>OFF"
# Should players be able to define their own vanish settings?
personalSettings: true
# Default settings for players who do not have personal settings enabled
defaultSettings:
# Should the player automatically vanish when they join the server?
auto-vanish: true
# Should the player be invulnerable while vanished?
invulnerable: true
# Should the player get the night vision effect while vanished?
nightvision-effect: false
# Should the weather be cleared when the player enters vanish?
# This affects only the weather for the vanished player
clear-weather: false
# Should vanished players be able to pick up items?
item-pickup: true
# Should vanished players be allowed to fly?
allow-flight: true
# Should the player be able to see a preview of containers while vanished without opening them?
silent-containers: true
# Should the player be able to see a preview of inventories from other players while vanished?
player-inv-inspector: true
# Extra hiding settings (Where should vanished players be hidden?)
extraHidingSettings:
# Should vanished players be hidden from the player-count on the server list?
serverList: true
# Should vanished players be ignored for sleeping checks?
sleeping: true
# Should the joinMessages for vanished players be hidden?
joinMessage: true
# Should the quitMessages for vanished players be hidden?
quitMessage: true
# Should the deathMessages for vanished players be hidden?
deathMessage: true
# Should the advancement messages for vanished players be hidden?
advancementMessage: true
# Filter tab-completions for vanished players?
tabCompletions: true
# Placeholder settings
placeholders:
# Placeholder for the vanished state of the player
vanished:
# The placeholder to use when the player is vanished
true: "<gray>[<yellow>V<gray>]"
# The placeholder to use when the player is visible
false: ""
# Placeholder to show the vanished player count
vanished_players:
# The placeholder to use when there are no vanished players
none: "<red>None"
# The placeholder to use when there are vanished players
count: "<yellow>%count%"
# Placeholder to show all non-vanished players
fake_playercount:
# The placeholder to use when there are no non-vanished players
none: "<red>None"
# The placeholder to use when there are non-vanished players
count: "<yellow>%count%"
View english.yml
# This plugin utilizes MiniMessage for messages.
# For more information, visit https://docs.adventure.kyori.net/minimessage.html
file-version: 1
# General messages
general:
noPlayer: "<gray>You <red>must be a player<gray> to execute this command!"
noPerms: "<gray>You <red>do not have permission<gray> to execute this command!"
# Other messages
other:
updateChecker: "<gray>An <yellow>update <gray>is available! You are using version <red>v%current-version%<gray>, the latest version is <green>v%latest-version%<gray>!"
symbol:
true: "<green>✔"
false: "<red>✘"
hoverMessage: "<gray>Click to toggle"
setting-names:
auto-vanish: "Auto Vanish"
invulnerable: "Invulnerable"
nightvision-effect: "Nightvision"
clear-weather: "Clear Weather"
item-pickup: "Item Pickup"
allow-flight: "Allow Flight"
silent-containers: "Silent Containers"
player-inv-inspector: "Player Inv Inspector"
silent-containers-title: "%container% <red>(Vanish)"
player-inv-inspector-title: "%player%'s Inventory <red>(Vanish)"
# Command messages
commands:
# Messages for the /simplevanish command (main plugin command)
simplevanish:
usage: "<gray>Please use <red>/simplevanish <about/reload><gray>!"
about: "<gray>SimpleVanish v%version% <dark_gray>- <gray>%author%"
reload:
reloading: "<yellow>Reloading <gray>SimpleVanish..."
reloaded: "<green>Successfully reloaded <gray>SimpleVanish! <dark_gray>(%time%ms)"
error: "<gray>An <red>error occurred <gray>while reloading SimpleVanish! Check the console for details."
vanish:
usage: "<gray>Please use <red>/vanish <?player/settings/toggle> <?setting><gray>!"
settings:
noPerms: "<gray>You <red>do not have permission<gray> to change this setting! <dark_gray>(%setting%)"
prefix:
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- "<gray>----- <aqua>Settings <gray>-----"
- " "
entries:
- "<gray>%symbol% <white>%setting%"
suffix:
- " "
- "<gray>Click the symbol to toggle."
- " "
enabled: "<white>%player% <gray>is now <green>vanished<gray>!"
disabled: "<white>%player% <gray>is now <red>visible<gray>!"
playerNotFound: "<gray>The given player <red>could not be found<gray>!"
View german.yml
# Dieses Plugin verwendet MiniMessage für Nachrichten.
# Weitere Informationen findest du unter https://docs.adventure.kyori.net/minimessage.html
file-version: 1
# Generelle Nachrichten
general:
noPlayer: "<gray>Dies können <red>nur Spieler<gray> ausführen!"
noPerms: "<gray>Du hast <red>keine Berechtigung<gray> für diesen Befehl!"
# Andere Nachrichten
other:
updateChecker: "<gray>Es ist ein <yellow>Update verfügbar<gray>! Die momentane Version ist die <red>v%current-version%<gray>, die neuste Version ist die <green>v%latest-version%<gray>!"
symbol:
true: "<green>✔"
false: "<red>✘"
hoverMessage: "<gray>Klicke, um umzuschalten"
setting-names:
auto-vanish: "Auto-Vanish"
invulnerable: "Unverwundbar"
nightvision-effect: "Nachtsicht"
clear-weather: "Klares Wetter"
item-pickup: "Items aufsammeln"
allow-flight: "Fliegen erlaubt"
silent-containers: "Silent Containers"
player-inv-inspector: "Spieler Inv-Inspektor"
silent-containers-title: "%container% <red>(Vanish)"
player-inv-inspector-title: "%player%'s Inventar <red>(Vanish)"
# Befehlsnachrichten
commands:
# Nachrichten für den /simplevanish Befehl (Hauptbefehl des Plugins)
simplevanish:
usage: "<gray>Bitte nutze <red>/simplevanish <about/reload><gray>!"
about: "<gray>SimpleVanish v%version% <dark_gray>- <gray>%author%"
reload:
reloading: "<yellow>SimpleVanish <gray>wird neugeladen<gray>..."
reloaded: "<green>SimpleVanish wurde <gray>erfolgreich neugeladen! <dark_gray>(%time%ms)"
error: "<gray>Ein <red>Fehler ist aufgetreten<gray> beim Neuladen von SimpleVanish! Überprüfe die Konsole für Details."
vanish:
usage: "<gray>Bitte nutze <red>/vanish <?Spieler/settings/toggle> <?Einstellung><gray>!"
settings:
noPerms: "<gray>Du hast <red>keine Berechtigung<gray> diese Einstellung zu ändern! <dark_gray>(%setting%)"
prefix:
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- " "
- "<gray>----- <aqua>Einstellungen <gray>-----"
- " "
entries:
- "<gray>%symbol% <white>%setting%"
suffix:
- " "
- "<gray>Klicke auf das Symbol, um umzuschalten."
- " "
enabled: "<white>%player% <gray>ist nun <green>unsichtbar<gray>!"
disabled: "<white>%player% <gray>ist nun <red>sichtbar<gray>!"
playerNotFound: "<gray>Der angegebene Spieler <red>konnte nicht gefunden werden<gray>!"
For developers:
When a player is vanished, a simple metadata entry "vanished" is added to the player.
You can check if a player is vanished like this:
if (player.hasMetadata("vanished")) {
// player is vanished
}
This lets you easily integrate vanish state into your own plugins or features.
Contact
If you encounter any issues or bugs, or have a
request for a new feature, please contact me via Discord or join my Discord-Server.
My discord-name is Losterixx.
My Discord-Server: Link
评论 0
登录后参与评分
还没有评论,来抢沙发吧