Class OptionResidentMode<T>
java.lang.Object
com.palmergames.bukkit.towny.object.resident.mode.AbstractResidentMode
com.palmergames.bukkit.towny.object.resident.mode.OptionResidentMode<T>
- Direct Known Subclasses:
DevmodeResidentMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearOptions(Resident resident) Clear the resident mode option for a resident with the resident mode.protected TGet the resident mode option for a resident with the resident mode, or null.protected voidSet the resident mode option for a resident with the resident mode, replacing any previous resident mode option for the resident.protected voidToggle the resident mode on or off.protected abstract voidToggle the resident mode on or off.Methods inherited from class AbstractResidentMode
name, permissionNode
-
Constructor Details
-
OptionResidentMode
-
-
Method Details
-
getOption
-
setOption
-
clearOptions
Clear the resident mode option for a resident with the resident mode.- Parameters:
resident- The resident whom to clear the resident mode option.
-
toggle
Toggle the resident mode on or off.- Specified by:
togglein classAbstractResidentMode- Parameters:
resident- Resident to toggle mode on or off for.
-
toggle
-