Advertisement
minmin0917

teststoped by rikuriku4

Jul 9th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #[<text>] ていうのはここにコマンドを実行するプレイヤーが好きな文字を入れられます。
  2.  
  3. #skriptではコマンドを作る場合は、trigger: が必要です。
  4.  
  5. #if arg 1 is not set: ていうのは[<text>]の一番目が設定されていなかったらという条件文です。
  6.  
  7.  
  8. #send ていうのは message と変わりません。
  9.  
  10. #if arg 1 is set: ていうのは[<text>]の一番目が設定されていた場合という条件文です。
  11.  
  12. #wait %arg 1% seconds ていうのは arg 1 秒待つという意味ですね。
  13.  
  14. #kick all players ていうのは全てのプレイヤーをキックします。という意味
  15.  
  16. #broadcast "...." 手のは完全におまけです。send や message と違ってすべてのプレイヤーにメッセージが届きます。
  17.  
  18. command /teststop [<text>]:
  19. permission: permission.op
  20. permission message: &cテストです。あなたは権限を所持していません。
  21. trigger:
  22. if arg 1 is not set:
  23. send "&cUsage: /teststop <秒数>"
  24. if arg 1 is set:
  25. broadcast "&cesrver stoped... &7%arg 1% &cseconds!"
  26. wait arg 1 seconds
  27. broadcast "&cserver stoped!"
  28. kick all players
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement