Add some more listeners

- Also use setShouldAbortSpawn so it doesn't just try forever
 - Add config to enable or disable all paper listeners
This commit is contained in:
dordsor21
2020-04-30 17:50:52 +01:00
parent 85a75ad868
commit c6dc9ee189
3 changed files with 70 additions and 6 deletions

View File

@ -359,8 +359,11 @@ public class Settings extends Config {
@Comment("Enable or disable parts of the plugin specific to using Paper")
public static final class Paper_Components {
@Comment("Enable Paper's listeners.") public static boolean PAPER_LISTENERS = true;
@Comment("Prevent entities from leaving plots") public static boolean ENTITY_PATHING = true;
@Comment("Use paper's PreCreatureSpawnEvent") public static boolean PRE_SPAWN_LISTENER = true;
@Comment(
"Cancel entity spawns when the chunk is loaded if the PlotArea's mob spawning is off")
public static boolean CANCEL_CHUNK_SPAWN = true;
}