mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-15 15:16:06 +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)
|
||||
* @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)
|
||||
* @return true to prevent using the item.
|
||||
*/
|
||||
@Override
|
||||
public boolean onItemUse(Player player, Item item) {
|
||||
public boolean onItemUse(Player player, Block blockPlaced,
|
||||
Block blockClicked, Item item) {
|
||||
if (blacklist != null) {
|
||||
int itemId = item.getItemId();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user