Advertisement
Kusa_Haenai_wWW

Untitled

Apr 27th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. on death of slime:
  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しました!" to attacker
  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. on any movement:
  41. if {xp::%player%} is greater or equal to {up::%player%}:
  42.  
  43. else:
  44. add 1 to {lv::%player%}
  45. add 120 to {up::%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement