Package com.github.mafelp.utils
Class Defaults
java.lang.Object
com.github.mafelp.utils.Defaults
public class Defaults
extends java.lang.Object
The class the holds default values for all the values that are configured in the configuration.
-
Field Summary
Fields Modifier and Type Field Description private static long[]authorizedAccountIDsAccount IDs that are allowed to perform administrative tasks with the bot.private static java.lang.String[]gamesThe default games that could be played.private static java.lang.String[]happyBirthdaySongsLinks to happy birthday songs that could be played.private static long[]listeningChannelsThe default listening channels.private static long[]membersThe default members of the birthday. -
Constructor Summary
Constructors Constructor Description Defaults() -
Method Summary
Modifier and Type Method Description static org.bukkit.configuration.file.YamlConfigurationcreateDefaultConfig()The function that creates a default global configuration.static org.bukkit.configuration.file.YamlConfigurationcreateDefaultServerConfiguration()The function that creates a default server configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
listeningChannels
private static final long[] listeningChannelsThe default listening channels. -
members
private static final long[] membersThe default members of the birthday. -
games
private static final java.lang.String[] gamesThe default games that could be played. -
happyBirthdaySongs
private static final java.lang.String[] happyBirthdaySongsLinks to happy birthday songs that could be played. -
authorizedAccountIDs
private static final long[] authorizedAccountIDsAccount IDs that are allowed to perform administrative tasks with the bot.
-
-
Constructor Details
-
Defaults
public Defaults()
-
-
Method Details
-
createDefaultConfig
public static org.bukkit.configuration.file.YamlConfiguration createDefaultConfig()The function that creates a default global configuration.- Returns:
- The default global configuration.
-
createDefaultServerConfiguration
public static org.bukkit.configuration.file.YamlConfiguration createDefaultServerConfiguration()The function that creates a default server configuration.- Returns:
- The default server configuration.
-