Package xyz.srnyx.annoyingapi.options
Class BStatsOptions
java.lang.Object
xyz.srnyx.javautilities.parents.Stringable
xyz.srnyx.annoyingapi.options.BStatsOptions
public class BStatsOptions
extends xyz.srnyx.javautilities.parents.Stringable
Represents the options for bStats
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull BStatsOptionsSetsfileName@NotNull BStatsOptionsfileOptions(@NotNull Consumer<AnnoyingResource.Options> consumer) SetsfileOptionsusing the specifiedConsumer@NotNull BStatsOptionsfileOptions(AnnoyingResource.Options fileOptions) SetsfileOptions@NotNull BStatsOptionsSetsidstatic @NotNull BStatsOptionsload(@NotNull org.bukkit.configuration.ConfigurationSection section) Loads the options from the specifiedConfigurationSection@NotNull BStatsOptionsSetstoggleKeyMethods inherited from class xyz.srnyx.javautilities.parents.Stringable
toString, toString, toString, toString, toString
-
Field Details
-
id
-
fileName
REQUIREDThe name of the file to use for the bStats toggleThis is required as bStats requires a way to disable metrics. Tampering with this in such a way that removes the ability to disable metrics will result in your plugin being banned from bStats
IF YOU CHANGE THIS: The file MUST have
toggleKeyfor abooleanto toggle bStats. If it doesn't, bStats will always be disabled -
fileOptions
-
toggleKey
OPTIONALThe key for the node people can change to toggle bStats in thebStatsfile
-
-
Constructor Details
-
BStatsOptions
public BStatsOptions()Constructs a newBStatsOptionsinstance with default values
-
-
Method Details
-
load
@NotNull public static @NotNull BStatsOptions load(@NotNull @NotNull org.bukkit.configuration.ConfigurationSection section) Loads the options from the specifiedConfigurationSection- Parameters:
section- the section to load the options from- Returns:
- the loaded options
-
id
Setsid- Parameters:
id- the newid- Returns:
- the
BStatsOptionsinstance for chaining
-
fileName
SetsfileName- Parameters:
fileName- the newfileName- Returns:
- the
BStatsOptionsinstance for chaining
-
fileOptions
SetsfileOptions- Parameters:
fileOptions- the newfileOptions- Returns:
- the
BStatsOptionsinstance for chaining
-
fileOptions
@NotNull public @NotNull BStatsOptions fileOptions(@NotNull @NotNull Consumer<AnnoyingResource.Options> consumer) SetsfileOptionsusing the specifiedConsumer- Parameters:
consumer- theConsumerto accept the newfileOptions- Returns:
- the
BStatsOptionsinstance for chaining
-
toggleKey
SetstoggleKey- Parameters:
toggleKey- the newtoggleKey- Returns:
- the
BStatsOptionsinstance for chaining
-