mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 15:17:36 +01:00
Updated for newer builds of hMod.
This commit is contained in:
parent
c96bb890b4
commit
8b3eaa70fb
@ -595,11 +595,14 @@ public boolean onInventoryChange(Player player) {
|
|||||||
/**
|
/**
|
||||||
* Called when a player uses an item (rightclick with item in hand)
|
* Called when a player uses an item (rightclick with item in hand)
|
||||||
* @param player the player
|
* @param player the player
|
||||||
|
* @param blockPlaced where a block would end up when the item was a bucket
|
||||||
|
* @param blockClicked
|
||||||
* @param item the item being used (in hand)
|
* @param item the item being used (in hand)
|
||||||
* @return true to prevent using the item.
|
* @return true to prevent using the item.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean onItemUse(Player player, Item item) {
|
public boolean onItemUse(Player player, Block blockPlaced,
|
||||||
|
Block blockClicked, Item item) {
|
||||||
if (blacklist != null) {
|
if (blacklist != null) {
|
||||||
int itemId = item.getItemId();
|
int itemId = item.getItemId();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user