Changed the update message.
This commit is contained in:
5vl 2021-01-14 12:17:00 +01:00
parent f42573385d
commit a211613ed2
2 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ import org.bukkit.plugin.java.JavaPlugin;
public final class Core extends JavaPlugin { public final class Core extends JavaPlugin {
private static Core instance; private static Core instance;
public String updatemsg;
String version = this.getDescription().getVersion(); String version = this.getDescription().getVersion();
@Override @Override
public void onEnable() { public void onEnable() {
@ -34,7 +33,7 @@ public final class Core extends JavaPlugin {
if (this.getDescription().getVersion().equalsIgnoreCase(version)) { if (this.getDescription().getVersion().equalsIgnoreCase(version)) {
Logger.log(Logger.LogLevel.SUCCESS, "Core Plugin is up to date."); Logger.log(Logger.LogLevel.SUCCESS, "Core Plugin is up to date.");
} else { } else {
Logger.log(Logger.LogLevel.ERROR, "Plugin is out of date, please download the new version at https://www.spigotmc.org/resources/core-plugin.87756/"); Logger.log(Logger.LogLevel.ERROR, "Plugin is out of date, please download the new version at: https://www.spigotmc.org/resources/core-plugin.87756/ If this is a recently released version, the spigot API might not have updated.");
} }
}); });

View File

@ -1,5 +1,5 @@
name: CorePlugin name: CorePlugin
version: 1.1.0 version: 1.1.1
main: coreplugin.coreplugin.Core main: coreplugin.coreplugin.Core
api-version: 1.16 api-version: 1.16
authors: [ 5vl ] authors: [ 5vl ]