Fix issue #147 and bump version for new RB.

This commit is contained in:
md_5
2012-07-10 17:49:35 +10:00
parent 39100e2de6
commit 9e16d42a08
2 changed files with 53 additions and 51 deletions

View File

@@ -47,10 +47,12 @@ public class ChestAccessLogging extends LoggingListener
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onInventoryOpen(InventoryOpenEvent event) {
InventoryHolder holder = event.getInventory().getHolder();
if (holder instanceof BlockState || holder instanceof DoubleChest) {
if (getInventoryHolderType(holder) != 58) {
containers.put(event.getPlayer(), compressInventory(event.getInventory().getContents()));
if (event.getInventory() != null) {
InventoryHolder holder = event.getInventory().getHolder();
if (holder instanceof BlockState || holder instanceof DoubleChest) {
if (getInventoryHolderType(holder) != 58) {
containers.put(event.getPlayer(), compressInventory(event.getInventory().getContents()));
}
}
}
}

View File

@@ -1,48 +1,48 @@
name: LogBlock
version: '1.53'
author: DiddiZ
website: http://www.diddiz.de/minecraft/
main: de.diddiz.LogBlock.LogBlock
description: Logs blocks.
softdepend: [LogBlockQuestioner, WorldEdit]
commands:
lb:
description: 'LogBlock commands.'
usage: 'Usage: /<command> help'
aliases: []
permissions:
logblock.*:
description: Gives access to all LogBlock commands
children:
logblock.lookup: true
logblock.rollback: true
logblock.clearlog: true
logblock.hide: true
logblock.tp: true
logblock.me: true
logblock.ignoreRestrictions: true
logblock.spawnTools: true
logblock.lookup:
description: 'Grants access to /lb lookup commands and allows defining custom tool queries'
default: op
logblock.rollback:
description: 'Allows rollback, redo and write logfiles'
default: op
logblock.clearlog:
description: 'Allows to use /lb clearlog'
default: op
logblock.hide:
description: 'Allows to hide from logging'
default: op
logblock.tp:
description: 'Allows to use /lb tp'
default: op
logblock.me:
description: 'Allows to see oneselfs stats with /lb me'
default: true
logblock.ignoreRestrictions:
description: 'Allows to ignore the rollback restrictions rollback.maxTime and rollback.maxArea'
default: op
logblock.spawnTools:
description: 'Allows to spawn tools'
name: LogBlock
version: '1.54'
author: DiddiZ
website: http://www.diddiz.de/minecraft/
main: de.diddiz.LogBlock.LogBlock
description: Logs blocks.
softdepend: [LogBlockQuestioner, WorldEdit]
commands:
lb:
description: 'LogBlock commands.'
usage: 'Usage: /<command> help'
aliases: []
permissions:
logblock.*:
description: Gives access to all LogBlock commands
children:
logblock.lookup: true
logblock.rollback: true
logblock.clearlog: true
logblock.hide: true
logblock.tp: true
logblock.me: true
logblock.ignoreRestrictions: true
logblock.spawnTools: true
logblock.lookup:
description: 'Grants access to /lb lookup commands and allows defining custom tool queries'
default: op
logblock.rollback:
description: 'Allows rollback, redo and write logfiles'
default: op
logblock.clearlog:
description: 'Allows to use /lb clearlog'
default: op
logblock.hide:
description: 'Allows to hide from logging'
default: op
logblock.tp:
description: 'Allows to use /lb tp'
default: op
logblock.me:
description: 'Allows to see oneselfs stats with /lb me'
default: true
logblock.ignoreRestrictions:
description: 'Allows to ignore the rollback restrictions rollback.maxTime and rollback.maxArea'
default: op
logblock.spawnTools:
description: 'Allows to spawn tools'
default: true