Plugin Help Found class, expecting interface?

Discussion in 'Plugin Help/Development/Requests' started by Creeoer, Jan 10, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Creeoer

    Never seen an error in this stacktrace which is why I'm creating this. So I updated bukkit to 1.8 from spigot, and since I noticed that 1.8 is an actual version in bukkit dev I was starting to wonder whether or not this is acually a supported version, if it is can a mod move this up, thanks.

    Anyways, so I updated worldguard to 1.8 (Which I know is a major, breaking update) , and it's saying that it found a class instead of an interface, so obviosuly it doesn't have the required methods for it work with or they just switched up the packages, api doesn't have documentation since it's being rewritten.

    Actual error:
    Caused by: java.lang.IncompatibleClassChangeError: Found class com.sk89q.worldgu
    ard.protection.ApplicableRegionSet, but interface was expected
    at me.creeoer.bb.handlers.LandChecker.isPlayerRegion(LandChecker.java:31
    5) ~[?:?]

    Code being used:

    Code:
     public boolean isPlayerRegion(Location sas, Player player) {
         BB main = BB.getInstance();
         com.sk89q.worldguard.LocalPlayer p = main.getWorldGuard().wrapPlayer(player);
         RegionManager regionManager = main.getWorldGuard().getRegionManager(player.getWorld());
       
         if (main.getWorldGuard() == null) {
             return true;
         }
        
        
         if (regionManager == null) {
      
             return true;
         }
        
         if (regionManager.getApplicableRegions(sas) == null){
             return true;
         }
        
         if (regionManager.getApplicableRegions(sas).canBuild(p) == true) {
             return true;
         } else {
            return false;
         }
       
    }
     
Thread Status:
Not open for further replies.

Share This Page