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