diff --git a/src/main/java/fr/xephi/authme/api/NewAPI.java b/src/main/java/fr/xephi/authme/api/NewAPI.java index 0c22fb13e..0f5437623 100644 --- a/src/main/java/fr/xephi/authme/api/NewAPI.java +++ b/src/main/java/fr/xephi/authme/api/NewAPI.java @@ -69,6 +69,16 @@ public class NewAPI { return plugin; } + /** + * Gather the version number of the plugin. + * This can be used to determine whether certain API features are available or not. + * + * @return Plugin version identifier as a string. + */ + public String getPluginVersion() { + return AuthMe.getPluginVersion(); + } + /** * Return whether the given player is authenticated. *