Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {deathitems.status} = 1
- options:
- tag: &8[&cDeathItems&8]
- czas: 5
- format.czasu: minutes
- permission: &4Nie masz uprawnien by uzywac tej komendy!
- on death of player:
- {deathitems.status} is 1:
- set {_DeathItems} to location of block above player
- set block at {_DeathItems} to chest
- add drops to block at {_DeathItems}
- add paper named "&bTu zginal &c%victim%" to block at {_DeathItems}
- clear drops
- send "&7Twoje itemki zostaly zapisane w skrzyni na koordach:&6 %location of victim%. &7Masz {@czas} {@format.czasu}" to player
- wait {@czas} {@format.czasu}
- set block at {_DeathItems} to air
- command /deathitems [<text>]:
- trigger:
- if player has permission "DeathItems.admin":
- if arg 1 is "on":
- set {deathitems.status} to 1
- send "{@tag} &7DeathItems &awlaczony"
- stop
- if arg 1 is "off":
- set {deathitems.status} to 0
- send "{@tag} &7DeathItems &cwylaczony"
- stop
- if arg 1 is "reload" or "r":
- execute player command "sk reload %script%"
- send "{@tag} &cPrzeladowano"
- else:
- send "{@tag} &c/deathitems <&fon/off&c>"
- stop
- else:
- send "{@tag} {@permission}"
- stop
Advertisement
Add Comment
Please, Sign In to add comment