Advertisement
Kusa_Haenai_wWW

Untitled

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