package net.goldtreeservers.worldguardextraflags.utils; import org.bukkit.Material; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; import com.sk89q.worldguard.protection.flags.BooleanFlag; import com.sk89q.worldguard.protection.flags.CommandStringFlag; import com.sk89q.worldguard.protection.flags.DoubleFlag; import com.sk89q.worldguard.protection.flags.LocationFlag; import com.sk89q.worldguard.protection.flags.SetFlag; import com.sk89q.worldguard.protection.flags.StateFlag; import com.sk89q.worldguard.protection.flags.StringFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.CustomSetFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.MaterialFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.PotionEffectFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.PotionEffectTypeFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.SoundDataFlag; public final class FlagUtils { public final static LocationFlag TELEPORT_ON_ENTRY = new LocationFlag("teleport-on-entry"); public final static LocationFlag TELEPORT_ON_EXIT = new LocationFlag("teleport-on-exit"); public final static CustomSetFlag COMMAND_ON_ENTRY = new CustomSetFlag("command-on-entry", new CommandStringFlag(null)); public final static CustomSetFlag COMMAND_ON_EXIT = new CustomSetFlag("command-on-exit", new CommandStringFlag(null)); public final static CustomSetFlag CONSOLE_COMMAND_ON_ENTRY = new CustomSetFlag("console-command-on-entry", new CommandStringFlag(null)); public final static CustomSetFlag CONSOLE_COMMAND_ON_EXIT = new CustomSetFlag("console-command-on-exit", new CommandStringFlag(null)); public final static DoubleFlag WALK_SPEED = new DoubleFlag("walk-speed"); public final static BooleanFlag KEEP_INVENTORY = new BooleanFlag("keep-inventory"); public final static BooleanFlag KEEP_EXP = new BooleanFlag("keep-exp"); public final static StringFlag CHAT_PREFIX = new StringFlag("chat-prefix"); public final static StringFlag CHAT_SUFFIX = new StringFlag("chat-suffix"); public final static SetFlag BLOCKED_EFFECTS = new SetFlag("blocked-effects", new PotionEffectTypeFlag(null)); public final static StateFlag GODMODE = new StateFlag("godmode", false); public final static LocationFlag RESPAWN_LOCATION = new LocationFlag("respawn-location"); public final static StateFlag WORLDEDIT = new StateFlag("worldedit", true); public final static SetFlag GIVE_EFFECTS = new SetFlag("give-effects", new PotionEffectFlag(null)); public final static StateFlag FLY = new StateFlag("fly", false); public final static SetFlag PLAY_SOUNDS = new SetFlag("play-sounds", new SoundDataFlag(null)); public final static StateFlag MYTHICMOB_EGGS = new StateFlag("mythicmobs-eggs", true); public final static StateFlag FROSTWALKER = new StateFlag("frostwalker", true); public final static StateFlag NETHER_PORTALS = new StateFlag("nether-portals", true); public final static SetFlag ALLOW_BLOCK_PLACE = new SetFlag("allow-block-place", new MaterialFlag(null)); public final static SetFlag DENY_BLOCK_PLACE = new SetFlag("deny-block-place", new MaterialFlag(null)); public final static SetFlag ALLOW_BLOCK_BREAK = new SetFlag("allow-block-break", new MaterialFlag(null)); public final static SetFlag DENY_BLOCK_BREAK = new SetFlag("deny-block-break", new MaterialFlag(null)); public final static StateFlag GLIDE = new StateFlag("glide", false); public final static StateFlag CHUNK_UNLOAD = new StateFlag("chunk-unload", true); public final static StateFlag ITEM_DURABILITY = new StateFlag("item-durability", true); }