taktie0304

Untitled

May 1st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. options:
  2. {lv.%player%} = 1
  3.  
  4. command /addxp [<text>] [<offline player>]:
  5. permission: skript.addxp
  6. trigger:
  7. if arg 1 is "3":
  8. if arg 2 is set:
  9. add 3 to {xp.%player%}
  10. send "&73xp付与しました"
  11. if {xp.%player%} >= 100:
  12. {xp.%player%} = 0
  13. add 1 to {lv.%player%}
  14.  
  15. if arg 1 is "100":
  16. if arg 2 is set:
  17. send "&7Lv1分付与しました"
  18. {xp.%player%} = 0
  19. add 1 to {lv.%player%}
  20. if arg 1 or arg 2 is not set:
  21. send "&c使用法: /addxp <3/100> <player>"
  22.  
  23. on death of player:
  24. execute console command "addxp 3 %attacker%"
  25. send "&b+ 3xp"
Advertisement
Add Comment
Please, Sign In to add comment