VanillaCommandAdvance
适用于 Paper 和 Folia 的插件,将原版的 /gamemode 和 /tp 命令替换为自定义版本:每种模式每种传送类型拥有独立的权限、自定义别名以及可自定义的服务端消息。
支持版本:1.21.x, 26.1, 26.1.x, 26.x
中文说明
/gamemode
用法与原版一致:/gamemode <模式> [玩家]。模式名称可以任意输入,例如 creative、c 或 1。默认提供别名 /gm,因此使用 /gm c 即可。补全提示中仅显示该玩家拥有权限的模式。
| 权限 |
功能说明 |
vanillacommandadvance.gamemode.survival |
生存模式 |
vanillacommandadvance.gamemode.creative |
创造模式 |
vanillacommandadvance.gamemode.adventure |
冒险模式 |
vanillacommandadvance.gamemode.spectator |
旁观者模式 |
vanillacommandadvance.gamemode.others |
修改其他玩家的模式 |
/tp
支持所有原版传送方式:传送到玩家、通过坐标传送(包括 ~ 和 ^)、一名玩家传送到另一名玩家,以及使用 @a 和 @e 选择器。在原版基础上,坐标后可指定目标世界:/tp 0 100 0 world_nether。
默认情况下,只有执行命令的玩家能看到传送消息。此行为由 silent-target 参数控制。
| 权限 |
功能说明 |
vanillacommandadvance.tp.self |
传送自己 |
vanillacommandadvance.tp.others |
传送其他玩家和实体 |
vanillacommandadvance.tp.coords |
通过坐标传送 |
vanillacommandadvance.tp.worlds |
在不同世界间传送 |
vanillacommandadvance.tp.silent |
被传送的玩家不会收到任何消息 |
配置文件
可以禁用任一命令,此时服务器将恢复使用原版命令。可以为每个命令设置独立的别名。
所有消息均位于 messages.yml 文件中,并使用 MiniMessage 格式编写。可以使用占位符 <player>、<target>、<sender>、<gamemode>、<x>、<y>、<z> 和 <world>。
执行 /vca reload 可在不重启服务器的情况下重新加载消息和配置。仅启用/禁用命令及设置别名需要重启服务器才能生效。
Folia 和 API
在 Folia 上,模式切换和传送操作均在玩家所属的区域线程中执行,符合预期规范。传送通过 teleportAsync 实现,从而在不阻塞服务器的情况下加载区块。
插件提供了两个可取消的事件。在 CommandGameModeEvent 中可以替换目标模式,在 CommandTeleportEvent 中可以替换传送目的地。
English
/gamemode
Works the usual way: /gamemode <mode> [players]. The mode can be typed however you like: creative, c or 1. There's a /gm alias by default, so /gm c is enough. Tab completion only shows the modes the player has permission for.
| Permission |
What it allows |
vanillacommandadvance.gamemode.survival |
Survival mode |
vanillacommandadvance.gamemode.creative |
Creative mode |
vanillacommandadvance.gamemode.adventure |
Adventure mode |
vanillacommandadvance.gamemode.spectator |
Spectator mode |
vanillacommandadvance.gamemode.others |
Changing other players' mode |
/tp
Every vanilla form works: to a player, by coordinates (including ~ and ^), one player to another, and the @a and @e selectors. On top of vanilla, you can put a world after the coordinates: /tp 0 100 0 world_nether.
By default only the person who ran the command sees the teleport message. That's what silent-target controls.
| Permission |
What it allows |
vanillacommandadvance.tp.self |
Teleporting yourself |
vanillacommandadvance.tp.others |
Teleporting other players and entities |
vanillacommandadvance.tp.coords |
Teleporting by coordinates |
vanillacommandadvance.tp.worlds |
Teleporting between worlds |
vanillacommandadvance.tp.silent |
The teleported player never gets a message |
Config
Any of the commands can be turned off, and then the vanilla one is back on the server. Each command gets its own aliases.
Every message lives in messages.yml and is written in MiniMessage. You can use the placeholders <player>, <target>, <sender>, <gamemode>, <x>, <y>, <z> and <world>.
/vca reload reloads messages and settings without a restart. Only turning commands on or off and aliases need a restart to apply.
Folia and API
On Folia, mode changes and teleports run on the player's region thread, the way they should. Teleports go through teleportAsync, so the chunk loads without stalling the server.
There are two cancellable events. In CommandGameModeEvent you can swap the mode, and in CommandTeleportEvent the destination.
权限列表
vanillacommandadvance.tp.self — 传送自己
vanillacommandadvance.tp.others — 传送其他玩家和实体
vanillacommandadvance.tp.coords — 通过坐标传送
vanillacommandadvance.tp.worlds — 在不同世界间传送
vanillacommandadvance.tp.silent — 被传送的玩家不会收到任何消息
⚙️ 配置选项
- 可禁用任一命令,禁用后恢复使用原版命令
- 支持为每个命令设置独立别名
- 所有文本位于
messages.yml 中(支持 MiniMessage 格式,可使用占位符 <player>、<target>、<sender>、<gamemode>、<x>、<y>、<z>、<world>)
- 执行
/vca reload 可在不重启服务器的情况下重新加载文本和配置;启用/禁用命令及设置别名需重启服务器后生效
🚀 Folia 支持与 API
- 完全支持 Folia:模式切换和传送操作在玩家所属的区域线程中执行
- 通过
teleportAsync 进行传送:在不阻塞服务器的情况下加载区块
- 提供两个可取消的事件:
CommandGameModeEvent(可替换目标模式)和 CommandTeleportEvent(可替换传送目的地)
🇬🇧 English
🎮 /gamemode
/gamemode <mode> [players]. Any input format works: creative, c, 1. The default alias is /gm, so /gm c works too. Suggestions only show the modes the player has permission for.
权限
vanillacommandadvance.gamemode.survival
vanillacommandadvance.gamemode.creative
vanillacommandadvance.gamemode.adventure
vanillacommandadvance.gamemode.spectator
vanillacommandadvance.gamemode.others — 更改其他玩家的模式
🧭 /tp
支持所有原版形式:传送到玩家、通过坐标(包括 ~ 和 ^)、玩家到玩家、@a 和 @e 选择器。坐标后可跟随世界名称:/tp 0 100 0 world_nether。默认情况下,只有发送者能看到消息(静默目标)。
权限
vanillacommandadvance.tp.self — 传送自己
vanillacommandadvance.tp.others — 传送其他玩家和实体
vanillacommandadvance.tp.coords — 通过坐标传送
vanillacommandadvance.tp.worlds — 在世界之间传送
vanillacommandadvance.tp.silent — 被传送的玩家不会收到任何消息
⚙️ 配置
- 可以禁用任何命令(回退到原版行为)
- 为每个命令设置自定义别名
- 所有文本位于
messages.yml 中(使用 MiniMessage 格式,占位符 <player>、<target>、<sender>、<gamemode>、<x>、<y>、<z>、<world>)
/vca reload 可在不重启的情况下重新加载文本和设置。启用命令和别名的操作需要在重启后生效
🚀 Folia / API
- 完全支持 Folia:模式更改和传送在玩家所在的区域线程上运行
- 传送使用
teleportAsync:区块加载时不会阻塞服务器
- 可取消的
CommandGameModeEvent(可替换模式)和 CommandTeleportEvent(可替换目的地)
VanillaCommandAdvance
Плагин для Paper и Folia, который заменяет ванильные /gamemode и /tp на свои версии: отдельное право на каждый режим и каждый вид телепорта, свои алиасы и сообщения, которые можно переписать под сервер.
Версии: 1.21.x, 26.1, 26.1.x, 26.x
Русский
/gamemode
Пишется как обычно: /gamemode <режим> [игроки]. Режим можно ввести как удобно: creative, c или 1. По умолчанию есть алиас /gm, так что хватит и /gm c. В подсказках игрок видит только те режимы, на которые у него есть право.
| Право |
Что даёт |
vanillacommandadvance.gamemode.survival |
Режим выживания |
vanillacommandadvance.gamemode.creative |
Творческий режим |
vanillacommandadvance.gamemode.adventure |
Режим приключения |
vanillacommandadvance.gamemode.spectator |
Режим наблюдателя |
vanillacommandadvance.gamemode.others |
Менять режим другим игрокам |
/tp
Работают все ванильные варианты: к игроку, по координатам (в том числе с ~ и ^), одного игрока к другому, селекторы @a и @e. Сверх ванилы после координат можно указать мир: /tp 0 100 0 world_nether.
По умолчанию сообщение о телепорте видит только тот, кто ввёл команду. За это отвечает параметр silent-target.
| Право |
Что даёт |
vanillacommandadvance.tp.self |
Телепортироваться самому |
vanillacommandadvance.tp.others |
Телепортировать других игроков и сущности |
vanillacommandadvance.tp.coords |
Телепортироваться по координатам |
vanillacommandadvance.tp.worlds |
Телепортироваться между мирами |
vanillacommandadvance.tp.silent |
Телепортированному никогда не приходит сообщение |
Конфиг
Любую из команд можно выключить, тогда на сервере снова работает ванильная. Для каждой команды задаются свои алиасы.
Все сообщения лежат в messages.yml и пишутся в MiniMessage. Можно использовать плейсхолдеры <player>, <target>, <sender>, <gamemode>, <x>, <y>, <z> и <world>.
/vca reload перечитывает сообщения и настройки без рестарта. Только включение команд и алиасы вступают в силу после рестарта.
Folia и API
На Folia смена режима и телепорт выполняются в потоке региона игрока, как и положено. Телепорт идёт через teleportAsync, поэтому чанк подгружается, а сервер при этом не встаёт.
Плагин кидает два отменяемых события. В CommandGameModeEvent можно подменить режим, в CommandTeleportEvent — точку назначения.
English
/gamemode
Works the usual way: /gamemode <mode> [players]. The mode can be typed however you like: creative, c or 1. There's a /gm alias by default, so /gm c is enough. Tab completion only shows the modes the player has permission for.
| Permission |
What it allows |
vanillacommandadvance.gamemode.survival |
Survival mode |
vanillacommandadvance.gamemode.creative |
Creative mode |
vanillacommandadvance.gamemode.adventure |
Adventure mode |
vanillacommandadvance.gamemode.spectator |
Spectator mode |
vanillacommandadvance.gamemode.others |
Changing other players' mode |
/tp
Every vanilla form works: to a player, by coordinates (including ~ and ^), one player to another, and the @a and @e selectors. On top of vanilla, you can put a world after the coordinates: /tp 0 100 0 world_nether.
By default only the person who ran the command sees the teleport message. That's what silent-target controls.
| Permission |
What it allows |
vanillacommandadvance.tp.self |
Teleporting yourself |
vanillacommandadvance.tp.others |
Teleporting other players and entities |
vanillacommandadvance.tp.coords |
Teleporting by coordinates |
vanillacommandadvance.tp.worlds |
Teleporting between worlds |
vanillacommandadvance.tp.silent |
The teleported player never gets a message |
Config
Any of the commands can be turned off, and then the vanilla one is back on the server. Each command gets its own aliases.
Every message lives in messages.yml and is written in MiniMessage. You can use the placeholders <player>, <target>, <sender>, <gamemode>, <x>, <y>, <z> and <world>.
/vca reload reloads messages and settings without a restart. Only turning commands on or off and aliases need a restart to apply.
Folia and API
On Folia, mode changes and teleports run on the player's region thread, the way they should. Teleports go through teleportAsync, so the chunk loads without stalling the server.
There are two cancellable events. In CommandGameModeEvent you can swap the mode, and in CommandTeleportEvent the destination.
Права
vanillacommandadvance.tp.self — телепорт самого себя
vanillacommandadvance.tp.others — телепорт других игроков и сущностей
vanillacommandadvance.tp.coords — телепорт по координатам
vanillacommandadvance.tp.worlds — телепорт между мирами
vanillacommandadvance.tp.silent — телепортируемому никогда не приходит сообщение
⚙️ Конфигурация
- Любую команду можно отключить, тогда работает ванильная
- Свои алиасы для каждой команды
- Все тексты в
messages.yml (MiniMessage, плейсхолдеры <player>, <target>, <sender>, <gamemode>, <x>, <y>, <z>, <world>)
/vca reload перечитывает тексты и настройки без рестарта. Включение команд и алиасы применяются после рестарта
🚀 Folia / API
- Полная поддержка Folia: режим и телепорт выполняются в потоке региона игрока
- Телепорт через
teleportAsync: чанк подгружается, не останавливая сервер
- Отменяемые события
CommandGameModeEvent (режим можно подменить) и CommandTeleportEvent (точку назначения можно подменить)
🇬🇧 English
🎮 /gamemode
/gamemode <mode> [players]. Any input format works: creative, c, 1. The default alias is /gm, so /gm c works too. Suggestions only show the modes the player has permission for.
Permissions
vanillacommandadvance.gamemode.survival
vanillacommandadvance.gamemode.creative
vanillacommandadvance.gamemode.adventure
vanillacommandadvance.gamemode.spectator
vanillacommandadvance.gamemode.others — change other players' mode
🧭 /tp
All vanilla forms: to a player, by coordinates (incl. ~ and ^), player to player, @a and @e selectors. A world can follow the coordinates: /tp 0 100 0 world_nether. By default only the sender sees the message (silent-target).
Permissions
vanillacommandadvance.tp.self — teleport yourself
vanillacommandadvance.tp.others — teleport other players and entities
vanillacommandadvance.tp.coords — teleport by coordinates
vanillacommandadvance.tp.worlds — teleport between worlds
vanillacommandadvance.tp.silent — the teleported player never gets a message
⚙️ Configuration
- Any command can be disabled (falls back to vanilla)
- Custom aliases for every command
- All text in
messages.yml (MiniMessage, placeholders <player>, <target>, <sender>, <gamemode>, <x>, <y>, <z>, <world>)
/vca reload reloads texts and settings with no restart. Enabling commands and aliases apply after a restart
🚀 Folia / API
- Full Folia support: mode changes and teleports run on the player's region thread
- Teleports use
teleportAsync: the chunk loads without stalling the server
- Cancellable
CommandGameModeEvent (the mode can be replaced) and CommandTeleportEvent (the destination can be replaced)
评论 0
登录后参与评分
还没有评论,来抢沙发吧