Class ProtectionManager
java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.managers.ProtectionManager
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddWar(@NotNull ClanPlayer requester, Clan requestClan, Clan targetClan) booleancan(@NotNull ProtectionManager.Action action, @NotNull org.bukkit.Location location, @NotNull org.bukkit.entity.Player player) booleancan(@NotNull ProtectionManager.Action action, @NotNull org.bukkit.Location location, @NotNull org.bukkit.entity.Player player, @Nullable org.bukkit.entity.Player other) getLands(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location location) Gets the Player's lands at the given Location, if not found, returns all Player's lands in the WorldgetLandsAt(@NotNull org.bukkit.Location location) getLandsOf(@NotNull org.bukkit.OfflinePlayer player, @NotNull org.bukkit.World world) @Nullable WarbooleanisOwner(@NotNull org.bukkit.OfflinePlayer player, @NotNull org.bukkit.Location location) voidvoidregisterProvider(@NotNull ProtectionProvider provider) voidremoveWar(@Nullable War war, WarEndEvent.Reason reason) voidsetWarExpirationTime(@NotNull Clan clan, int expirationTime)
-
Constructor Details
-
ProtectionManager
public ProtectionManager()
-
-
Method Details
-
registerListeners
public void registerListeners() -
getLands
public Set<Land> getLands(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Location location) Gets the Player's lands at the given Location, if not found, returns all Player's lands in the World- Parameters:
player- the Playerlocation- the Location- Returns:
- the lands
-
getLandsAt
-
isOwner
public boolean isOwner(@NotNull @NotNull org.bukkit.OfflinePlayer player, @NotNull @NotNull org.bukkit.Location location) -
getLandsOf
-
can
public boolean can(@NotNull @NotNull ProtectionManager.Action action, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.entity.Player player) -
can
public boolean can(@NotNull @NotNull ProtectionManager.Action action, @NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull org.bukkit.entity.Player player, @Nullable @Nullable org.bukkit.entity.Player other) -
addWar
-
setWarExpirationTime
-
removeWar
-
getWar
-
registerProvider
-