Skip to content

Commit

Permalink
修改清理结束的通知可以设置为""以禁用
Browse files Browse the repository at this point in the history
  • Loading branch information
4o4E committed Feb 15, 2022
1 parent 032349e commit b8bab03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

> 基于BukkitAPI的清理插件, 适用于Spigot或Paper以及其他绝大多数Bukkit的下游分支核心
[![Release](https://img.shields.io/github/v/release/4o4E/EClean)](https://github.com/4o4E/EClean/releases)
[![Downloads](https://img.shields.io/github/downloads/4o4E/EClean/total)](https://github.com/4o4E/EClean/releases/latest)
[![Release](https://img.shields.io/github/v/release/4o4E/EClean)](https://github.com/4o4E/EClean/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/4o4E/EClean/total)](https://github.com/4o4E/EClean/releases)

## 指令

Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/com/e404/clean/Clean.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ object Clean {
// 清理
drop.forEach(Entity::remove)
c.getString("drop.finish")?.apply {
if (trim() == "") return
val s = placeholder(mapOf(
"clean" to drop.size,
"all" to all
Expand Down Expand Up @@ -151,6 +152,7 @@ object Clean {
// 清理
entities.forEach(Entity::remove)
c.getString("living.finish")?.apply {
if (trim() == "") return
val s = placeholder(mapOf(
"clean" to entities.size,
"all" to all
Expand Down Expand Up @@ -235,6 +237,7 @@ object Clean {
// 清理
clean.forEach(Entity::remove)
c.getString("chunk.finish")?.apply {
if (trim() == "") return
val s = placeholder(mapOf(
"clean" to clean.size
))
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ living:
disable_world:
- "不清理的世界"

# 清理结束后的通知
# 清理结束后的通知(设置为""以禁用)
finish: "&a生物清理完成, 已清理{clean}/{all}"

settings:
Expand Down Expand Up @@ -66,7 +66,7 @@ drop:
disable_world:
- "不清理的世界"

# 清理结束后的通知
# 清理结束后的通知(设置为""以禁用)
finish: "&a掉落物清理完成, 已清理{clean}/{all}"

# 若设置为true则按黑名单匹配(名字匹配的才清理)
Expand Down Expand Up @@ -98,7 +98,7 @@ chunk:
disable_world:
- "不清理的世界"

# 清理结束后的通知
# 清理结束后的通知(设置为""以禁用)
finish: "&a密集实体清理完成, 清理{clean}个"

settings:
Expand Down

0 comments on commit b8bab03

Please sign in to comment.