Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Added a warning in startup when a BETA release is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
prosavage committed Jul 23, 2018
1 parent f0e9967 commit 8bde15d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/com/massivecraft/factions/P.java
Expand Up @@ -176,6 +176,16 @@ public void onEnable() {
// 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();
Expand Down Expand Up @@ -243,6 +253,12 @@ public GsonBuilder getGsonBuilder() {
.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
Expand Down

0 comments on commit 8bde15d

Please sign in to comment.