Prepare the feature check for MC1.10

This commit is contained in:
Sn0wStorm
2016-05-23 18:49:33 +02:00
parent 41660c9b4f
commit 169045839e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ public class P extends JavaPlugin {
// Version check
String v = Bukkit.getBukkitVersion();
useUUID = !v.matches(".*1\\.[0-6].*") && !v.matches(".*1\\.7\\.[0-5].*");
use1_9 = !v.matches(".*1\\.[0-8].*");
useUUID = !v.matches("(^|.*[^\\.\\d])1\\.[0-6]([^\\d].*|$)") && !v.matches("(^|.*[^\\.\\d])1\\.7\\.[0-5]([^\\d].*|$)");
use1_9 = !v.matches("(^|.*[^\\.\\d])1\\.[0-8]([^\\d].*|$)");
// load the Config
try {