From ac27d0e2c8b6becf1b6f39dc4488361854159bb0 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Sat, 27 Oct 2018 12:44:28 +0800 Subject: [PATCH] add getVersion() api Former-commit-id: 90d301d7abce96fad81bda1833491144faaa0164 --- src/main/java/org/maxgamer/quickshop/QuickShop.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index bcbb098a5..700aabebc 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -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(); + } }