The trigger file (within the /triggers/ folder) called blocktrigger.yml:
Code (YAML):
event
: org.bukkit.event.block.BlockBreakEvent
target-player
: getPlayer
trigger-scoreboard
: blockscoreboard
stay-time
: 100
The scoreboard file (within the /scoreboards/ folder) called blockscoreboard.yml:
Code (YAML):
display:
title:
text
:
- '&cBLOCK BREAK EVENT'
- '&lBLOCK BREAK EVENT'
random
: false
interval
: 10
line-1:
text
:
- ' '
random
: false
interval
: 200
score
: 15
line-2:
text
:
- You broke a block!
random
: false
interval
: 5
score
: 14
As you can see the blockscoreboard is just like any other scoreboard you would create, the only difference is that it will only be displayed after the BlockBreakEvent happened for 5 seconds and after that it will change back to the normal scoreboard in that world!