public class FlagManager
extends java.lang.Object
Constructor and Description |
---|
FlagManager()
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addFlag(AbstractFlag flag)
Register an AbstractFlag with PlotSquared
|
static AbstractFlag |
getFlag(java.lang.String string)
Get an AbstractFlag by a string Returns null if flag does not exist
|
static AbstractFlag |
getFlag(java.lang.String string,
boolean create)
Get an AbstractFlag by a string
|
static java.util.List<AbstractFlag> |
getFlags()
Get a list of registered AbstractFlag objects
|
static java.util.List<AbstractFlag> |
getFlags(org.bukkit.entity.Player player)
Get a list of registerd AbstragFlag objects based on player
permissions
|
static java.util.List<AbstractFlag> |
getPlotFlags(Plot plot)
Get the flags for a plot
|
static Flag[] |
parseFlags(java.util.List<java.lang.String> flagstrings)
|
static boolean |
removeFlag(AbstractFlag flag)
Remove a registered AbstractFlag
|
static Flag[] |
removeFlag(Flag[] flags,
java.lang.String r) |
static Flag[] |
removeFlag(java.util.Set<Flag> flags,
java.lang.String r) |
public static boolean addFlag(AbstractFlag flag)
flag
- Flag to registerpublic static java.util.List<AbstractFlag> getFlags()
public static java.util.List<AbstractFlag> getFlags(org.bukkit.entity.Player player)
player
- with permissionspublic static AbstractFlag getFlag(java.lang.String string)
string
- Flag Keypublic static AbstractFlag getFlag(java.lang.String string, boolean create)
string
- Flag Keycreate
- If to create the flag if it does not existpublic static boolean removeFlag(AbstractFlag flag)
flag
- Flag Keypublic static Flag[] parseFlags(java.util.List<java.lang.String> flagstrings)
public static java.util.List<AbstractFlag> getPlotFlags(Plot plot)
plot
- Plot to search in