Package xyz.srnyx.annoyingapi.options
Class StatsOptions.BStatsOptions
java.lang.Object
xyz.srnyx.annoyingapi.options.StatsOptions.BStatsOptions
- Enclosing class:
StatsOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether to delete the old bstats.yml file when the plugin is loaded@Nullable IntegerEven more of a convenience thanloadersuch that you provide just the ID, rather than an entire loader.@Nullable Class<? extends BStatsLoader> Convenience so that a separateBStatsProviderclass doesn't need to be made (the API will create an anonymous one for you). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteOldBStatsFile(boolean deleteOldBStatsFile) id(int id) loader(@Nullable Class<? extends BStatsLoader> loader)
-
Field Details
-
loader
Convenience so that a separateBStatsProviderclass doesn't need to be made (the API will create an anonymous one for you).
This is overriden if aBStatsProviderclass IS found duringautomatic registration. -
id
Even more of a convenience thanloadersuch that you provide just the ID, rather than an entire loader.
However, this means you must define custom charts outside of a loader, which is not recommended.
So, it's recommended to only use this if you don't want to define anything custom!
This is overriden byloaderif both are provided. -
deleteOldBStatsFile
public boolean deleteOldBStatsFileWhether to delete the old bstats.yml file when the plugin is loaded
-
-
Constructor Details
-
BStatsOptions
public BStatsOptions()
-
-
Method Details
-
loader
@NotNull public StatsOptions.BStatsOptions loader(@Nullable @Nullable Class<? extends BStatsLoader> loader) -
id
-
deleteOldBStatsFile
-