MobStackerPremium
MobStackerPremium 是一款 Spigot 插件,旨在通过实体堆叠系统减少服务器中的实体数量,从而提升 Minecraft 服务器的性能。该插件完全可自定义,并提供强大的命令来管理和监控堆叠实体的统计数据。
功能
- 实体堆叠:当实体在定义半径内时,自动合并相似的实体,从而减少实体总数。
- 高级自定义设置:
- 定义堆叠半径。
- 限制最大堆叠数量。
- 排除某些类型的实体不参与堆叠(例如村民)。
- 详细统计信息:
- 按世界和类型显示堆叠实体的统计信息。
- 计算性能提升的百分比。
- 强大命令:
- 无需重启服务器即可重新加载配置。
- 给予玩家一根特殊的手杖,用于在指定区域内手动强制堆叠实体。
- 异步优化:该插件设计为异步运行,以避免对服务器稳定性造成任何影响。
安装
- 下载插件 JAR 文件。
- 将其放入 Spigot 服务器的
plugins 文件夹中。
- 重启服务器以生成配置文件。
- 根据您的需要自定义
config.yml 文件。
命令
| 命令 |
描述 |
权限 |
/mobstacker |
显示插件帮助信息。 |
无 |
/mobstacker help |
显示插件帮助信息。 |
无 |
/mobstacker stats |
按世界和类型显示堆叠实体的统计信息。 |
无 |
/mobstacker reload |
重新加载插件配置。 |
mobstackerpremium.reload |
/mobstacker stick |
给予允许手动堆叠实体的特殊手杖。 |
mobstackerpremium.stick |
权限
| 权限 |
描述 |
mobstackerpremium.reload |
允许重新加载插件配置。 |
mobstackerpremium.stick |
允许获取堆叠手杖。 |
配置 (config.yml)
以下是一个示例默认配置:
# MobStacker Premium Configuration
# 最大堆叠数量
max-stack-size: 50
# 自动堆叠实体的半径
stack-radius: 5.0
# 排除在堆叠之外的实体类型列表
excluded-mobs:
- VILLAGER
- WITHER
- ENDER_DRAGON
messages:
stick-success: "&a附近的实体已堆叠!"
堆叠手杖的工作原理
堆叠手杖是一种特殊工具,允许玩家在指定区域内手动强制堆叠实体。
如何获取手杖?
使用以下命令(需要 mobstackerpremium.stick 权限):
/mobstacker stick
如何使用手杖?
- 在主手中持有手杖。
- 在有多个实体的区域右键点击。
- 附近的实体将自动堆叠。
统计信息
使用 /mobstacker stats 显示以下信息:
- 性能提升百分比(基于减少的实体总数计算)。
- 按世界和类型划分的堆叠实体总数。
示例输出:
=== 堆叠实体统计 ===
性能提升:35.67%
按世界的统计:
- 世界:world
* ZOMBIE: 120
* SKELETON: 80
- 世界:nether
* PIGLIN: 50
MobStackerPremium
MobStackerPremium is a Spigot plugin designed to improve your Minecraft server's performance by reducing the number of entities through a mob stacking system. This plugin is fully customizable and offers powerful commands to manage and monitor stacked mob statistics.
Features
- Mob stacking: Automatically combines similar mobs when they're within a defined radius, reducing the total number of entities.
- Advanced customization:
- Define a stacking radius.
- Limit the maximum stack size.
- Exclude certain mob types from stacking (e.g., villagers).
- Detailed statistics:
- Display statistics of stacked mobs by world and type.
- Calculate performance gain in percentage.
- Powerful commands:
- Reload the configuration without restarting the server.
- Give players a special stick to manually force mob stacking in a defined area.
- Asynchronous optimization: The plugin is designed to run asynchronously to avoid any impact on server stability.
Installation
- Download the plugin JAR file.
- Place it in your Spigot server's
plugins folder.
- Restart your server to generate the configuration files.
- Customize the
config.yml file according to your needs.
Commands
| Command |
Description |
Permission |
/mobstacker |
Displays the plugin help. |
None |
/mobstacker help |
Displays the plugin help. |
None |
/mobstacker stats |
Displays statistics of stacked mobs by world and type. |
None |
/mobstacker reload |
Reloads the plugin configuration. |
mobstackerpremium.reload |
/mobstacker stick |
Gives a special stick that allows manual mob stacking. |
mobstackerpremium.stick |
Permissions
| Permission |
Description |
mobstackerpremium.reload |
Allows reloading the plugin configuration. |
mobstackerpremium.stick |
Allows obtaining the stacking stick. |
Configuration (config.yml)
Here's an example default configuration:
# MobStacker Premium Configuration
# Maximum stack size
max-stack-size: 50
# Radius for automatically stacking mobs
stack-radius: 5.0
# List of mob types excluded from stacking
excluded-mobs:
- VILLAGER
- WITHER
- ENDER_DRAGON
messages:
stick-success: "&aNearby mobs have been stacked!"
How the stacking stick works
The stacking stick is a special tool that allows players to manually force mob stacking in a defined area.
How to obtain the stick?
Use the following command (requires the mobstackerpremium.stick permission):
/mobstacker stick
How to use the stick?
- Hold the stick in your main hand.
- Right-click in an area containing multiple mobs.
- Nearby mobs will be automatically stacked.
Statistics
Use /mobstacker stats to display the following information:
- Performance gain in percentage (based on the total number of reduced entities).
- Total number of stacked mobs by world and type.
Example output:
=== Stacked mobs statistics ===
Performance gain: 35.67%
Statistics by world:
- World: world
* ZOMBIE: 120
* SKELETON: 80
- World: nether
* PIGLIN: 50
评论 0
登录后参与评分
还没有评论,来抢沙发吧