Package net.realdarkstudios.commons
Class CommonsAPI
java.lang.Object
net.realdarkstudios.commons.misc.BaseAPI
net.realdarkstudios.commons.CommonsAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommonsAPIget()Gets the instance of CommonsAPIGets the API Localization forRDSCommonsGets the API Logger forRDSCommonsGets the Localization Provider forRDSCommonsGets the Auto Updater forRDSCommonsGets the version fromRDSCommonsGets the version string fromRDSCommonsbooleanChecks if the CommonsAPI has been initializedstatic voidLogs all the messages at the INFO level from the Commons Logger.registerLocalization(org.bukkit.plugin.Plugin plugin, Locale locale) registerLocalization(org.bukkit.plugin.Plugin plugin, Locale locale, String prefix) static voidtInfo(LocalizedMessages.Key key, Object... formatArgs) Logs the message using theLocalizedMessagessystem at the INFO levelstatic voidtWarning(LocalizedMessages.Key key, Object... formatArgs) Logs the message using theLocalizedMessagessystem at the WARNING levelstatic voidLogs all the messages at the WARN level
-
Constructor Details
-
CommonsAPI
public CommonsAPI()
-
-
Method Details
-
getLocalizationProvider
Gets the Localization Provider forRDSCommons- Returns:
- The
LocalizationProvider - Since:
- 1.0.0.0
-
getAPILocalization
Gets the API Localization forRDSCommons- Returns:
- The API
Localization - Since:
- 1.0.0.0
-
getAPILogger
Gets the API Logger forRDSCommons- Returns:
- The API
RDSLogHelper - Since:
- 1.0.0.0
-
getUpdater
Gets the Auto Updater forRDSCommons- Returns:
- The
RDSCommonsUpdater - Since:
- 1.0.0.0
-
getVersion
Gets the version fromRDSCommons- Returns:
- The
Version - Since:
- 1.0.0.0
-
getVersionString
Gets the version string fromRDSCommons- Returns:
- The version string
- Since:
- 1.0.0.0
-
info
Logs all the messages at the INFO level from the Commons Logger. To use your own logger, useLocalization.getLogHelper()- Parameters:
messages- The messages to log- Since:
- 1.0.0.0
-
tInfo
Logs the message using theLocalizedMessagessystem at the INFO level- Parameters:
key- TheLocalizedMessages.Keyto logformatArgs- The format arguments- Since:
- 1.0.0.0
- See Also:
-
warning
Logs all the messages at the WARN level- Parameters:
messages- The messages to log- Since:
- 1.0.0.0
-
tWarning
Logs the message using theLocalizedMessagessystem at the WARNING level- Parameters:
key- TheLocalizedMessages.Keyto logformatArgs- The format arguments- Since:
- 1.0.0.0
- See Also:
-
registerLocalization
-
registerLocalization
public Localization registerLocalization(org.bukkit.plugin.Plugin plugin, Locale locale, String prefix) -
hasInitialized
public boolean hasInitialized()Checks if the CommonsAPI has been initialized- Specified by:
hasInitializedin classBaseAPI- Returns:
trueif initialized,falseotherwise- Since:
- 1.0.0.0
-
get
Gets the instance of CommonsAPI- Returns:
- The
CommonsAPIinstance - Since:
- 1.0.0.0
-