MyCommand for BungeeCord 是一个多功能插件,它既可作为桥梁,让标准 MyCommand 插件与 BungeeCord 代理通信并执行原本无法访问的代理命令,也可作为独立插件,直接在代理端创建自定义命令。创建的指令对玩家而言如同原生注册的命令。请注意,这是一个全新插件,尚未提供标准 MyCommand 的所有功能。
TEXT:发送文本消息。RUN_COMMAND 或 RUN_AS_PROXY:执行多个命令或创建别名(仅能运行代理命令,非服务器命令)。ADD_PERMISSION:通过附加权限来阻止 BungeeCord 命令。RAW_TEXT:发送可点击文本,支持悬停提示、执行命令和打开链接。BROADCAST_TEXT:向所有代理玩家广播文本(可配置特定权限或服务器)。BROADCAST_RAW_TEXT:向所有代理玩家广播可点击文本(可配置特定权限或服务器)。TITLE:向发送者发送标题消息。BROADCAST_TITLE:向所有玩家发送标题消息。CHANGE_SERVER:创建传送(切换服务器)命令。$delay$ 设置延迟、使用占位符、自定义权限节点/消息。IF 和 ELSE 创建带条件的命令。register: false 可隐藏命令或覆盖其他插件命令(默认注册)。/bmycmd - 显示帮助信息。/bmycmd reload - 重新加载命令文件。/bmycmd list - 分页显示所有已创建的命令。/bmycmd check <command> - 查看指定命令的详情。/bmycmd edit <cmd_name> <field> <values> - 游戏内命令编辑器。/bmycmd runasproxy <command> - 以控制台发送者身份运行命令。/bmycmd broadcast <server> <message> - 向特定服务器广播消息。/bmycmd-run </cmd> - 允许从控制台运行(未注册的)bMycmd 命令。/bmycmd - bmycmd.admin(拥有此权限也可运行你创建的每个命令)。/bmycmd-run - bmycmd.run。(用作前缀)
$delay$ - 等待指定秒数后再执行动作(通过 delaytimer: 1 配置)。$text$ - 发送文本消息而非执行命令。$broadcasttext$ - 广播文本消息。$log$ - 在控制台显示日志消息。$multiargs - 放置在期望位置,将被聊天提示中输入的参数替换。$arg1, $arg2 ... $arg9 - 分别替换为聊天提示中对应的参数。$player - 玩家名称。$display_name - 玩家格式化名称(含颜色等)。$uuid - 发送者的唯一标识符。$ping - 发送者的延迟。$server_name - 发送者所在服务器名称。$server_motd - 发送者所在服务器的 MOTD。$language - 语言。$online - 整个网络中的在线人数。$randomnumber%10% 或 $randomnumber%5<to>10% - 随机数字。$main_hand - 玩家的默认手部设置(LEFT 或 RIGHT)。$chat_mode - 聊天模式(HIDDEN、SHOWN 或 COMMANDS_ONLY)。$server_online - 玩家所在服务器的在线人数。&1 到 &f 或 $random_color - 传统颜色代码。$hex%#000000% 到 $hex%#FFFFFF% 设置颜色。如果你以前使用过 MyCommand,你会发现格式完全相同。RUN_COMMAND 和 RUN_AS_PROXY 只能运行代理命令,不能运行服务器命令。
阻止 BungeeCord 命令
block_bungee_command:
command: /bungee
type: ADD_PERMISSION
permission-required: true
register: false文本命令示例
example:
command: /mybungeetext
type: TEXT
text:
- "&aLine 1"
- "&bLine 2"
- "&cecc.."
permission-required: false原始文本(可点击)示例
rawmessage_example:
command: /bungee_raw
type: RAW_TEXT
text:
- "&aHello &b$player! &aHover your mouse over me!; &dMAGIC"
- "&0[&d*&0]&e Click me; &eClick here to suggest the command &d/bmycmd;/bmycmd"
- "$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick to Execute;/time set day"
- "$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick to open;http://www.google.com"
permission-required: false服务器信息命令
server_info:
command: /serverinfo
type: TEXT
text:
- "&eHello &2$player!"
- "&aYou're currently connected on the server &2$server_name"
- "&b$server_motd"
- "&2And your current PING to &a$server_name &2is &a$ping"
permission-required: false运行命令示例(带延迟)
run_command_example:
command: /bungeeruncmd
type: RUN_COMMAND
runcmd:
- "$text$&eHello &2$player! &bTesting TEXT"
- "$delay$/alert 3"
- "$delay$/alert 2"
- "$delay$/alert 1"
permission-required: true
permission-node: "bmycmd.runcommand.test"
permission-error: "&cYou can't use this command!"
delaytimer: 1以代理身份运行命令
run_as_proxy_ex:
command: /gotolobby
type: RUN_AS_PROXY
runcmd:
- "/send $player lobby"
- "$text$&eTeleported to lobby."
permission-required: false服务器限制命令
only_from_the_lobby:
command: /onlyfromlobby
type: TEXT
text:
- "&eThis Command works only from the lobby"
permission-required: false
error-message: "&cThis command can be used only from the lobby"
allowed_servers:
- lobby动态标题示例
dynamic_title_example:
command: /bungee_dynamic_title
type: TITLE
text:
- '&aHello &e$player'
- '&aha&3ve a &4nice &bDAY'
title:
effect_type: 1广播标题示例
title_example2:
command: /bungee_broadcast_title
type: BROADCAST_TITLE
text:
- '&0[&cINFO&0]&a $multiargs'
- '&9(&bBroadcast message&9)'
title:
effect_type: 0
fadein: 1
stay: 5
fadeout: 2脚本条件示例
script_example:
command: /bscript_example
type: RUN_COMMAND
runcmd:
- $Script$%if%$server_name==lobby
- $delay$
- $text$You're in the lobby, and the massage waited one second to appear cause the $delay!
- $Script$%if%$server_name==lobby<and>$arg1==password
- $text$&aAccess Granted!
- $text$&aTo see this message you had to soddisfy 2 condition. Servername lobby and the correct password!
- $Script$%else%
- $text$&cYou're not in the lobby and the password isn't correct too
permission-required: false
delaytimer: 1向特定服务器广播
broadcast_only_to_specific_servers:
command: /bungee_bc_sky
type: BROADCAST_TEXT
text:
- '&aHello players of skygames!'
broadcast_to_specific_servers:
- bedwars
- skygames
permission-required: true传送(切换服务器)命令
teleport_example:
command: /gohub
type: CHANGE_SERVER
server_name: lobby十六进制颜色示例
hexcolorexample:
command: /hexcolormessage
type: TEXT
text:
- "$hex%#16a085%This is how you can set-up a custom color using the HEX RGB code."
- "$hex%#ff7111%Just $hex%#760fcb%some $hex%#8b7d6b%color $hex%#ffe181%here $hex%#c3cde6%and $hex%#760fcb%there"
permission-required: falsepermission-required: true - 设置为 true 则使用权限;false 则任何人都可运行命令。permission-node: "mynode.something" - 自定义权限节点。permission-error: "&cYou can't use this command!" - 无权限时的错误消息。broadcast_message_permission_node: permission.to.see.this.message - 将此字段放入广播命令中,可限制只有特定玩家能看到该消息。config.yml 中关闭 chat_listener 以将此插件的影响降至零(如果存在任何影响)。在这种情况下,未注册的命令将无法工作。友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人数:2,672,349 | 历史访问人次:3,239,793
今日访问人数:17,860 | 今日访问人次:20,771
昨日访问人数:30,655 | 昨日访问人次:36,381
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6