🔒 Only TP
English | 中文
一款 Minecraft 服务端命令限制模组:让你的玩家只能使用传送命令,或者屏蔽所有非传送命令——无需赋予他们管理员权限。
📖 功能介绍
| 模式 | 效果 |
|---|---|
| 仅允许传送 (Allow TP only) | 普通玩家可以使用传送命令。其余行为保持原版。 |
| 屏蔽非传送 (Block non-TP) | 所有人均允许使用传送命令;其他所有命令将被屏蔽。可以为操作员提供额外的命令白名单。 |
| 同时启用 (Enable both) | 两种规则同时生效,各自拥有独立的豁免列表。 |
| 禁用模组 (Disable mod) | 无任何限制。 |
- 🚫 被屏蔽的命令会返回红色的
Only TP: This command has been disabled!提示。 - 🎮 被屏蔽的游戏模式切换会显示其专属的红色通知。
- ⭐ 每种模式都拥有独立的豁免列表——列表中的玩家永远不会受到限制。
- 🎯 支持为受限玩家配置可选的目标选择器(如
@a、@p等),可自由切换。
🚀 安装方法
- 将 jar 文件放入服务器的
mods文件夹中(支持 Forge、NeoForge 或 Fabric)。 - 启动服务器一次。
config/onlytp-common.toml和config/onlytp-client.toml会自动生成。 - 编辑该文件,或使用游戏内编辑器(见下文)。
- 选择一种模式,填写豁免列表,以及(如果需要的话)操作员命令白名单,然后保存。
该模组在服务端具有最高优先级。未安装此模组的客户端仍可正常游玩,只是无法打开编辑器。
🖱️ 游戏内编辑器
包含两个独立入口:
- 模组列表 → Only TP → Config。优先使用加载器自带的配置界面(如果存在);否则由 Cloth Config API 生成。因此,对于该入口,客户端需要安装 Cloth Config API(适用于所有加载器的 1.20.x 版本,以及 Fabric 的 1.21+ 版本)。
- 暂停菜单按钮——仅在安装了 AvalonBase 时出现,并打开 AvalonBase 的编辑器。
在游戏内编辑器中进行编辑需要服务器上的管理员权限(否则界面为只读状态)。如果服务器所有者关闭了该入口,模组列表中的入口将显示“入口已关闭”提示,且暂停菜单按钮会消失。
⚙️ 配置
两个配置文件均为纯 TOML 格式,随时可以手动编辑——更改会立即生效,无需重启服务器。
config/onlytp-common.toml —— 规则设定,由服务端决定并发送给客户端:
| 键名 | 含义 |
|---|---|
mode |
disabled / allow_tp_only / block_non_tp / both |
allow_entity_selectors |
是否允许使用目标选择器,如 @a |
enable_config_entry |
是否允许进入可视化编辑器(当存在 AvalonBase 时也会显示暂停菜单按钮) |
mode_allow_tp_only / mode_block_non_tp |
对应模式的豁免列表 |
command_whitelist |
在“屏蔽非传送”模式下,操作员额外可用的命令 |
config/onlytp-client.toml —— 每个客户端的偏好设置,不会发送到任何地方:
| 键 | 含义 |
|---|---|
gui_button_style |
0 = 现代风格,1 = 原版风格按钮 |
enable_animations |
界面打开/关闭动画 |
show_tips |
1 = 显示关于编辑器的游戏内提示 |
💡 使用须知
- 哪些指令算作“传送类指令”由模组决定,而非配置。
- 指令名匹配不区分大小写;前导的
/会被忽略。 - 所有判定均在服务端完成:仅在客户端安装模组只会添加可视化编辑器。
🔗 相关链接
- CurseForge:
- Modrinth:
- 源代码与问题反馈:
- 备用反馈页面:
🧩 可选依赖项
- AvalonBase — · — 添加暂停菜单编辑器。
- Cloth Config API — · — 在加载器没有原生配置界面时,用于模组列表配置条目的客户端必需项。
📄 许可证
MIT — Huziyang520
English | 中文
🔒 Only TP
一个 Minecraft 服务端指令限制模组:让玩家只能使用传送类指令,或者禁止所有非传送类指令 —— 无需授予管理员权限。
📖 功能介绍
| 模式 | 效果 |
|---|---|
| 非 OP 玩家仅允许 TP 指令 | 普通玩家可以使用传送类指令,其他指令保持原版行为。 |
| OP 玩家禁止非 TP 指令 | 所有人都能使用传送类指令;其他指令一律禁止。管理员可以额外配置一份命令白名单。 |
| 同时启用 | 两套规则同时生效,各自拥有独立的豁免名单。 |
| 关闭模组功能 | 完全不做限制。 |
- 🚫 被拦截的指令会收到红色文字提示
Only TP: 该指令已被禁止! - 🎮 被拦截的游戏模式切换会显示相应的提示。
- ⭐ 每种模式都有自己的豁免名单:名单中的玩家完全不受限制。
- 🎯 受控玩家是否可以使用
@a、@p等目标选择器,可单独开关。
🚀 安装
- 将 jar 文件放入服务端的
mods文件夹中(支持 Forge / NeoForge / Fabric)。 - 启动一次服务端,会自动生成
config/onlytp-common.toml和config/onlytp-client.toml。 - 直接修改文件,或使用游戏内编辑界面(见下文)。
- 选择好模式,填写好豁免名单(如需再配置管理员命令白名单),保存即可。
判定逻辑完全在服务端。即使客户端未安装也能正常游玩,只是无法打开编辑界面。
🖱️ 游戏内编辑界面
两个相互独立的入口:
- 模组列表 → Only TP → 配置。当加载器自带配置界面时使用自带的;否则由 Cloth Config API 生成,因此该入口在客户端需要 Cloth(适用于 1.20.x 全加载器及 1.21+ 的 Fabric 端)。
- 暂停菜单按钮 —— 仅在安装了 AvalonBase 时出现,打开的是 AvalonBase 的编辑界面。
编辑操作需要服务端管理员权限(否则界面为只读状态)。如果服主关闭了入口,模组列表入口将仅显示“入口已关闭”提示,暂停菜单按钮也不再出现。
⚙️ 配置文件
两个文件均为纯 TOML 文本,可随时手动修改,更改无需重启服务端即可生效。
config/onlytp-common.toml —— 规则配置,由服务端判定并下发给客户端:
| 键 | 含义 |
|---|---|
mode |
disabled / allow_tp_only / block_non_tp / both |
allow_entity_selectors |
是否允许 @a 等目标选择器 |
enable_config_entry |
是否允许进入可视化配置界面(若安装了 AvalonBase,同时也决定是否显示暂停按钮) |
mode_allow_tp_only / mode_block_non_tp |
对应模式的豁免玩家名单 |
command_whitelist |
在「禁止非 TP 指令」模式下,管理员可额外使用的指令 |
config/onlytp-client.toml —— 仅影响本机偏好,不参与同步:
| 键 | 含义 |
|---|---|
gui_button_style |
0 = 现代风格,1 = 原版风格按钮 |
enable_animations |
界面开/关动画 |
show_tips |
1 = 进入世界时提示一次编辑界面的用法 |
💡 使用须知
- 哪些指令算作“传送类指令”由模组内置决定,无需在配置中编写。
- 指令名匹配不区分大小写,开头的
/会被忽略。 - 所有判定均在服务端完成;客户端安装本模组只是为了获取可视化编辑界面。
🔗 相关链接
- CurseForge:
- Modrinth:
- 源码与问题反馈:
- 备用反馈地址:
🧩 可选前置
- AvalonBase —— · —— 提供暂停菜单编辑界面。
- Cloth Config API —— · —— 当加载器没有自带配置界面时,客户端打开模组列表配置入口需要它。
📄 许可证
MIT —— Huziyang520
🔒 Only TP
English | 中文
A server-side command limiter for Minecraft: let your players use teleport commands only, or block every non-teleport command — without giving them operator rights.
📖 What it does
| Mode | Effect |
|---|---|
| Allow TP only | Regular players may use teleport commands. Everything else stays vanilla. |
| Block non-TP | Teleport commands are allowed for everyone; every other command is blocked. Operators can be given an extra command whitelist. |
| Enable both | Both rules apply at once, each with its own exemption list. |
| Disable mod | No restriction at all. |
- 🚫 Blocked commands answer with a red
Only TP: This command has been disabled! - 🎮 Blocked game-mode switching shows its own red notice.
- ⭐ Every mode has its own exemption list — players on it are never restricted.
- 🎯 Optional target selectors (
@a,@p, …) for restricted players, switchable.
🚀 Installing
- Put the jar into your server's
modsfolder (Forge, NeoForge or Fabric). - Start the server once.
config/onlytp-common.tomlandconfig/onlytp-client.tomlare created automatically. - Edit the file, or use the in-game editor (below).
- Pick a mode, fill in the exemption list and — if you want one — the operator command whitelist, then save.
The mod is authoritative on the server. A client without it plays normally, it simply cannot open the editor.
🖱️ The in-game editor
Two independent entries:
- Mod list → Only TP → Config. Uses the loader's own configuration screen where one exists; otherwise it is generated by Cloth Config API, which is therefore needed on the client for that entry (1.20.x on every loader, 1.21+ on Fabric).
- Pause menu button — appears only with AvalonBase installed and opens AvalonBase's editor.
Editing requires operator permission on the server (the screen is read-only otherwise). If the server owner turns the entry off, the mod-list entry shows an "entry closed" notice and the pause button disappears.
⚙️ Configuration
Both files are plain TOML, safe to edit by hand at any time — changes apply without restarting the server.
config/onlytp-common.toml — the rules, decided on the server and sent to clients:
| Key | Meaning |
|---|---|
mode |
disabled / allow_tp_only / block_non_tp / both |
allow_entity_selectors |
Allow target selectors such as @a |
enable_config_entry |
Allow entering the visual editor (also shows the pause button when AvalonBase is present) |
mode_allow_tp_only / mode_block_non_tp |
Exemption lists of that mode |
command_whitelist |
Extra commands operators may use in "block non-TP" mode |
config/onlytp-client.toml — per-client preferences, never sent anywhere:
| Key | Meaning |
|---|---|
gui_button_style |
0 = modern look, 1 = vanilla-style buttons |
enable_animations |
Interface open/close animations |
show_tips |
1 = show the in-game tip about the editor |
💡 Good to know
- Which commands count as "teleport commands" is decided by the mod, not by the config.
- Command names are matched case-insensitively; a leading
/is ignored. - Everything is decided on the server: installing the mod on a client only adds the visual editor.
🔗 Links
- CurseForge:
- Modrinth:
- Source & issues:
- Backup feedback page:
🧩 Optional dependencies
- AvalonBase — · — adds the pause-menu editor.
- Cloth Config API — · — required on the client for the mod-list config entry where the loader has no native screen.
📄 License
MIT — Huziyang520
English | 中文
🔒 Only TP
一个 Minecraft 服务端的指令限制模组:让玩家只能使用传送类指令,或者禁止所有非传送指令 —— 不需要给他们管理员权限。
📖 它做什么
| 模式 | 效果 |
|---|---|
| 非OP玩家仅允许TP指令 | 普通玩家可以使用传送类指令,其它指令保持原版行为。 |
| OP玩家禁止非TP指令 | 所有人都能用传送类指令;其它指令一律禁止。管理员可以额外配一份命令白名单。 |
| 同时启用 | 两套规则同时生效,各自带独立的豁免名单。 |
| 关闭模组功能 | 完全不做限制。 |
- 🚫 被拦截的指令会收到红字
Only TP: 该指令已被禁止! - 🎮 被拦截的游戏模式切换会显示对应的提示。
- ⭐ 每个模式都有自己的豁免名单:名单里的玩家完全不受限制。
- 🎯 受控玩家是否可用
@a、@p这类目标选择器,可单独开关。
🚀 安装
- 把 jar 放进服务端的
mods文件夹(Forge / NeoForge / Fabric)。 - 启动一次服务端,会自动生成
config/onlytp-common.toml与config/onlytp-client.toml。 - 直接改文件,或使用游戏内编辑界面(见下)。
- 选好模式、填好豁免名单(需要的话再配管理员命令白名单),保存即可。
判定完全在服务端。客户端不装也能正常玩,只是打不开编辑界面。
🖱️ 游戏内编辑界面
两个互相独立的入口:
- 模组列表 → Only TP → 配置。加载器自带配置界面时就用自带的;否则由 Cloth Config API 生成,所以该入口在客户端需要 Cloth(1.20.x 全加载器、1.21+ 的 Fabric 端)。
- 暂停菜单按钮 —— 只在装了 AvalonBase 时出现,打开的是 AvalonBase 的编辑界面。
编辑需要在服务端拥有管理员权限(否则界面只读)。服主关闭入口后,模组列表入口只显示「入口已关闭」提示,暂停菜单按钮也不再出现。
⚙️ 配置文件
两个文件都是纯 TOML 文本,随时可以手改,改动无需重启服务端即可生效。
config/onlytp-common.toml —— 规则,由服务端判定并下发给客户端:
| 键 | 含义 |
|---|---|
mode |
disabled / allow_tp_only / block_non_tp / both |
allow_entity_selectors |
是否允许 @a 这类目标选择器 |
enable_config_entry |
是否允许进入可视化配置界面(装了 AvalonBase 时也决定暂停按钮) |
mode_allow_tp_only / mode_block_non_tp |
对应模式的豁免玩家名单 |
command_whitelist |
「禁止非TP指令」模式下管理员可额外使用的指令 |
config/onlytp-client.toml —— 只影响本机的偏好,不参与同步:
| 键 | 含义 |
|---|---|
gui_button_style |
0 = 现代风格,1 = 原版风格按钮 |
enable_animations |
界面开/关动画 |
show_tips |
1 = 进世界时提示一次编辑界面的用法 |
💡 使用须知
- 哪些指令算「传送类指令」由模组内置决定,不需要在配置里写。
- 指令名不区分大小写,开头的
/会被忽略。 - 所有判定都在服务端完成;客户端装本模组只是为了拿到可视化编辑界面。
🔗 相关链接
- CurseForge:
- Modrinth:
- 源码与问题反馈:
- 备用反馈地址:
🧩 可选前置
- AvalonBase —— · —— 提供暂停菜单编辑界面。
- Cloth Config API —— · —— 加载器没有自带配置界面时,客户端打开模组列表配置入口需要它。
📄 许可证
MIT —— Huziyang520
下载 Only TP
下载 Only TP
下载 Only TP
下载 Only TP
下载 Only TP
下载 Only TP
下载 Only TP
下载 Only TP
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Only TP
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Only TP
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧