From 1d6dba8d59353df6d83ed9bd250896eac10d4760 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 10 Aug 2019 11:41:01 -0700 Subject: [PATCH] Adds WitherFlag --- src/main/java/world/bentobox/bentobox/lists/Flags.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/lists/Flags.java b/src/main/java/world/bentobox/bentobox/lists/Flags.java index 899b1aa44..7f5e5d571 100644 --- a/src/main/java/world/bentobox/bentobox/lists/Flags.java +++ b/src/main/java/world/bentobox/bentobox/lists/Flags.java @@ -56,6 +56,7 @@ import world.bentobox.bentobox.listeners.flags.worldsettings.OfflineRedstoneList import world.bentobox.bentobox.listeners.flags.worldsettings.PistonPushListener; import world.bentobox.bentobox.listeners.flags.worldsettings.RemoveMobsListener; import world.bentobox.bentobox.listeners.flags.worldsettings.TreesGrowingOutsideRangeListener; +import world.bentobox.bentobox.listeners.flags.worldsettings.WitherListener; import world.bentobox.bentobox.managers.RanksManager; /** @@ -429,6 +430,12 @@ public final class Flags { */ public static final Flag ELYTRA = new Flag.Builder("ELYTRA", Material.ELYTRA).type(Type.PROTECTION).defaultRank(RanksManager.VISITOR_RANK).listener(new ElytraListener()).build(); + /** + * Toggles wither explosion damage + * @since 1.6.0 + */ + public static final Flag WITHER_DAMAGE = new Flag.Builder("WITHER_DAMAGE", Material.WITHER_SKELETON_SKULL).listener(new WitherListener()).type(Type.WORLD_SETTING).build(); + /** * Provides a list of all the Flag instances contained in this class using reflection. * @return List of all the flags in this class