Class MessageConfiguration
java.lang.Object
com.gamersafer.minecraft.auth.common.configuration.MessageConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MessageConfiguration.MessageCompoundprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected MessageConfiguration.MessageCompoundprotected MessageConfiguration.MessageCompoundprotected MessageConfiguration.MessageCompoundprotected MessageConfiguration.MessageCompoundprotected intprotected intprotected MessageConfiguration.MessageCompoundprotected MessageConfiguration.MessageCompoundprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintfinal voidLoad the config from the file specified in the constructor.protected voidloadValues(org.spongepowered.configurate.CommentedConfigurationNode root) Load values from a Configration load.protected <T> TtryGet(org.spongepowered.configurate.CommentedConfigurationNode root, Class<T> clazz, T def, String friendlyOptionName, Object... path) protected <T> List<T>tryGetList(org.spongepowered.configurate.CommentedConfigurationNode root, Class<T> clazz, List<T> def, String friendlyOptionName, Object... path)
-
Field Details
-
firstJoinMessageCompound
-
rejoinMessageCompound
-
rejoinMessageGuildCompound
-
reminderMessageCompound
-
reminderMessageGuildCompound
-
successMessageCompound
-
successMessageGuildCompound
-
messageOnWarning
-
messageOnMute
-
messageOnUnmute
-
permanentBanScreen
-
temporaryBanScreen
-
kickScreen
-
kickUnlinkedScreen
-
kick1191PlusChatScreen
-
reminderMessageTimerDelay
protected int reminderMessageTimerDelay -
reminderMessageTimerDelayGuild
protected int reminderMessageTimerDelayGuild
-
-
Constructor Details
-
MessageConfiguration
-
-
Method Details
-
loadConfig
public final void loadConfig()Load the config from the file specified in the constructor. To load additional value override theloadValuesmethod. -
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
-
getFirstJoinMessageCompound
-
getRejoinMessageCompound
-
getRejoinMessageGuildCompound
-
getReminderMessageCompound
-
getReminderMessageGuildCompound
-
getSuccessMessageCompound
-
getSuccessMessageGuildCompound
-
getMessageOnWarning
-
getMessageOnMute
-
getMessageOnUnmute
-
getReminderMessageTimerDelay
public int getReminderMessageTimerDelay() -
getReminderMessageTimerDelayGuild
public int getReminderMessageTimerDelayGuild() -
getPermanentBanScreen
-
getTemporaryBanScreen
-
getKickScreen
-
getKickUnlinkedScreen
-
getKick1191PlusChatScreen
-
tryGet
-
tryGetList
-