TheCleaner 是一个简单的清理工具(类似于 WorldGuard 中的 '/stoplag'),可安全地清除世界中悬空的实体。它会忽略玩家、玩家的宠物以及画作,并且不会清理当前正在被玩家使用的载具。
信息
命令
/cleanup
- 作为玩家,此命令将清理你当前世界中的实体。默认情况下,它会忽略画作、其他玩家和玩家宠物。
- 作为控制台,此命令将清理所有世界中的实体(使用相同的标准)。
/sysstat
- 显示内存使用信息和服务器刻率
- 配合 --verbose 参数,还会显示环境 Java 版本和服务器操作系统
标志
- 实体标志
- * --monster - 此标志使命令仅清除怪物。/clean --monster
- * --animal - 此标志使命令仅清除动物。/clean --animal
- * --watermob - 此标志使命令仅清除水生生物。/clean --watermob
- * --vehicle - 此标志使命令仅清除载具实体。不能与 --painting 一起使用。/clean --vehicle
- * --painting - 此标志使命令仅清除画作。不能与 --vehicle 一起使用。/clean --painting
- * --golem - 此标志使命令在清除所有常规实体的同时,也清除玩家创造的傀儡。/clean --golem
- * --pet - 此标志使命令在清除所有常规实体的同时,也清除宠物。/clean --pet
- * --villager - 指定此标志将导致村民被移除。默认情况下它们不受影响。/clean --villager
- 信息性标志
- * --info - 显示有关给定世界、当前世界或所有世界的实体信息(从控制台执行,或配合 --all 参数)。/clean --info
- * --verbose - 在清理过程中显示更完整的信息。
- * --broadcast - 向所有在线玩家发送通知,告知实体正在被清理。
- * --radius=[num] - 设置以玩家为中心的半径范围,在此范围之外的实体不会被清理。
- --force - 强制从服务器中移除所有实体(不包括玩家和画作)。也可搭配其他标志使用。若未添加额外标志,则会包含宠物和载具(即使它们正在使用中),但不包括画作。/clean --force
- world name - 可用于指定需要清理的具体世界。/clean world_nether
标志用法
可以通过任意组合的方式使用标志来创建动态清理开关。如果你希望清除服务器中的动物,因为繁殖失控了,只需运行 /clean --animal --all。若要生成一份详细报告,列出哪些实体被清理以及清理数量,可以使用 --report。
标志是显式的。如果你在命令中没有设置某个标志,则该类型的实体将不会被清理。
启动时清理
通过配置选项 startup.clean 和 startup.flags,可以让 TheCleaner 在世界加载完成后立即清除实体。这在某些情况下很有帮助,例如你炸毁了大量 TNT 导致无法重新连接回服务器。在此场景下,--info、--all 和 --verbose 不会产生任何效果。
示例命令
/clean --all --monster
/clean --watermob world
/clean --force --verbose --broadcast
/clean --broadcast --vehicle
/sysstat
权限
- thecleaner.monster
- thecleaner.animal
- thecleaner.watermob
- thecleaner.vehicle
- thecleaner.painting
- thecleaner.pet
- thecleaner.golem
- thecleaner.villager
- thecleaner.force
- thecleaner.info
- thecleaner.all
- thecleaner.verbose
- thecleaner.broadcast
- thecleaner.world.[世界名称]
- thecleaner.* - 包含以上所有权限
TheCleaner is a simple clean up utility (ala '/stoplag' from WorldGuard) which safely cleans up the world's dangling entities. It ignores players, their pets, and paintings, and will not clean any vehicle that is currently in use by a player.
Information
- Github
- Jenkins 2.1. Use of the plugin builds from Jenkins is unofficial, unsupported and unapproved by BukkitDev Staff!
Commands
/cleanup
- As a player, this command will clean the entities in your current world. It ignores paintings, other players, and player pets by default.
- As the console, this command will clean the entities in all worlds (using the same criteria).
/sysstat
- Display memory usage information and server tick rate
- With --verbose, also displays environment java version and server operating system
Flags
- Entity Flags
- * --monster - This flag causes the command to only clear out monsters. /clean --monster
- * --animal - This flag causes the command to only clear out animals. /clean --animal
- * --watermob - This flag causes the command to only clear out water mobs. /clean --watermob
- * --vehicle - This flag will cause the command to only clear out vehicle entities. Cannot be used with --painting. /clean --vehicle
- * --painting - This flag will cause the command to only clear out paintings. Cannot be used with --vehicle. /clean --painting
- * --golem - This flag will cause the command to clear out player created golems, in addition to all the regular entities. /clean --golem
- * --pet - This flag will cause the command to clear out pets, in addition to all the regular entities. /clean --pet
- * --villager - Specifying this flag will cause villagers to be removed. By default they are untouched. /clean --villager
- Informational flags
- * --info - Displays entity information about the given worlds, your current world, or all worlds (from console or with --all). /clean --info
- * --verbose - Displays more complete information during a clean.
- * --broadcast - Sends notices to all online players that the entities are being cleaned.
- * --radius=[num] - Sets a radius around a player, outside of which entities will not be cleaned.
- --force - Causes all entities (excluding players and paintings) to be removed forcefully from the server. Can also include a flag. Without additional flags, Includes pets and vehicles (even if they're in use), but not paintings. /clean --force
- world name - Can be used to specify a specific world for cleanup. /clean world_nether
Flag Usage
Flags can be combined in any number of ways to create dynamic cleanup switches. If you want to clear out the server's animals because breeding got out of control, just do /clean --animal --all. To generate a detailed report of which entities were cleaned and how many, you can use --report.
Flags are explicit. If you don't set one in the command, that type of entity will NOT be cleaned.
Startup
Specifying the config option startup.clean and startup.flags allows TheCleaner to clear out entities when the world finishes loading, which could help for cases where you've blown up a lot of TNT and can't get back onto your server. --info, --all, and --verbose do not do anything in this case.
Example commands
/clean --all --monster
/clean --watermob world
/clean --force --verbose --broadcast
/clean --broadcast --vehicle
/sysstat
Permissions
- thecleaner.monster
- thecleaner.animal
- thecleaner.watermob
- thecleaner.vehicle
- thecleaner.painting
- thecleaner.pet
- thecleaner.golem
- thecleaner.villager
- thecleaner.force
- thecleaner.info
- thecleaner.all
- thecleaner.verbose
- thecleaner.broadcast
- thecleaner.world.[world name]
- thecleaner.* - Includes all above permissions
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
下载 TheCleaner
版本 1.10 b99
- 修复了性能方面的疏忽。
- 区块/实体现在已启用调试模式。
- /sysstat 输出现在更加详细。
- 新增以下标志:
-
- --explosive
-
- --projectile
-
- --vitals
-
- --wither
- 请参阅比较记录以获取完整更新日志。
版本 1.b b35
- 标志现在为显式设置。如果您未设置某个标志,则不会清理该类型的实体。
- 新增 --report 标志。将操作期间清理的所有实体的报告保存至 plugins/TheCleaner/report.txt。
版本 1.5 b30
- 更新至 v1.5
- 添加了游戏内动态帮助。如果玩家没有某个标志的权限,则该标志不会显示。
- /clean 不再在无标志的情况下执行清理。它将显示帮助信息。
- WorldLoadEvent 现在会创建一个世界权限节点,默认值为 OP(管理员)
- 新标志:--radius=[数字]。指定围绕您自身进行实体清理的半径范围。
- 新标志:--item。指定移除服务器中存活超过 60 秒的物品。
- --all 和世界限定符现在能正常工作。
- 自 Tekkit v3 起,TheCleaner 现可同时兼容 Bukkit 和 TheCleaner(无需更改)。
版本 1.4 b26
- 更新至 v1.4
- 修复了详细输出问题——现在逻辑通顺
- 添加了 --broadcast 标志
- 改进了世界限定符和权限检查的输出
版本 1.3 b6
- 修复了运行时 == 1000ms 时 /sysstat 显示“服务器性能:极差”的问题
- 移除了对 CommandSender 的存储引用
- 更新至 1.2.5-R3.0
版本 1.3 b3
- 修复了未捕获异常。
版本 Tekkit/1.3 b1
- 将依赖项更改为 Bukkit 1.1-R4
- 移除了不兼容的类型转换
版本 1.3 b2
- 在 config.yml 中添加了生成限制功能
- 改进了消息输出
- 改进了 /sysstat 命令
版本 1.2 b1
- 添加了 --verbose 标志,用于显示清理内容的详细输出。
- 添加了 EntityExplodeEvent 以追踪可能导致世界瘫痪或损坏的大规模爆炸链。
- 改进了消息输出。
- 在 Griefcraft/TheCleaner 添加了 Jenkins/持续集成服务
版本 1.1 b8
- 添加了宠物和村民的标志
- 添加了在启动时清理世界的选项,可在插件的 config.yml 中进行指定
版本 1.0
- 进行了小幅效率优化
- 修复了版本号字符串
版本 1.0
- 首次发布
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧