Advertisement
Kusa_Haenai_wWW

Untitled

Apr 29th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. options:
  2. maxlvl: 114514
  3.  
  4. on death of player:
  5. if attacker is set:
  6. if attacker is a player:
  7. add 3 to {xp::%attacker%}
  8. message "&a[XP] &bあなたは3XPをGETしました!" to attacker
  9. if {xp::%player%} >= {up::%player%}:
  10. add 1 to {lv::%player%}
  11. add 5 to {up::%player%}
  12. set {xp::%player%} to 0
  13. message "&aレベルアップ!!"
  14. if {lv::%player%} >= {@maxlvl}:
  15. stop
  16. else:
  17. stop
  18.  
  19. command /addxp [<number>] [<offline player>]:
  20. permission: admin.addxp
  21. trigger:
  22. if arg-1 or arg-2 is not set:
  23. message "&a[XP] &c/addxp <number> <player>"
  24. stop
  25. else:
  26. add arg-1 to {xp::%arg-2%}
  27. stop
  28.  
  29. command /status [<offline player>]:
  30. trigger:
  31. if arg-1 is not set:
  32. message "&a[XP] &c/status <player>"
  33. stop
  34. else:
  35. message "&e==============="
  36. message "&cLv&8: &b%{lv::%arg-1%}%"
  37. message "&axp&8: &b%{xp::%arg-1%}%"
  38. message "&e==============="
  39.  
  40. on join:
  41. if {lv::%player%} is not set:
  42. set {lv::%player%} to 1
  43. if {xp::%player%} is not set:
  44. set {xp::%player%} to 0
  45. if {up::%player%} is not set:
  46. set {xp::%player%} to 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement