Class LandProtectionManager

java.lang.Object
org.kingdoms.managers.land.LandProtectionManager
All Implemented Interfaces:
org.bukkit.event.Listener

public final class LandProtectionManager extends Object implements org.bukkit.event.Listener
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bucketEmpty(org.bukkit.event.player.PlayerBucketEmptyEvent event)
     
    void
    bucketFill(org.bukkit.event.player.PlayerBucketFillEvent event)
     
    static boolean
    buildInClaimedOnly(org.bukkit.entity.Player player, KingdomPlayer kp, SimpleChunkLocation chunk, boolean placing)
     
    static boolean
    chargeBuilding(org.bukkit.entity.Player player, Kingdom kingdom, boolean placing)
     
    void
    entityInteract(org.bukkit.event.player.PlayerInteractEntityEvent event)
    Minecart event is called for both PlayerInteractAtEntityEvent and PlayerInteractEntityEvent However, for some reasons, cancelling the first one doesn't fucking work.
    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.
    static boolean
    isItemEntity(org.bukkit.inventory.ItemStack item)
     
    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
    void
    onBlockFromTo(org.bukkit.event.block.BlockFromToEvent event)
     
    static void
    onBreak(org.bukkit.event.block.BlockBreakEvent event)
     
    void
    onEntityBlockChange(org.bukkit.event.entity.EntityChangeBlockEvent event)
    Mostly for enderman.
    static boolean
    onEntityBreak(org.bukkit.event.entity.EntityDamageByEntityEvent event, org.bukkit.entity.Player player)
     
    void
    onGameModeChange(org.bukkit.event.player.PlayerGameModeChangeEvent event)
     
    void
    onHangingBreak(org.bukkit.event.hanging.HangingBreakByEntityEvent event)
     
    void
    onInteract(org.bukkit.event.player.PlayerInteractEvent event)
     
    void
    onKingdomItemBurn(org.bukkit.event.block.BlockBurnEvent event)
     
    static void
    onPlace(org.bukkit.event.block.BlockPlaceEvent event)
     
    void
    onRankDelete(org.kingdoms.events.general.ranks.RankDeleteEvent event)
     
    void
    onRide(org.spigotmc.event.entity.EntityMountEvent event)
     
    void
     
    void
    onVehicleDestroy(org.bukkit.event.vehicle.VehicleDestroyEvent event)
     
    static void
    openKingdomItemGUI(org.bukkit.entity.Player player, KingdomItem<?> item, KingdomItemInteractEvent<?> event)
     
    static boolean
    shouldCheckEntityInteraction(org.bukkit.entity.EntityType type)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LandProtectionManager

      public LandProtectionManager()
  • Method Details

    • 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 in LandExplosionManager instead. Also called for blocks when they fall, such as sand and anvil.
    • buildInClaimedOnly

      public static boolean buildInClaimedOnly(org.bukkit.entity.Player player, KingdomPlayer kp, SimpleChunkLocation chunk, boolean placing)
    • chargeBuilding

      public static boolean chargeBuilding(org.bukkit.entity.Player player, Kingdom kingdom, boolean placing)
    • onEntityBreak

      public static boolean onEntityBreak(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)
    • 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

      public void onTeleportProtection(LandChangeEvent event)
    • 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 both PlayerInteractAtEntityEvent and PlayerInteractEntityEvent However, 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.