Class PlayerPreferencesConfiguration
java.lang.Object
com.gamersafer.minecraft.auth.common.configuration.PlayerPreferencesConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isAllowSendChat
(AgeGroupLabel ageGroupLabel) boolean
boolean
final void
Load the config from the file specified in the constructor.protected void
loadValues
(org.spongepowered.configurate.CommentedConfigurationNode root) Load values from a Configration load.
-
Field Details
-
adultAllowSendChat
protected boolean adultAllowSendChat -
youthAllowSendChat
protected boolean youthAllowSendChat -
minorAllowSendChat
protected boolean minorAllowSendChat
-
-
Constructor Details
-
PlayerPreferencesConfiguration
-
-
Method Details
-
loadConfig
public final void loadConfig()Load the config from the file specified in the constructor. To load additional value override theloadValues
method. -
loadValues
protected void loadValues(org.spongepowered.configurate.CommentedConfigurationNode root) Load values from a Configration load. Override this method to read extra values.- Parameters:
root
- the root level node of the configuration
-
isAllowSendChat
-
isAdultAllowSendChat
public boolean isAdultAllowSendChat() -
isYouthAllowSendChat
public boolean isYouthAllowSendChat() -
isMinorAllowSendChat
public boolean isMinorAllowSendChat()
-