Class MessageConfiguration
java.lang.Object
com.gamersafer.minecraft.auth.common.configuration.MessageConfiguration
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected MessageConfiguration.MessageCompound
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected MessageConfiguration.MessageCompound
protected MessageConfiguration.MessageCompound
protected MessageConfiguration.MessageCompound
protected MessageConfiguration.MessageCompound
protected int
protected int
protected MessageConfiguration.MessageCompound
protected MessageConfiguration.MessageCompound
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
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.protected <T> T
tryGet
(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 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
-
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
-