WorldGuard noClassDevFound

Discussion in 'Programming' started by runefist, Jun 4, 2015.

  1. When I use this line of code:
    Code (Text):
    if (wg.getRegionContainer().get(world).getApplicableRegions(location)
                                            .queryState(wg.wrapPlayer(player), DefaultFlag.BUILD) == State.DENY)
                                        return true;
    and I do not have WG installed, it gives me an error D:

    However I DO have the next line of code so it SHOULD prevent it, but it doesn't.

    Code (Text):
    PluginManager pm = Bukkit.getPluginManager();

            Plugin wgp = pm.getPlugin("WorldGuard");
    Code (Text):
    if (wgp != null && respectWorldGuard && !player.hasPermission("worldguard.region.bypass." + world.getName())) {
                    WorldGuardPlugin wg = (WorldGuardPlugin) Bukkit
    So I don't know how to fix this D: