Updated RedProtect hook to support RedProtect 7.6.2
This commit is contained in:
parent
38e263aab1
commit
90578b8f7d
@ -3,7 +3,7 @@ package net.theprogrammersworld.herobrine.hooks;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
|
||||
import br.net.fabiozumbi12.RedProtect.RedProtect;
|
||||
import br.net.fabiozumbi12.RedProtect.Bukkit.RedProtect;
|
||||
|
||||
public class RedProtectHook {
|
||||
public boolean Check() {
|
||||
@ -11,6 +11,6 @@ public class RedProtectHook {
|
||||
}
|
||||
|
||||
public boolean isSecuredArea(final Location loc) {
|
||||
return RedProtect.rm.getTopRegion(loc) != null;
|
||||
return RedProtect.get().getAPI().getRegion(loc) != null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user