Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death of player:
- if attacker is not set:
- if attacker is a player:
- add 3 to {xp::%uuid of attacker%}
- message "&a[XP] &bあなたは3XPをGETしました!"
- stop
- else:
- stop
- stop
- else:
- stop
- stop
- command /addxp [<number>] [<offline player>]:
- permission: admin.addxp
- trigger:
- if arg-1 or arg-2 is not set:
- message "&a[XP] &c/addxp <number> <player>"
- stop
- else:
- add arg-1 to {xp::%uuid of arg-2%}
- stop
- command /status [<offline player>]:
- trigger:
- if arg-1 is not set:
- message "&a[XP] &c/status <player>"
- stop
- else:
- message "&e==============="
- message "&cLv&8: &b%{lv::%uuid of arg-1%}%"
- message "&axp&8: &b%{xp::%uuid of arg-1%}%"
- message "&e==============="
- variables:
- {lv::%player%} = 1
- {xp::%player%} = 0
- {up::%player%} = 10
- options:
- maxlvl: 114514
- on any movement:
- if {xp::%player%} is greater than or equal to {up::%player%}:
- if {lv::%player%} is greater than or equal to {@maxlvl}:
- stop
- else:
- add 1 to {lv::%player%}
- add 5 to {up::%player%}
- set {xp::%player%} to 0
- message "&aレベルアップ!!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement