register
Register a plugin as owning certain locations.
Parameters
plugin
the registering plugin (Bukkit clears the registration on disable)
namespace
short stable identifier (e.g. "EliteMobs")
ownsLocation
returns true when the location is owned by this namespace
public static void register(Plugin plugin, String namespace, Predicate<Location> ownsLocation, Predicate<Location> protectionFn)
Register a plugin as owning certain locations, with an explicit protection check. Use this overload when ownership and protection are not the same — for example EliteMobs owns every dungeon world but only some are configured as protected.
Parameters
protectionFn
returns true if the owner is also protecting the location (writes/grief should be denied). Independent of ownership.
Lower-level escape hatch — register a pre-built entry directly. Useful when ownership and kind queries should not run the same underlying logic twice.