Dimension Pause ?⌚
什么是 Dimension Pause?
Dimension Pause 是一款极简、轻量级的插件,允许你暂时阻止玩家创建维度传送门或进入其他维度。
它通过检测玩家尝试创建传送门的行为,或者检测玩家切换世界(例如进入已存在的传送门,或使用 Essentials 的 /home 功能)来实现这一目的。当这种情况发生时,如果该世界的维度处于暂停状态且未满足特定条件,玩家将被禁止创建传送门或被踢出当前世界。
如果玩家在当前维度被禁用时正处于其中,他们将被传送至重生位置;若重生位置不可用,则会被传送到配置文件中指定的世界。
当前功能
- 完全按世界维度封锁访问权限。详见下方的“世界设置”部分
- 玩家无法创建传送门、进入传送门或通过命令(如
/home 或 /warp)传送到其他维度。如果玩家在离线期间所在的维度被暂停,当他们重新上线后,将在可配置的延迟后被传送离开。
- 暂停世界直到服务器管理员手动取消暂停,或在指定延迟后自动取消
- 默认情况下,维度会无限期暂停。但是,你可以指定一个持续时间来暂停世界。
- 支持聊天消息和标题的自定义翻译/格式。你不必局限于 “DimensionPause” 的品牌标识!
- 在服务器加载时,请查看
plugins/DimensionPause/lang/ 文件夹以获取配置选项。
- 持久且可靠的过期计时器。即使服务器重启或崩溃,维度也不会意外保持暂停状态!
- DimensionPause 使用 Paper 的原生调度器,并在服务器启动、维度开关切换和世界加载时为所有临时暂停的维度(重新)调度计时器。
- 支持 Folia
- 注意:Folia 未经测试。虽然该插件在设计时考虑了 Folia,但由于 LuckPerms 等依赖项尚不支持 Folia,我们尚未实际在 Folia 上运行过它。请自行承担风险,Folia 将在下一个版本中进行测试。
未来功能
- 支持 Velocity / BungeeCord
- 为开发者提供 API 以便集成 DimensionPause
命令与权限
为了简洁起见,所有命令中的 /dimensionpause 都可以替换为 /dp。
| 命令 |
权限 |
描述 |
| /dimensionpause |
dimensionpause.commands |
显示帮助菜单 |
| /dimensionpause toggle <world> <end | nether> [<weeks>w][<days>d][<hours>h][<minutes>m][<seconds>s] |
dimensionpause.toggle |
暂停或取消暂停特定世界的指定维度类型,并可选地指定持续时间。持续时间表示从当前时间起暂停将持续多久。 |
| /dimensionpause state <world> <end | nether> |
dimensionpause.state |
检查特定世界的指定维度类型的状态 |
| /dimensionpause reload |
dimensionpause.reload |
重新加载 DimensionPause 配置文件和语言文件 |
|
dimensionpause.bypass.[world].[dimension] |
允许玩家绕过特定世界和维度的暂停 |
|
dimensionpause.* |
授予上述所有权限 |
要求
DimensionPause 1.1.2 适用于 Minecraft 1.17 及以上版本。然而,DimensionPause 2.0.0 需要最新版本的 Paper(截至撰写本文时,为 1.21.11 & Java 21)。在保持向前兼容性的同时支持旧版 Paper 极其困难。在运行 DimensionPause 的近 100 个服务器中,不到 5% 的服务器使用的是本插件不支持的 Paper 版本,而近 75% 的服务器均受支持。
世界设置
Dimension Pause 基于以下假设工作:你的下界(Nether)和末地(End)维度将与主世界(Overworld)维度相连。由于这些维度没有关联的主世界,Dimension Pause 不支持仅针对下界世界或仅针对末地世界的维度暂停功能。
由于 Paper 不会将世界相互关联,而是假设下界和末地世界遵循标准的 _nether 或 _the_end 命名约定。例如,默认的 world 维度世界应命名为 world_nether 和 world_the_end。如果你的世界未采用这种命名方式,则无法使用 DimensionPause。
Dimension Pause ?⌚
What is Dimension Pause?
Dimension Pause is a super simple, lightweight plugin that allows you to temporarily block players from creating
dimension portals or entering dimensions.
It works by detecting players attempting to create portals, or detecting when a player switches worlds (Such as entering
an already-existing portal, or using Essentials's /home feature). When this happens,
if that world's dimension is paused and certain criteria are not met, the player is either blocked from creating the
portal, or kicked out of the world.
If the player is currently in a dimension when it is disabled, then they are kicked out to either their respawn location
or a world defined in config if their respawn location is unavailable.
Current Features
- Completely block access to dimensions per world. See the "World Setup" section below for details
- Players cannot create portals, enter portals or teleport via commands (Such as
/home or /warp) to other
dimensions. If the player was in a dimension that was paused while they were logged off, upon logging back on they
will be teleported out after a configurable delay.
- Pause worlds until manually unpaused by server staff, or after a delay
- Dimensions, by default, are paused indefinitely. However, you can specify a delay to pause the world for a
duration.
- Supports custom translations/formatting for chat messages and titles. You are not locked to "DimensionPause" branding!
- Upon loading the server, check out the
plugins/DimensionPause/lang/ folder for configuration options.
- Persistent & resilient expiration timers. Dimensions will not stay paused by accident if your server restarts or
crashes!
- DimensionPause uses Paper's native scheduler, and will (re)schedule timers for ALL temporarily paused dimensions
on server start, dimension toggle, and world load.
- Folia Support
- NOTE: Folia is NOT TESTED. While the plugin has been written with Folia in mind, we have not actually run it on
Folia yet due to dependencies like LuckPerms not working on Folia yet. Use at your own risk, Folia will be tested
in the next version
Future Features
- Support Velocity / BungeeCord
- Create an API for developers to integrate with DimensionPause
Commands & Permissions
All commands may substitute /dimensionpause with /dp for conciseness
| Command |
Permission |
Description |
| /dimensionpause |
dimensionpause.commands |
Displays help menu |
| /dimensionpause toggle <world> <end | nether> [<weeks>w][<days>d][<hours>h][<minutes>m][<seconds>s] |
dimensionpause.toggle |
Pauses or unpauses a given dimension type for a specific world, with an optional duration. The duration is how long from now the pause will expire. |
| /dimensionpause state <world> <end | nether> |
dimensionpause.state |
Checks the state of a given dimension type for a specific world |
| /dimensionpause reload |
dimensionpause.reload |
Reloads DimensionPause configs and language files |
|
dimensionpause.bypass.[world].[dimension] |
Allows players to bypass a pause for a given world & dimension |
|
dimensionpause.* |
Grants all permissions listed above |
Requirements
DimensionPause 1.1.2 works for 1.17 and up. However, DimensionPause 2.0.0 requires the latest version of Paper (At the
time of writing, 1.21.11 & Java 21). Supporting older versions of Paper while maintaining forward compatibility is a
massive pain. Out of the almost 100 servers running DimensionPause, less than 5% of servers are running a version of
Paper
unsupported by this plugin, and almost 75% of servers are supported.
World Setup
DimensionPause works under the assumption that your Nether and End dimensions will be connected to
an Overworld dimension. DimensionPause does not support pausing dimensions for nether-only or end-only worlds, as they
do not have an associated overworld.
Since Paper does not link worlds to each other, instead it's assumed nether and end worlds follow the standard "_nether"
or "_the_end" naming conventions. For example, the default world dimension worlds should be called world_nether and
world_the_end. If your worlds are not named like this, you cannot use DimensionPause.
评论 0
登录后参与评分
还没有评论,来抢沙发吧