? WorldAccessBlocker
WorldAccessBlocker 可临时限制对 下界、末地、鞘翅飞行 以及 自定义世界 的访问 —— 支持按固定日期或每周循环时间表进行控制。专为 Paper 及其分支(Purpur、Folia)构建。
✨ 功能特性
- ⏳ 基于日期的限制 — 在特定日期和时间之前阻止某项功能。
- ? 循环时间表 — 仅在特定的日期和时间段内允许访问(例如周末,或周日 15:00–17:00)。
- ? 下界拦截器 — 取消传送门生成、传送门通行以及末影珍珠传送。
- ? 末地拦截器 — 阻止末地传送门激活(以及前往末地的旅程)。
- ? 鞘翅控制 — 独立阻止鞘翅装备和/或飞行。
- ?️ 自定义世界 — 按日期或时间表限制任何指定名称的世界。
- ? 备用传送 — 将受限制的玩家传送到可配置的世界出生点。
- ? 玩家级豁免 — 通过
/wab bypass 授予限时豁免,通过 /wab remove 撤销豁免。
- ? PlaceholderAPI 支持 — 向记分板 / TAB 显示限制状态和剩余时间。
- ? 多语言 — 包含英语和俄语;可自行添加
.yml 文件。
- ♻️ 实时重载 — 通过
/wabreload 无需重启服务器即可应用配置更改。
- ? 原生 Folia 支持 — 在 Folia 上使用区域调度器(无线程安全警告)。
- ? 更新通知 — 当有新版本发布时,管理员会收到游戏内警报。
? 安装
- 下载最新的
WorldAccessBlocker.jar。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启服务器。
- 根据需要编辑
plugins/WorldAccessBlocker/config.yml,然后运行 /wabreload。
⚙️ 配置
# 消息语言:"en" 或 "ru"
language: "en"
# 服务器时区(对于循环时间表非常重要!)
time-zone: "Europe/Moscow"
nether:
disable: true
# 仅在没有 `recurring` 块时使用(直到此日期被阻止):
restriction-date: "2025-03-10 00:00:00"
disable-portal-creation: true
disable-teleportation: true
# 每周时间表。如果存在此块,则忽略 `restriction-date`。
# 每个时间段都是一个开放(允许)窗口 —— 在这些窗口之外访问将被阻止。
recurring:
periods:
# 仅在周日 15:00–17:00 开放
- days: [SUNDAY]
start-time: "15:00"
end-time: "17:00"
# 周末全天开放
- days: [SATURDAY, SUNDAY]
end:
disable: true
disable-portal-activation: true
# 空列表 = 没有开放窗口 = 始终阻止
recurring:
periods: []
elytra:
disable: true
disable-equip: true
disable-flight: true
custom-worlds:
lobby_world:
disable: true
recurring:
periods:
- days: [MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY]
start-time: "09:00"
end-time: "17:00"
# 受限制玩家的传送目标(世界名称 → 其出生点)
fallback-spawns:
default: "world"
nether: "hub"
时间表工作原理: 当设置 recurring: 时,每个时间段定义一个 开放 窗口。如果当前日期/时间落在某个时间段内,则访问 开放;否则将被 阻止。空的 periods: [] 表示 始终
阻止。
? 命令与权限
| 命令 |
权限 |
默认值 |
描述 |
/wab bypass <player> <feature> <seconds> |
wab.bypass |
op |
授予限时豁免 |
/wab remove <player> <feature> |
wab.bypass |
op |
移除豁免 |
/wab status [player] |
wab.status |
all |
显示限制状态 |
/wabreload |
wab.reload |
op |
无需重启即可重载配置 |
<feature> 可以是 nether、end、elytra 或自定义世界名称。
? PlaceholderAPI
| 占位符 |
返回值 |
%wab_nether_blocked% |
true / false |
%wab_end_blocked% |
true / false |
%wab_elytra_blocked% |
true / false |
%wab_time_left_nether% |
剩余时间(或时间表) |
%wab_time_left_end% |
剩余时间(或时间表) |
%wab_time_left_elytra% |
剩余时间(或时间表) |
? 兼容性
| 平台 |
版本 |
状态 |
| Paper |
1.20.5 – 1.21.4 |
✅ 完全支持 |
| Purpur |
1.20.5 – 1.21.4 |
✅ 完全支持 |
| Folia |
1.20.5+ |
✅ 原生调度器 |
需要 Java 21。 不支持 Spigot/Bukkit(该插件使用了 Paper 的 Adventure API 和调度器 API)。
? 统计
? Bug 与建议
请在 GitHub 上提交 Issue,或在 Modrinth 此处留下评论。
? WorldAccessBlocker
WorldAccessBlocker temporarily restricts access to the Nether, the End, elytra flight, and custom worlds — by a fixed date or a recurring weekly schedule. Built for Paper and its forks (Purpur, Folia).
✨ Features
- ⏳ Date-based restrictions — block a feature until a specific date and time.
- ? Recurring schedules — allow access only on certain days and time windows (e.g. weekends, or Sundays 15:00–17:00).
- ? Nether blocker — cancels portal creation, portal travel, and ender-pearl teleports.
- ? End blocker — prevents End portal activation (and the trip to the End).
- ? Elytra control — block equipping and/or flight independently.
- ?️ Custom worlds — restrict any named world by date or schedule.
- ? Fallback teleport — send blocked players to a configurable world spawn.
- ? Per-player bypasses — grant a timed bypass with
/wab bypass, revoke with /wab remove.
- ? PlaceholderAPI support — expose restriction state and time-left to scoreboards / TAB.
- ? Multi-language — English and Russian included; add your own
.yml.
- ♻️ Live reload — apply config changes without a restart via
/wabreload.
- ? Folia-native — uses the regional scheduler on Folia (no thread-safety warnings).
- ? Update notifications — admins get an in-game alert when a new version is out.
? Installation
- Download the latest
WorldAccessBlocker.jar.
- Drop it into your server's
plugins/ folder.
- Restart the server.
- Edit
plugins/WorldAccessBlocker/config.yml to taste, then run /wabreload.
⚙️ Configuration
# Message language: "en" or "ru"
language: "en"
# Server time zone (important for recurring schedules!)
time-zone: "Europe/Moscow"
nether:
disable: true
# Used only when there is NO `recurring` block (blocked until this date):
restriction-date: "2025-03-10 00:00:00"
disable-portal-creation: true
disable-teleportation: true
# Weekly schedule. If this block is present, `restriction-date` is IGNORED.
# Each period is an OPEN (allowed) window — outside these windows access is blocked.
recurring:
periods:
# Open only on Sundays, 15:00–17:00
- days: [SUNDAY]
start-time: "15:00"
end-time: "17:00"
# Open all day on weekends
- days: [SATURDAY, SUNDAY]
end:
disable: true
disable-portal-activation: true
# Empty list = no open windows = ALWAYS blocked
recurring:
periods: []
elytra:
disable: true
disable-equip: true
disable-flight: true
custom-worlds:
lobby_world:
disable: true
recurring:
periods:
- days: [MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY]
start-time: "09:00"
end-time: "17:00"
# Where blocked players are teleported (world name → its spawn)
fallback-spawns:
default: "world"
nether: "hub"
How the schedule works: when recurring: is set, each period defines an open window. If the current day/time falls inside a period, access is open; otherwise it is blocked. An empty periods: [] means always
blocked.
? Commands & Permissions
| Command |
Permission |
Default |
Description |
/wab bypass <player> <feature> <seconds> |
wab.bypass |
op |
Grant a timed bypass |
/wab remove <player> <feature> |
wab.bypass |
op |
Remove a bypass |
/wab status [player] |
wab.status |
all |
Show restriction status |
/wabreload |
wab.reload |
op |
Reload config without a restart |
<feature> is nether, end, elytra, or a custom world name.
? PlaceholderAPI
| Placeholder |
Returns |
%wab_nether_blocked% |
true / false |
%wab_end_blocked% |
true / false |
%wab_elytra_blocked% |
true / false |
%wab_time_left_nether% |
time remaining (or schedule) |
%wab_time_left_end% |
time remaining (or schedule) |
%wab_time_left_elytra% |
time remaining (or schedule) |
? Compatibility
| Platform |
Versions |
Status |
| Paper |
1.20.5 – 1.21.4 |
✅ Full support |
| Purpur |
1.20.5 – 1.21.4 |
✅ Full support |
| Folia |
1.20.5+ |
✅ Native scheduler |
Requires Java 21. Spigot/Bukkit are not supported (the plugin uses Paper's Adventure & scheduler APIs).
? Stats
? Bugs & Suggestions
Open an issue on GitHub or leave a comment here on Modrinth.
评论 0
登录后参与评分
还没有评论,来抢沙发吧