forked from LogBlock/LogBlock
Enchance inventory access log output message
As there are more inventory types now, it is worthwhile including the inventory name in the output e.g: 11-07 20:47:15 frymaster took 64x iron ingot from furnace 11-07 13:42:14 frymaster put 1x iron ingot into beacon
This commit is contained in:
@@ -64,9 +64,9 @@ public class BlockChange implements LookupCacheElement
|
||||
if (ca.itemType == 0 || ca.itemAmount == 0)
|
||||
msg.append("looked inside ").append(materialName(type));
|
||||
else if (ca.itemAmount < 0)
|
||||
msg.append("took ").append(-ca.itemAmount).append("x ").append(materialName(ca.itemType, ca.itemData));
|
||||
msg.append("took ").append(-ca.itemAmount).append("x ").append(materialName(ca.itemType, ca.itemData)).append(" from ").append(materialName(type));
|
||||
else
|
||||
msg.append("put in ").append(ca.itemAmount).append("x ").append(materialName(ca.itemType, ca.itemData));
|
||||
msg.append("put ").append(ca.itemAmount).append("x ").append(materialName(ca.itemType, ca.itemData)).append(" into ").append(materialName(type));
|
||||
} else if (BukkitUtils.getContainerBlocks().contains(Material.getMaterial(type)))
|
||||
msg.append("opened ").append(materialName(type));
|
||||
else if (type == 64 || type == 71)
|
||||
|
Reference in New Issue
Block a user