From abce80e2abeb2a07c0235ad2de513c8535d9373e Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Fri, 6 Jun 2014 01:36:22 +0200 Subject: [PATCH] Build with Bukkit 1.7.9 --- pom.xml | 2 +- src/com/dre/brewery/P.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index e63c2a6..a39ff5b 100644 --- a/pom.xml +++ b/pom.xml @@ -123,7 +123,7 @@ org.bukkit bukkit - 1.7.2-R0.3 + 1.7.9-R0.2 provided diff --git a/src/com/dre/brewery/P.java b/src/com/dre/brewery/P.java index c926d57..98c5a2b 100644 --- a/src/com/dre/brewery/P.java +++ b/src/com/dre/brewery/P.java @@ -62,7 +62,6 @@ public class P extends JavaPlugin { // Version check String v = Bukkit.getBukkitVersion(); useUUID = !v.matches(".*1\\.[1-6].*") && !v.matches(".*1\\.7\\.[0-5].*"); - P.p.log("Bukkit Version: " + v + "uuid: " + useUUID); readConfig(); readData(); @@ -683,7 +682,7 @@ public class P extends JavaPlugin { if (useUUID) { try { return Bukkit.getPlayer(UUID.fromString(name)); - } catch (IllegalArgumentException e) { + } catch (Exception e) { return Bukkit.getPlayerExact(name); } }