package net.goldtreeservers.worldguardextraflags.flags; 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.data.SoundData; import net.goldtreeservers.worldguardextraflags.flags.helpers.BlockMaterialFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.ForcedStateFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.PotionEffectFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.PotionEffectTypeFlag; import net.goldtreeservers.worldguardextraflags.flags.helpers.SoundDataFlag; import net.goldtreeservers.worldguardextraflags.wg.WorldGuardUtils; public final class Flags { 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 SetFlag COMMAND_ON_ENTRY = WorldGuardUtils.getCommunicator().getCustomSetFlag("command-on-entry", new CommandStringFlag(null)); public final static SetFlag COMMAND_ON_EXIT = WorldGuardUtils.getCommunicator().getCustomSetFlag("command-on-exit", new CommandStringFlag(null)); public final static SetFlag CONSOLE_COMMAND_ON_ENTRY = WorldGuardUtils.getCommunicator().getCustomSetFlag("console-command-on-entry", new CommandStringFlag(null)); public final static SetFlag CONSOLE_COMMAND_ON_EXIT = WorldGuardUtils.getCommunicator().getCustomSetFlag("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 BlockMaterialFlag(null)); public final static SetFlag DENY_BLOCK_PLACE = new SetFlag("deny-block-place", new BlockMaterialFlag(null)); public final static SetFlag ALLOW_BLOCK_BREAK = new SetFlag("allow-block-break", new BlockMaterialFlag(null)); public final static SetFlag DENY_BLOCK_BREAK = new SetFlag("deny-block-break", new BlockMaterialFlag(null)); public final static ForcedStateFlag GLIDE = new ForcedStateFlag("glide"); public final static StateFlag CHUNK_UNLOAD = new StateFlag("chunk-unload", true); public final static StateFlag ITEM_DURABILITY = new StateFlag("item-durability", true); public final static LocationFlag JOIN_LOCATION = new LocationFlag("join-location"); }