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