mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
add getVersion() api
Former-commit-id: 90d301d7abce96fad81bda1833491144faaa0164
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user