Advertisement
Kusa_Haenai_wWW

Untitled

Apr 29th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 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. stop
  10. if {xp::%player%} >= {up::%player%}:
  11. add 1 to {lv::%player%}
  12. add 5 to {up::%player%}
  13. set {xp::%player%} to 0
  14. message "&aレベルアップ!!"
  15. if {lv::%player%} >= {@maxlvl}:
  16. stop
  17. else:
  18. stop
  19.  
  20. command /addxp [<number>] [<offline player>]:
  21. permission: admin.addxp
  22. trigger:
  23. if arg-1 or arg-2 is not set:
  24. message "&a[XP] &c/addxp <number> <player>"
  25. stop
  26. else:
  27. add arg-1 to {xp::%arg-2%}
  28. stop
  29.  
  30. command /status [<offline player>]:
  31. trigger:
  32. if arg-1 is not set:
  33. message "&a[XP] &c/status <player>"
  34. stop
  35. else:
  36. message "&e==============="
  37. message "&cLv&8: &b%{lv::%arg-1%}%"
  38. message "&axp&8: &b%{xp::%arg-1%}%"
  39. message "&e==============="
  40.  
  41. variables:
  42. {lv::%player%} = 1
  43. {xp::%player%} = 0
  44. {up::%player%} = 10
  45.  
  46. on join:
  47. if {lv::%player%} is not set:
  48. set {lv::%player%} to 1
  49. if {xp::%player%} is not set:
  50. set {xp::%player%} to 0
  51. if {up::%player%} is not set:
  52. set {xp::%player%} to 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement