Updated RedProtect hook to support RedProtect 7.6.2

This commit is contained in:
David Berdik 2019-08-03 23:51:34 -04:00
parent 38e263aab1
commit 90578b8f7d

View File

@ -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;
}
}