You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bukkit.getLogger().warning(Colors.translate("[WebServer] A new update is available: " + latestVersion + " Your version is: " + currentVersion));
50
+
Bukkit.getLogger().warning(Colors.translate("[WebServer] A new update is available: " + latestVersion + " Your version is: " + currentVersion + ". Download it here: &7https://www.spigotmc.org/resources/web-server-for-minecraft.107949/"));
45
51
} else {
46
52
Bukkit.getLogger().warning(Colors.translate("[WebServer] You are using latest version"));
if (!(player.hasPermission("ws.update") || player.hasPermission("ws.*"))) {
64
+
return;
65
+
}
66
+
67
+
if (!toggleUpdates) {
68
+
return;
69
+
}
70
+
57
71
if (currentVersion == null) {
58
72
Bukkit.getLogger().warning(Colors.translate("[WebServer] An error occured! Please report console error to our discord! https://codeitfor.fun/discord"));
59
73
return;
60
74
}
61
75
62
-
if (player.hasPermission("ws.update") || player.hasPermission("ws.*"))
63
-
if (!(currentVersion.equals(latestVersion.toString()))) player.sendMessage(Colors.translate("&8[&cWebServer&8] &bA new update of Web Server for minecraft is available: &c" + latestVersion + "&b. Your version is: &c" + currentVersion + "&b.\n&bDownload it here: &7https://github.com/CodeITForFun/WSForMC/releases"));
76
+
TextComponentmessage = newTextComponent(Colors.translate("&8[&cWebServer&8] &bA new update of Web Server for minecraft is available: &c" +
77
+
latestVersion + "&b. Your version is: &c" + currentVersion));
0 commit comments