mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 05:28:59 +00:00
Use latest WorldGuard-integration for all versions > 6
Fixes FastAsyncWorldEdit incompatibility implements #172
This commit is contained in:
@@ -333,9 +333,13 @@ public class P extends JavaPlugin {
|
|||||||
Plugin plugin = Bukkit.getPluginManager().getPlugin("WorldEdit");
|
Plugin plugin = Bukkit.getPluginManager().getPlugin("WorldEdit");
|
||||||
if (plugin != null) {
|
if (plugin != null) {
|
||||||
String wgv = plugin.getDescription().getVersion();
|
String wgv = plugin.getDescription().getVersion();
|
||||||
if (wgv.startsWith("7.")) wg = new WGBarrel7();
|
if (wgv.startsWith("6.")) {
|
||||||
else if (wgv.startsWith("6.")) wg = new WGBarrelNew();
|
wg = new WGBarrelNew();
|
||||||
else if (wgv.startsWith("5.")) wg = new WGBarrelOld();
|
} else if (wgv.startsWith("5.")) {
|
||||||
|
wg = new WGBarrelOld();
|
||||||
|
} else {
|
||||||
|
wg = new WGBarrel7();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (wg == null) {
|
if (wg == null) {
|
||||||
P.p.errorLog("Failed loading WorldGuard Integration! Opening Barrels will NOT work!");
|
P.p.errorLog("Failed loading WorldGuard Integration! Opening Barrels will NOT work!");
|
||||||
|
|||||||
Reference in New Issue
Block a user