BetterChunkLoader 是一款 Minecraft 服务器插件,允许管理员放置特殊的区块加载器方块,即使玩家不在附近也能保持区域处于加载状态。
该插件对于需要重要区域持续运行的服务器非常有用,例如农场、机器、存储系统或技术建筑,这些设施应在无需玩家站在对应区块内时继续工作。
功能特性
-
区块加载器方块
放置一个特殊方块以保持周围由服务器定义的区块区域处于加载状态。
-
持久化区块加载器
区块加载器会保存至插件存储中,并在服务器重启后恢复。
-
所有者追踪
每个区块加载器都会记录放置它的玩家的 UUID。
-
管理员控制
管理员可以发放区块加载器方块、打开管理员菜单、查看活动的加载器,并通过权限管理访问权限。
-
管理员图形界面 (GUI)
管理员菜单显示活动区块加载器的列表及其所在世界和坐标。
-
从 GUI 传送
管理员可以点击列表中列出的区块加载器直接传送到其位置。
-
自定义语言文件
插件消息、物品名称、描述文本(Lore)和 GUI 文本均存储在 lang.yml 中,并支持 Minecraft 颜色格式。
工作原理
- 管理员向玩家发放一个区块加载器方块。
- 玩家将方块放置在希望保持活跃区域的中心。
- BetterChunkLoader 保存区块加载器的位置和所有者信息。
- 插件在该位置创建一个虚拟的服务器玩家,从而使服务器按照
server.properties 中配置的相同距离规则加载周围的区块。
- 当方块被所有者或管理员移除时,区块加载器将从存储中删除。
安装方法
- 下载或构建插件 jar 文件。
- 将 jar 文件放入服务器的
plugins 文件夹中。
- 重启服务器。
- 根据需要配置生成的文件:
plugins/BetterChunkLoader/lang.yml
plugins/BetterChunkLoader/chunks/
命令
/chunkloader admin
打开 BetterChunkLoader 管理员菜单。
使用此菜单查看活动的区块加载器并传送到它们的位置。
权限: chunkloader.admin
/chunkloader giveblock <player> <amount>
向在线玩家发放区块加载器方块。
示例:
/chunkloader giveblock Steve 3
这将给予 Steve 3 个区块加载器方块。
权限: chunkloader.admin
权限
chunkloader.admin
授予对 BetterChunkLoader 管理员功能的访问权限。
拥有此权限的玩家可以:
- 使用管理员菜单
- 发放区块加载器方块
- 放置区块加载器方块
- 破坏其他玩家拥有的区块加载器
默认情况下,此权限对服务器操作员可用。
使用指南
发放区块加载器方块
使用:
/chunkloader giveblock <player> <amount>
示例:
/chunkloader giveblock Alex 1
目标玩家将获得一个特殊的区块加载器方块。
放置区块加载器
将区块加载器方块放置在希望保持加载的区域中心。
一旦放置,插件将注册该方块,将其保存到存储中,并根据服务器配置的距离设置加载附近的区块。
移除区块加载器
破坏区块加载器方块。
加载器可以由以下人员移除:
- 放置它的玩家
- 拥有
chunkloader.admin 权限的玩家
移除后,插件将从存储中删除该加载器。
查看活动的区块加载器
使用:
/chunkloader admin
从管理员菜单打开区块加载器列表。每个列出的加载器显示:
点击列出的加载器即可传送到该位置。
语言自定义
BetterChunkLoader 会在插件文件夹中创建一个 lang.yml 文件。
您可以编辑此文件来自定义以下内容:
- 插件前缀
- 命令消息
- 放置和移除消息
- 区块加载器物品名称
- 区块加载器物品描述文本(Lore)
- GUI 标题
- GUI 物品描述
语言文件支持通过 Liba MinecraftColor.format() 系统使用 Minecraft 颜色代码和渐变格式。
注意事项
- 区块加载器作为单独的文件存储在插件的
chunks 文件夹中。
- 加载区域受服务器区块加载规则的约束,例如
server.properties 中配置的距离。
- 移除区块加载器方块也会移除其保存的数据。
- 只有拥有正确权限的玩家才能放置区块加载器方块。
- 服务器操作员默认拥有管理员权限。
BetterChunkLoader is a Minecraft server plugin that lets administrators place special chunk loader blocks to keep an area loaded even when players are not nearby.
The plugin is useful for servers that need important areas to keep running, such as farms, machines, storage systems, or technical builds that should continue working without requiring a player to stand in the chunk.
Features
-
Chunk loader blocks
Place a special block to keep the surrounding server-defined chunk area loaded.
-
Persistent chunk loaders
Chunk loaders are saved to plugin storage and restored after a server restart.
-
Owner tracking
Every chunk loader stores the UUID of the player who placed it.
-
Admin control
Administrators can give chunk loader blocks, open the admin menu, view active loaders, and manage access through permissions.
-
Admin GUI
The admin menu shows a list of active chunk loaders with their world and coordinates.
-
Teleport from GUI
Admins can click a listed chunk loader to teleport directly to its location.
-
Custom language file
Plugin messages, item names, lore, and GUI text are stored in lang.yml and support Minecraft color formatting.
How It Works
- An administrator gives a player a chunk loader block.
- The player places the block at the center of the area they want to keep active.
- BetterChunkLoader saves the chunk loader location and owner.
- The plugin creates a fake server player at that location, so the server loads chunks around it using the same distance rules configured in
server.properties.
- When the block is removed by the owner or an administrator, the chunk loader is removed from storage.
Installation
- Download or build the plugin jar.
- Place the jar file into your server's
plugins folder.
- Restart the server.
- Configure generated files if needed:
plugins/BetterChunkLoader/lang.yml
plugins/BetterChunkLoader/chunks/
Commands
/chunkloader admin
Opens the BetterChunkLoader admin menu.
Use this menu to view active chunk loaders and teleport to their locations.
Permission: chunkloader.admin
/chunkloader giveblock <player> <amount>
Gives chunk loader blocks to an online player.
Example:
/chunkloader giveblock Steve 3
This gives Steve 3 chunk loader blocks.
Permission: chunkloader.admin
Permissions
chunkloader.admin
Grants access to BetterChunkLoader admin features.
Players with this permission can:
- Use the admin menu
- Give chunk loader blocks
- Place chunk loader blocks
- Break chunk loaders owned by other players
By default, this permission is available to server operators.
Usage Guide
Giving a Chunk Loader Block
Use:
/chunkloader giveblock <player> <amount>
Example:
/chunkloader giveblock Alex 1
The target player will receive a special chunk loader block.
Placing a Chunk Loader
Place the chunk loader block at the center of the area you want to keep loaded.
Once placed, the plugin registers the block, saves it to storage, and loads nearby chunks according to your server's configured distance settings.
Removing a Chunk Loader
Break the chunk loader block.
The loader can be removed by:
- The player who placed it
- A player with
chunkloader.admin
After removal, the plugin deletes the loader from storage.
Viewing Active Chunk Loaders
Use:
/chunkloader admin
Open the chunk loader list from the admin menu. Each listed loader displays:
- World name
- X coordinate
- Y coordinate
- Z coordinate
Click a listed loader to teleport to it.
Language Customization
BetterChunkLoader creates a lang.yml file in the plugin folder.
You can edit this file to customize:
- Plugin prefix
- Command messages
- Placement and removal messages
- Chunk loader item name
- Chunk loader item lore
- GUI titles
- GUI item descriptions
The language file supports Minecraft color codes and gradient formatting through the Liba MinecraftColor.format() system.
Notes
- Chunk loaders are stored as individual files inside the plugin's
chunks folder.
- The loaded area is controlled by the server's chunk loading rules, such as the distances configured in
server.properties.
- Removing a chunk loader block also removes its saved data.
- Only players with the correct permission can place chunk loader blocks.
- Server operators have admin permission by default.
评论 0
登录后参与评分
还没有评论,来抢沙发吧