mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-29 12:45:14 +01:00
Build with Bukkit 1.7.9
This commit is contained in:
parent
e8c905e19f
commit
abce80e2ab
2
pom.xml
2
pom.xml
@ -123,7 +123,7 @@
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.7.2-R0.3</version>
|
||||
<version>1.7.9-R0.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user