Class PlayerPreferencesConfiguration

java.lang.Object
com.gamersafer.minecraft.auth.common.configuration.PlayerPreferencesConfiguration

public class PlayerPreferencesConfiguration extends Object
  • Field Details

    • adultAllowSendChat

      protected boolean adultAllowSendChat
    • youthAllowSendChat

      protected boolean youthAllowSendChat
    • minorAllowSendChat

      protected boolean minorAllowSendChat
  • Constructor Details

    • PlayerPreferencesConfiguration

      public PlayerPreferencesConfiguration(File file, ILogger ilogger)
  • Method Details

    • loadConfig

      public final void loadConfig()
      Load the config from the file specified in the constructor. To load additional value override the loadValues 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

      public boolean isAllowSendChat(AgeGroupLabel ageGroupLabel)
    • isAdultAllowSendChat

      public boolean isAdultAllowSendChat()
    • isYouthAllowSendChat

      public boolean isYouthAllowSendChat()
    • isMinorAllowSendChat

      public boolean isMinorAllowSendChat()