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
StringfailureToDetectVersionMsg = "Your server software is preventing us from checking the Minecraft Server version. This is what we found: " + bukkitVersion + ". We will assume the Server version is " + fallbackVersion.name() + "...\n If you need assistance, join our Discord server: https://discord.gg/DVHxPPxHZc";
if (bukkitServerVersion.isNewerThan(latestSupportedVersion)) {
162
+
// We do not support this version yet, so let us warn the user
163
+
164
+
StringdevelopmentBuildsMsg = "Please test the development builds, as they may already have support for your Minecraft version (hint: select the build that contains 'spigot'): https://ci.codemc.io/job/retrooper/job/packetevents";
165
+
StringreleaseBuildsMsg = "Please test the latest stable release, as it should already have support for your Minecraft version: https://modrinth.com/plugin/packetevents";
166
+
167
+
/* Here's a breakdown of the logic:
168
+
* If this build does not support the current Minecraft version and
169
+
* the user is running an outdated version of PacketEvents
170
+
* or PacketEvents somehow fails to check for an update,
171
+
* we direct them toward the latest release.
172
+
* If up-to-date, we direct them to development builds.
StringfailureToDetectVersionMsg = "Your server software is preventing us from checking the Minecraft Server version. This is what we found: " + bukkitVersion + ". We will assume the Server version is " + fallbackVersion.name() + "...\n If you need assistance, join our Discord server: https://discord.gg/DVHxPPxHZc";
if (bukkitServerVersion.isNewerThan(latestSupportedVersion)) {
156
-
//We do not support this version yet, so let us warn the user
204
+
//We do not support this version yet, so let us warn the user
157
205
plugin.getLogger().warning("Your build of PacketEvents does not support the Minecraft version "
158
206
+ bukkitServerVersion + "! The latest Minecraft version supported by your build of PacketEvents is " + latestSupportedVersion
159
207
+ ". Please test the development builds, as they may already have support for your Minecraft version (hint: select the build that contains 'spigot'): https://ci.codemc.io/job/retrooper/job/packetevents/ If you're in need of any help, join our Discord server: https://discord.gg/DVHxPPxHZc");
160
208
Bukkit.getPluginManager().disablePlugin(plugin);
161
209
return;
162
210
}
163
211
}
164
-
if (settings.shouldCheckForUpdates()) {
165
-
getUpdateChecker().handleUpdateCheck();
166
-
}
167
212
168
213
Metricsmetrics = newMetrics(plugin, 11327);
169
214
//Just to have an idea of which versions of packetevents people use
0 commit comments