change indentation from 2 spaces to 4, fix #5

This commit is contained in:
jomo
2015-01-06 23:38:42 +01:00
parent 3435e99432
commit 9a916ed2cd
24 changed files with 1522 additions and 1522 deletions

View File

@@ -4,13 +4,13 @@ from helpers import msg
@hook.event("player.PlayerInteractEvent", "monitor")
def on_block_interact(event):
if (str(event.getAction()) == "RIGHT_CLICK_BLOCK"):
sender = event.getPlayer()
block = event.getClickedBlock().getState()
if (isinstance(block, bukkit.block.Skull) and not event.isCancelled()):
owner = block.getOwner()
if (owner):
msg(sender, "&eThat's %s." % owner)
else:
msg(sender, "&cThis skull has no name (Steve)")
event.setCancelled(True)
if (str(event.getAction()) == "RIGHT_CLICK_BLOCK"):
sender = event.getPlayer()
block = event.getClickedBlock().getState()
if (isinstance(block, bukkit.block.Skull) and not event.isCancelled()):
owner = block.getOwner()
if (owner):
msg(sender, "&eThat's %s." % owner)
else:
msg(sender, "&cThis skull has no name (Steve)")
event.setCancelled(True)