Skip to content

Commit

Permalink
Config & plugin.yml, remove from beta
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHorkles committed Jul 6, 2024
1 parent c8be420 commit b882923
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 27 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>net.silverstonemc</groupId>
<artifactId>EntityClearer</artifactId>
<version>3.5.0-beta</version>
<version>3.5.0</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
55 changes: 30 additions & 25 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,23 @@ worlds:


# Example 3
creative:
interval: -1
entities:
- ARMOR_STAND
- ARROW
- BOAT
- DROPPED_ITEM
- MINECART
- MINECART_CHEST
- MINECART_FURNACE
- MINECART_HOPPER
- MINECART_TNT
spawn-reason:
enabled: false
reasons:
- SPAWNER
- SPAWNER_EGG
#creative:
# interval: -1
# entities:
# - ARMOR_STAND
# - ARROW
# - BOAT
# - DROPPED_ITEM
# - MINECART
# - MINECART_CHEST
# - MINECART_FURNACE
# - MINECART_HOPPER
# - MINECART_TNT
# spawn-reason:
# enabled: false
# reasons:
# - SPAWNER
# - SPAWNER_EGG



Expand Down Expand Up @@ -176,16 +176,21 @@ messages:
# {TIMELEFT} - the time remaining before the clear task is run
# {TIME} - will output "minute(s)" or "second(s)" depending on the time left

actionbar-message: "<#ff9b0f><bold>Common entities will be removed in <yellow>{TIMELEFT} <#ff9b0f>{TIME}!"
chat-message: "<red>Common entities will be removed in <gray>{TIMELEFT} <red>{TIME}!"
actionbar-message: "<#ff9b0f><bold>Common entities will be removed in <yellow>{TIMELEFT}</yellow> {TIME}!"
chat-message: "<red>Common entities will be removed in <gray>{TIMELEFT}</gray> {TIME}!"
log-message: "<gold>Common entities will be removed in <yellow>{TIMELEFT}</yellow> {TIME}!"

# Placeholders:
# {ENTITIES} - the amount of entities removed after the clear task has run

actionbar-completed-message: "<#ff9b0f><bold>Removed <yellow>{ENTITIES} <#ff9b0f>entities!"
actionbar-completed-low-tps-message: "<#ff9b0f><bold>Removed <yellow>{ENTITIES} <#ff9b0f>entities due to low TPS!"
chat-completed-message: "<red>Removed <gray>{ENTITIES} <red>entities!"
chat-completed-low-tps-message: "<red>Removed <gray>{ENTITIES} <red>entities due to low TPS!"
actionbar-completed-message: "<#ff9b0f><bold>Removed <yellow>{ENTITIES}</yellow> entities!"
actionbar-completed-low-tps-message: "<#ff9b0f><bold>Removed <yellow>{ENTITIES}</yellow> entities due to low TPS!"

chat-completed-message: "<red>Removed <gray>{ENTITIES}</gray> entities!"
chat-completed-low-tps-message: "<red>Removed <gray>{ENTITIES}</gray> entities due to low TPS!"

log-completed-message: "<yellow>Removed <gold>{ENTITIES}</gold> entities!"
log-completed-low-tps-message: "<red>Removed <gray>{ENTITIES}</gray> entities due to low TPS!"



Expand All @@ -201,12 +206,12 @@ low-tps:
threshold: 17

# Should there be a chat message sent to players with the `entityclearer.lowtps`
# permission stating that the TPS is low?
# permission stating that the TPS is low? This is run BEFORE the clearing task starts
chat: true

# Placeholders:
# {TPS} - the current TPS of the server
chat-message: "<red><bold>Warning: TPS low <dark_gray>(<gray>{TPS}<dark_gray>)<red>! Removing entities..."
chat-message: "<red><bold>Warning: TPS low <dark_gray>(<gray>{TPS}</gray>)</dark_gray>! Removing entities..."

# Should the list of entities to remove be separate from the one defined above?
separate-entity-list: false
Expand Down
11 changes: 10 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,22 @@ permissions:
description: Create debug dump
entityclearer.lowtps:
default: op
description: Notifications when the TPS is low
description: Notification when the TPS is low before the clear task runs
entityclearer.notify:
default: op
description: Notifications when there are problems within the plugin
entityclearer.reload:
default: op
description: Reload the plugin
entityclearer.removalnotifs.actionbar:
default: true
description: Actionbar notifications during the entity removal task
entityclearer.removalnotifs.chat:
default: true
description: Chat notifications during the entity removal task
entityclearer.removalnotifs.sound:
default: true
description: Sound during the entity removal task
entityclearer.updatenotifs:
default: op
description: Notifications when there is an update available

0 comments on commit b882923

Please sign in to comment.