Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &7[&bChestProtection]
- On rightclick on chest:
- loop all blocks in radius 1 around event-block:
- if loop-block is a sign:
- if line 2 of loop-block is "&4[Protected]":
- if line 3 of loop-block is "%player%":
- stop
- else:
- cancel event
- send "{@prefix} &cDiese Truhe gehört nicht dir!"
- play "NOTE_BASS" to player
- On rightclick on sign:
- if player has permissions "chestprotection.use":
- if line 1 is "[Protect]":
- set line 1 to ""
- set line 2 to "&4[Protected]"
- set line 3 to "%player%"
- else:
- send "{@prefix} &cKeine Rechte!"
- On break:
- if event-block is a sign:
- if line 2 is "&4[Protected]":
- if line 3 is "%player%":
- stop
- else:
- cancel event
- send "{@prefix} &cDiese Truhe gehört nicht dir!"
- play "NOTE_BASS" to player
- On break:
- if event-block is a chest:
- loop all blocks in radius 1 around event-block:
- if loop-block is a sign:
- if line 2 of loop-block is "&4[Protected]":
- if line 3 of loop-block is "%player%":
- stop
- else:
- cancel event
- send "{@prefix} &cDiese Truhe gehört nicht dir!"
- play "NOTE_BASS" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement