Class WarProtectionListener
java.lang.Object
net.chen.legacyLand.listeners.WarProtectionListener
- All Implemented Interfaces:
org.bukkit.event.Listener
战争保护监听器
防止敌对国家成员在对方领地进行互动
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonBlockBreak(org.bukkit.event.block.BlockBreakEvent event) 阻止破坏方块voidonBlockPlace(org.bukkit.event.block.BlockPlaceEvent event) 阻止放置方块voidonEntityInteract(org.bukkit.event.player.PlayerInteractEntityEvent event) 阻止实体互动(如攻击村民、使用展示框等)voidonPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) 阻止方块互动(如开门、使用箱子等)
-
Constructor Details
-
WarProtectionListener
-
-
Method Details
-
onBlockBreak
public void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event) 阻止破坏方块 -
onBlockPlace
public void onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event) 阻止放置方块 -
onPlayerInteract
public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) 阻止方块互动(如开门、使用箱子等) -
onEntityInteract
public void onEntityInteract(org.bukkit.event.player.PlayerInteractEntityEvent event) 阻止实体互动(如攻击村民、使用展示框等)
-