mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Hotfix for get version from WG plugin.yml file
This commit is contained in:
parent
06538ed4e6
commit
da53f3d7aa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user