Advertisement
Kusa_Haenai_wWW

Untitled

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