add getVersion() api

Former-commit-id: 90d301d7abce96fad81bda1833491144faaa0164
This commit is contained in:
Ghost_chu committed 2018-10-27 12:44:28 +08:00
1 parent 102d21f51b
commit ac27d0e2c8
1 file changed
+11
@@ -871,5 +871,16 @@ public class QuickShop extends JavaPlugin {
public ShopManager getShopManager() {
return this.shopManager;
}
/**
* Returns QS version, this method only exist on QSRR forks
* If running other QSRR forks,, result may not is "Reremake x.x.x"
* If running QS offical, Will throw exception.
*
* @return Plugin Version
*/
public static String getVersion() {
return "Reremake "+QuickShop.instance.getDescription().getVersion();
}
}