Skip to content

Commit

Permalink
Add TRIAL_SPAWNER to default list of reasons Towny won't remove mobs.
Browse files Browse the repository at this point in the history
New Config Migration: ",TRIAL_SPAWNER" will be added to the
town_mob_removal_ignored_spawn_causes list in the config.

This only works on Paper servers.

Closes #7709.
  • Loading branch information
LlmDl committed Dec 29, 2024
1 parent 0d68a0e commit 6c88aec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Towny/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<artifactId>towny</artifactId>
<packaging>jar</packaging>
<version>0.101.0.4</version>
<version>0.101.0.5</version>

<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1900,10 +1900,10 @@ public enum ConfigNodes {
"# Prevent the spawning of villager babies in towns."),
PROT_MOB_REMOVE_IGNORED_SPAWN_CAUSES(
"protection.town_mob_removal_ignored_spawn_causes",
"",
"TRIAL_SPAWNER",
"",
"# A comma seperated list of spawn causes, if an entity has a spawn cause that is in this list they will not be removed by town mob removal.",
"# For the list of valid spawn causes, see https://jd.papermc.io/paper/1.20/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html",
"# For the list of valid spawn causes, see https://jd.papermc.io/paper/1.21.4/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html",
"# Due to technical reasons, this setting only works on Paper servers."),

PROT_MOB_DISABLE_TRIGGER_PRESSURE_PLATE_STONE(
Expand Down
10 changes: 10 additions & 0 deletions Towny/src/main/resources/config-migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -884,5 +884,15 @@
"key": "disable_modern_eco"
}
]
},
{
"version": "0.101.0.5",
"changes": [
{
"type": "APPEND",
"path": "protection.town_mob_removal_ignored_spawn_causes",
"value": ",TRIAL_SPAWNER"
}
]
}
]

0 comments on commit 6c88aec

Please sign in to comment.