Don't spam incompatible WG error

This commit is contained in:
Shane Freeder 2019-09-27 18:57:25 +01:00
parent 0d6b5e2530
commit 6125b3fbd2
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.1.109 Version 2.1.109
Added missing 1.14 blocks to ability/tool activation blacklists Added missing 1.14 blocks to ability/tool activation blacklists
Fixed spamming of incompatible worldguard version message
Version 2.1.108 Version 2.1.108
Fixed an amusing exploit for easy leveling in Acrobatics Fixed an amusing exploit for easy leveling in Acrobatics

View File

@ -96,6 +96,9 @@ public class WorldGuardUtils {
private static boolean isCompatibleVersion(Plugin plugin) { private static boolean isCompatibleVersion(Plugin plugin) {
//Check that the version of WG is at least version 7.xx //Check that the version of WG is at least version 7.xx
boolean allClassesFound = true; boolean allClassesFound = true;
if (detectedIncompatibleWG) {
return false;
}
if (!plugin.getDescription().getVersion().startsWith("7")) { if (!plugin.getDescription().getVersion().startsWith("7")) {
markWGIncompatible(); markWGIncompatible();