Package org.kingdoms.managers.land
Class LandProtectionManager
java.lang.Object
org.kingdoms.managers.land.LandProtectionManager
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA server bug in 1.18: Placing a bed next to a crop (carrots or potatoes) that are planted in a completely dark place, causes the crop to be broken and drop items, but the crop block itself will stay there when the bed placing is cancelled from BlockPlaceEvent. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbucketEmpty(org.bukkit.event.player.PlayerBucketEmptyEvent event) voidbucketFill(org.bukkit.event.player.PlayerBucketFillEvent event) static NationdisallowedNationZone(KingdomPlayer kp, SimpleChunkLocation chunk) voidentityInteract(org.bukkit.event.player.PlayerInteractEntityEvent event) Minecart event is called for bothPlayerInteractAtEntityEventandPlayerInteractEntityEventHowever, for some reasons, cancelling the first one doesn't fucking work.voidentityInteractAt(org.bukkit.event.player.PlayerInteractAtEntityEvent event) https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerInteractAtEntityEvent.html Represents an event that is called when a player right clicks an entity that also contains the location where the entity was clicked.static booleanisItemEntity(org.bukkit.inventory.ItemStack item) static booleanvoidonBlockFireSpread(org.bukkit.event.block.BlockIgniteEvent event) https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockBurnEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockIgniteEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockSpreadEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockFormEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockFadeEvent.htmlvoidonBlockFromTo(org.bukkit.event.block.BlockFromToEvent event) static voidonBreak(org.bukkit.event.block.BlockBreakEvent event) voidonEntityBlockChange(org.bukkit.event.entity.EntityChangeBlockEvent event) Mostly for enderman.static booleanonEntityBreakOrDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event, org.bukkit.entity.Player player) voidonGameModeChange(org.bukkit.event.player.PlayerGameModeChangeEvent event) voidonHangingBreak(org.bukkit.event.hanging.HangingBreakByEntityEvent event) voidonInteract(org.bukkit.event.player.PlayerInteractEvent event) voidonKingdomItemBurn(org.bukkit.event.block.BlockBurnEvent event) static voidonPlace(org.bukkit.event.block.BlockPlaceEvent event) voidonRankDelete(org.kingdoms.events.general.ranks.RankDeleteEvent event) voidonRide(org.spigotmc.event.entity.EntityMountEvent event) voidvoidonVehicleDestroy(org.bukkit.event.vehicle.VehicleDestroyEvent event) static voidopenKingdomItemGUI(org.bukkit.entity.Player player, KingdomItem<?> item, KingdomItemInteractEvent<?> event) static booleanshouldCheckEntityInteraction(org.bukkit.entity.EntityType type)
-
Field Details
-
DISABLED
public static final boolean DISABLED
-
-
Constructor Details
-
LandProtectionManager
public LandProtectionManager()
-
-
Method Details
-
isKingdomItem
-
openKingdomItemGUI
public static void openKingdomItemGUI(org.bukkit.entity.Player player, KingdomItem<?> item, KingdomItemInteractEvent<?> event) -
onRankDelete
public void onRankDelete(org.kingdoms.events.general.ranks.RankDeleteEvent event) -
onEntityBlockChange
public void onEntityBlockChange(org.bukkit.event.entity.EntityChangeBlockEvent event) Mostly for enderman. For withers which explode blocks, that's handled inLandExplosionManagerinstead. Also called for blocks when they fall, such as sand and anvil. -
onEntityBreakOrDamage
public static boolean onEntityBreakOrDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event, org.bukkit.entity.Player player) -
shouldCheckEntityInteraction
public static boolean shouldCheckEntityInteraction(org.bukkit.entity.EntityType type) -
bucketEmpty
public void bucketEmpty(org.bukkit.event.player.PlayerBucketEmptyEvent event) -
bucketFill
public void bucketFill(org.bukkit.event.player.PlayerBucketFillEvent event) -
onKingdomItemBurn
public void onKingdomItemBurn(org.bukkit.event.block.BlockBurnEvent event) -
onBlockFireSpread
public void onBlockFireSpread(org.bukkit.event.block.BlockIgniteEvent event) https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockBurnEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockIgniteEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockSpreadEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockFormEvent.html https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockFadeEvent.html -
onBlockFromTo
public void onBlockFromTo(org.bukkit.event.block.BlockFromToEvent event) -
disallowedNationZone
-
onPlace
public static void onPlace(org.bukkit.event.block.BlockPlaceEvent event) -
onBreak
public static void onBreak(org.bukkit.event.block.BlockBreakEvent event) -
isItemEntity
public static boolean isItemEntity(org.bukkit.inventory.ItemStack item) -
onRide
public void onRide(org.spigotmc.event.entity.EntityMountEvent event) -
onVehicleDestroy
public void onVehicleDestroy(org.bukkit.event.vehicle.VehicleDestroyEvent event) -
onGameModeChange
public void onGameModeChange(org.bukkit.event.player.PlayerGameModeChangeEvent event) -
onTeleportProtection
-
onInteract
public void onInteract(org.bukkit.event.player.PlayerInteractEvent event) -
onHangingBreak
public void onHangingBreak(org.bukkit.event.hanging.HangingBreakByEntityEvent event) -
entityInteract
public void entityInteract(org.bukkit.event.player.PlayerInteractEntityEvent event) Minecart event is called for bothPlayerInteractAtEntityEventandPlayerInteractEntityEventHowever, for some reasons, cancelling the first one doesn't fucking work. -
entityInteractAt
public void entityInteractAt(org.bukkit.event.player.PlayerInteractAtEntityEvent event) https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/player/PlayerInteractAtEntityEvent.html Represents an event that is called when a player right clicks an entity that also contains the location where the entity was clicked. Note that the client may sometimes spuriously send this packet in addition to PlayerInteractEntityEvent. Users are advised to listen to this (parent) class unless specifically required.So we're just gonna use it for armor stands since it's always called for that one and handle the rest from PlayerInteractEntityEvent.
-