From 8bde15d8645fa27318f4f3c5772e0f8d118c053c Mon Sep 17 00:00:00 2001 From: ProSavage Date: Mon, 23 Jul 2018 12:48:06 -0500 Subject: [PATCH] Added a warning in startup when a BETA release is used. --- src/main/java/com/massivecraft/factions/P.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/P.java b/src/main/java/com/massivecraft/factions/P.java index a5020e92..c63ee207 100644 --- a/src/main/java/com/massivecraft/factions/P.java +++ b/src/main/java/com/massivecraft/factions/P.java @@ -176,6 +176,16 @@ public class P extends MPlugin { // since some other plugins execute commands directly through this command interface, provide it this.getCommand(this.refCommand).setExecutor(this); + if (P.p.getDescription().getFullName().contains("BETA")) { + divider(); + System.out.println("You are using a BETA version of the plugin!"); + System.out.println("This comes with risks of small bugs in newer features!"); + System.out.println("For support head to: https://github.com/ProSavage/SavageFactions/issues"); + divider(); + } + + + setupPlaceholderAPI(); postEnable(); @@ -243,6 +253,12 @@ public class P extends MPlugin { .registerTypeAdapterFactory(EnumTypeAdapter.ENUM_FACTORY); } + private void divider() { + System.out.println(" .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-"); + System.out.println(" / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\"); + System.out.println("`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'"); + } + @Override public void onDisable() { // only save data if plugin actually completely loaded successfully