1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

Hotfix for get version from WG plugin.yml file

This commit is contained in:
montlikadani 2019-03-25 17:47:13 +01:00
parent 06538ed4e6
commit da53f3d7aa

View File

@ -28,7 +28,7 @@ public class WorldGuardManager {
public WorldGuardManager() {
Plugin pl = Bukkit.getPluginManager().getPlugin("WorldGuard");
if (pl != null && (pl instanceof WorldGuardPlugin)) {
if (wg != null && wg.getDescription().getVersion().equals("6.1")) {
if (pl.getDescription().getVersion().equals("6.1")) {
wg = (WorldGuardPlugin) pl;
useOld = true;
}