7mm

Untitled

7mm
Mar 2nd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. command /rand <text> <text> <text> <number> <number>:
  2. usage: &e/rand <set|add|remove(rem)> <プレイヤー名> <スコア名> <乱数最小値> <乱数最大値>
  3. permission: skript.admin
  4. trigger:
  5. set {_rand} to random integer between arg 4 to arg 5
  6. if arg 1 is "set":
  7. execute console command "/scoreboard players set %arg 2% %arg 3% %{_rand}%"
  8. message "乱数生成結果は%{_rand}%です"
  9. else if arg 1 is "add":
  10. execute console command "/scoreboard players add %arg 2% %arg 3% %{_rand}%"
  11. message "乱数生成結果は%{_rand}%です"
  12. else if arg 1 is "remove" or "rem":
  13. execute console command "/scoreboard players remove %arg 2% %arg 3% %{_rand}%"
  14. message "乱数生成結果は%{_rand}%です"
  15. else:
  16. message "Correct Usage: &e/rand <set|add|remove(rem)> <プレイヤー名> <スコア名> <乱数最小値> <乱数最大値>"
Advertisement
Add Comment
Please, Sign In to add comment