Added a warning in startup when a BETA release is used.
This commit is contained in:
parent
f0e99674c6
commit
8bde15d864
@ -176,6 +176,16 @@ public class P extends MPlugin {
|
|||||||
// since some other plugins execute commands directly through this command interface, provide it
|
// since some other plugins execute commands directly through this command interface, provide it
|
||||||
this.getCommand(this.refCommand).setExecutor(this);
|
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();
|
setupPlaceholderAPI();
|
||||||
postEnable();
|
postEnable();
|
||||||
@ -243,6 +253,12 @@ public class P extends MPlugin {
|
|||||||
.registerTypeAdapterFactory(EnumTypeAdapter.ENUM_FACTORY);
|
.registerTypeAdapterFactory(EnumTypeAdapter.ENUM_FACTORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void divider() {
|
||||||
|
System.out.println(" .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-");
|
||||||
|
System.out.println(" / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\ \\ / / \\");
|
||||||
|
System.out.println("`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
// only save data if plugin actually completely loaded successfully
|
// only save data if plugin actually completely loaded successfully
|
||||||
|
Loading…
Reference in New Issue
Block a user