mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-03 00:57:34 +02:00
Add enderchest and anvil to blacklist inventories.
This commit is contained in:
parent
6e270d5ec3
commit
833795ebe1
@ -850,7 +850,9 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
|||||||
&& type != BlockID.FURNACE
|
&& type != BlockID.FURNACE
|
||||||
&& type != BlockID.BURNING_FURNACE
|
&& type != BlockID.BURNING_FURNACE
|
||||||
&& type != BlockID.BREWING_STAND
|
&& type != BlockID.BREWING_STAND
|
||||||
&& type != BlockID.ENCHANTMENT_TABLE)) {
|
&& type != BlockID.ENCHANTMENT_TABLE
|
||||||
|
&& type != BlockID.ANVIL
|
||||||
|
&& type != BlockID.ENDER_CHEST)) {
|
||||||
if (!wcfg.getBlacklist().check(
|
if (!wcfg.getBlacklist().check(
|
||||||
new ItemUseBlacklistEvent(plugin.wrapPlayer(player), toVector(block),
|
new ItemUseBlacklistEvent(plugin.wrapPlayer(player), toVector(block),
|
||||||
item.getTypeId()), false, false)) {
|
item.getTypeId()), false, false)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user