TF-WorldGuardExtraFlagsPlugin/WG/src/main/java/net/goldtreeservers/worldguardextraflags/flags/Flags.java

75 lines
4.1 KiB
Java
Raw Normal View History

2018-04-12 17:57:52 +00:00
package net.goldtreeservers.worldguardextraflags.flags;
2017-07-14 21:12:30 +00:00
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;
2018-04-12 17:57:52 +00:00
import net.goldtreeservers.worldguardextraflags.flags.data.SoundData;
import net.goldtreeservers.worldguardextraflags.flags.helpers.BlockMaterialFlag;
import net.goldtreeservers.worldguardextraflags.flags.helpers.ForcedStateFlag;
2017-07-14 21:12:30 +00:00
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;
2017-07-14 21:12:30 +00:00
2018-04-12 17:57:52 +00:00
public final class Flags
2017-07-14 21:12:30 +00:00
{
public final static LocationFlag TELEPORT_ON_ENTRY = new LocationFlag("teleport-on-entry");
public final static LocationFlag TELEPORT_ON_EXIT = new LocationFlag("teleport-on-exit");
2018-04-12 17:57:52 +00:00
public final static SetFlag<String> COMMAND_ON_ENTRY = WorldGuardUtils.getCommunicator().getCustomSetFlag("command-on-entry", new CommandStringFlag(null));
public final static SetFlag<String> COMMAND_ON_EXIT = WorldGuardUtils.getCommunicator().getCustomSetFlag("command-on-exit", new CommandStringFlag(null));
2018-04-12 17:57:52 +00:00
public final static SetFlag<String> CONSOLE_COMMAND_ON_ENTRY = WorldGuardUtils.getCommunicator().getCustomSetFlag("console-command-on-entry", new CommandStringFlag(null));
public final static SetFlag<String> CONSOLE_COMMAND_ON_EXIT = WorldGuardUtils.getCommunicator().getCustomSetFlag("console-command-on-exit", new CommandStringFlag(null));
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static DoubleFlag WALK_SPEED = new DoubleFlag("walk-speed");
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static BooleanFlag KEEP_INVENTORY = new BooleanFlag("keep-inventory");
public final static BooleanFlag KEEP_EXP = new BooleanFlag("keep-exp");
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StringFlag CHAT_PREFIX = new StringFlag("chat-prefix");
public final static StringFlag CHAT_SUFFIX = new StringFlag("chat-suffix");
2018-04-12 17:57:52 +00:00
2018-04-12 18:06:27 +00:00
public final static SetFlag<PotionEffectType> BLOCKED_EFFECTS = new SetFlag<PotionEffectType>("blocked-effects", new PotionEffectTypeFlag(null));
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag GODMODE = new StateFlag("godmode", false);
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static LocationFlag RESPAWN_LOCATION = new LocationFlag("respawn-location");
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag WORLDEDIT = new StateFlag("worldedit", true);
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static SetFlag<PotionEffect> GIVE_EFFECTS = new SetFlag<PotionEffect>("give-effects", new PotionEffectFlag(null));
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag FLY = new StateFlag("fly", false);
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static SetFlag<SoundData> PLAY_SOUNDS = new SetFlag<SoundData>("play-sounds", new SoundDataFlag(null));
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag MYTHICMOB_EGGS = new StateFlag("mythicmobs-eggs", true);
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag FROSTWALKER = new StateFlag("frostwalker", true);
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag NETHER_PORTALS = new StateFlag("nether-portals", true);
2018-04-12 17:57:52 +00:00
public final static SetFlag<Material> ALLOW_BLOCK_PLACE = new SetFlag<Material>("allow-block-place", new BlockMaterialFlag(null));
public final static SetFlag<Material> DENY_BLOCK_PLACE = new SetFlag<Material>("deny-block-place", new BlockMaterialFlag(null));
public final static SetFlag<Material> ALLOW_BLOCK_BREAK = new SetFlag<Material>("allow-block-break", new BlockMaterialFlag(null));
public final static SetFlag<Material> DENY_BLOCK_BREAK = new SetFlag<Material>("deny-block-break", new BlockMaterialFlag(null));
2018-04-12 17:57:52 +00:00
public final static ForcedStateFlag GLIDE = new ForcedStateFlag("glide");
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag CHUNK_UNLOAD = new StateFlag("chunk-unload", true);
2018-04-12 17:57:52 +00:00
2017-07-14 21:12:30 +00:00
public final static StateFlag ITEM_DURABILITY = new StateFlag("item-durability", true);
2018-04-12 17:57:52 +00:00
public final static LocationFlag JOIN_LOCATION = new LocationFlag("join-location");
2017-07-14 21:12:30 +00:00
}