1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-02 23:43:44 +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() { public WorldGuardManager() {
Plugin pl = Bukkit.getPluginManager().getPlugin("WorldGuard"); Plugin pl = Bukkit.getPluginManager().getPlugin("WorldGuard");
if (pl != null && (pl instanceof WorldGuardPlugin)) { 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; wg = (WorldGuardPlugin) pl;
useOld = true; useOld = true;
} }