akon1248

Untitled

Dec 1st, 2019
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. options:
  2. kick-message: あなたは$pをBANしようとしたためBANされました
  3.  
  4. on command:
  5. player is not console
  6. player has permission "minecraft.command.ban"
  7. command is "ban" or "minecraft:ban" #BANコマンドを実行しているかどうか
  8. set {_args::*} to split full command by " " #splitを使ってBANされたプレイヤーを取得し、OPを与える
  9. op {_args::2} parsed as offline player
  10. set {_msg} to "{@kick-message}"
  11. replace "$p" in {_msg} with "%{_args::2}%"
  12. ban player due to {_msg} #BANコマンドの実行者をBANする
  13. kick player due to {_msg} #BANしただけでは切断されないのでKICKする
  14. cancel event #コマンドの実行した時の処理を行わせなくする
Advertisement
Add Comment
Please, Sign In to add comment