taktie0304

Untitled

May 1st, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. options:
  2. lv.%player%: 1
  3.  
  4. command /tbpxp [<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.  
  21. if arg 1 is not set:
  22. if arg 2 is "%player%":
  23. send "&aレベル: {@lv.%player%}"
  24. send "&a経験値: {@xp.%player%}"
  25. else:
  26. send "&c使用法: /tbpxp <3/100> <player>"
  27. send "&c使用法: /tbpxp <player>"
  28.  
  29. on death of player:
  30. execute console command "tbpxp 3 %attacker%"
  31. send "&b+ 3xp"
Advertisement
Add Comment
Please, Sign In to add comment