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:
parent
06538ed4e6
commit
da53f3d7aa
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user