Class RegionControlFlags
java.lang.Object
tfagaming.projects.minecraft.homestead.flags.RegionControlFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringfrom(long flag) Get flag name from a bitwise value.getFlags()Get list of flag names.getSet(long flags) Get list of flag names that exist in the bitwise value.getUnset(long flags) Get list of flag names that does not exist in the bitwise value.static longGet bitwise value of a flag name.
-
Field Details
-
TRUST_PLAYERS
public static final long TRUST_PLAYERS- See Also:
-
UNTRUST_PLAYERS
public static final long UNTRUST_PLAYERS- See Also:
-
BAN_PLAYERS
public static final long BAN_PLAYERS- See Also:
-
UNBAN_PLAYERS
public static final long UNBAN_PLAYERS- See Also:
-
CLAIM_CHUNKS
public static final long CLAIM_CHUNKS- See Also:
-
UNCLAIM_CHUNKS
public static final long UNCLAIM_CHUNKS- See Also:
-
DEPOSIT_MONEY
public static final long DEPOSIT_MONEY- See Also:
-
WITHDRAW_MONEY
public static final long WITHDRAW_MONEY- See Also:
-
SET_GLOBAL_FLAGS
public static final long SET_GLOBAL_FLAGS- See Also:
-
SET_WORLD_FLAGS
public static final long SET_WORLD_FLAGS- See Also:
-
SET_MEMBER_FLAGS
public static final long SET_MEMBER_FLAGS- See Also:
-
SET_SPAWN
public static final long SET_SPAWN- See Also:
-
MANAGE_SUBAREAS
public static final long MANAGE_SUBAREAS- See Also:
-
RENAME_REGION
public static final long RENAME_REGION- See Also:
-
SET_DESCRIPTION
public static final long SET_DESCRIPTION- See Also:
-
MANAGE_LOGS
public static final long MANAGE_LOGS- See Also:
-
KICK_PLAYERS
public static final long KICK_PLAYERS- See Also:
-
SET_WEATHER_AND_TIME
public static final long SET_WEATHER_AND_TIME- See Also:
-
-
Method Details
-
getFlags
Get list of flag names. -
valueOf
Get bitwise value of a flag name. If the flag is undefined, it will return a 0.- Parameters:
name- The flag name
-
from
Get flag name from a bitwise value. If the bitwise value is undefined, it will return an unknown-flag.- Parameters:
flag- The bitwise value
-
getSet
Get list of flag names that exist in the bitwise value.- Parameters:
flags- The flags
-
getUnset
Get list of flag names that does not exist in the bitwise value.- Parameters:
flags- The flags
-