Package com.ranull.graves.listener
Class BlockPlaceListener
java.lang.Object
com.ranull.graves.listener.BlockPlaceListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for BlockPlaceEvent to prevent placing blocks in certain conditions.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockPlaceListener
(Graves plugin) Constructs a new BlockPlaceListener with the specified Graves plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onBlockPlace
(org.bukkit.event.block.BlockPlaceEvent event) Handles BlockPlaceEvent to prevent placing blocks if they are graves or if the item being used is a token.
-
Constructor Details
-
BlockPlaceListener
Constructs a new BlockPlaceListener with the specified Graves plugin.- Parameters:
plugin
- The Graves plugin instance.
-
-
Method Details
-
onBlockPlace
public void onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event) Handles BlockPlaceEvent to prevent placing blocks if they are graves or if the item being used is a token.- Parameters:
event
- The BlockPlaceEvent to handle.
-