Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- owner: sibahuran #一人まで指定できます
- prefix: &fWhitelist>&r
- on skript load:
- if {whitelist.toggle} is not set:
- set {whitelist.toggle} to false
- stop
- on command:
- if full command is "minecraft:whitelist":
- if player has permission "minecraft.command.whitelist":
- send "&cそのコマンドは使用できません"
- cancel event
- stop
- command /whitelist [<text>] [<text>]:
- aliases: /wlist
- permission: minecraft.command.whitelist
- permission message: &cI'm sorry, but you do not have permission to perform this command. Please contact the server administrators if you believe that this is in error.
- trigger:
- if arg 1 is not set:
- send "{@prefix} &c使用法: /whitelist help"
- stop
- if arg 1 is "help":
- send "&d&l&m-----------------------&r &d&lHelp &d&l&m-----------------------&r"
- send "&b/whitelist add <名前> - 指定したプレイヤーをホワイトリストに追加します"
- send "&b/whitelist remove <名前> - 指定したプレイヤーをホワイトリストから消去します"
- send "&b/whitelist on - ホワイトリストを有効にします"
- send "&b/whitelist off - ホワイトリストを無効にします"
- send "&b/whitelist list - ホワイトリストに登録されているプレイヤーの一覧を表示します"
- send "&b/whitelist reload - ホワイトリストを再読み込みします"
- send "&b/whitelist kick - ホワイトリストに登録されていないプレイヤーをキックします"
- send "&d&l&m----------------------------------------------------&r"
- stop
- if arg 1 is "on":
- if {whitelist.toggle} is false:
- set {whitelist.toggle} to true
- send "{@prefix} &aホワイトリストを有効にしました"
- stop
- if {whitelist.toggle} is true:
- send "{@prefix} &c既にホワイトリストを有効にしています"
- stop
- if arg 1 is "off":
- if {whitelist.toggle} is true:
- set {whitelist.toggle} to false
- send "{@prefix} &3ホワイトリストを無効にしました"
- stop
- if {whitelist.toggle} is false:
- send "{@prefix} &c既にホワイトリストを無効にしています"
- stop
- if arg 1 is "add":
- if arg 2 is not set:
- send "{@prefix} &cプレイヤーを指定してください"
- stop
- if arg 2 is set:
- if {whitelist::%arg 2%} is set:
- send "{@prefix} &c%arg 2%さんは既にホワイトリストに登録しています"
- stop
- else:
- set {whitelist::%arg 2%} to 0
- send "{@prefix} &a%arg 2%さんをホワイトリストに登録しました"
- stop
- if arg 1 is "remove" or "rem":
- if arg 2 is not set:
- send "{@prefix} &cプレイヤーを指定してください"
- stop
- if arg 2 is "-all":
- delete {whitelist::*}
- send "{@prefix} &d全てのプレイヤーをホワイトリストから消去しました"
- stop
- if arg 2 is set:
- if {whitelist::%arg 2%} is set:
- delete {whitelist::%arg 2%}
- send "{@prefix} &3%arg 2%をホワイトリストから削除しました"
- stop
- else:
- send "{@prefix} &c%arg 2%さんはホワイトリストに登録されていません"
- stop
- if arg 1 is "list":
- if {whitelist::*} is not set:
- send "{@prefix} &c現在ホワイトリストに登録されているプレイヤーはいません"
- stop
- set {_count} to 0
- send "&6&l&m--------&r &6&lList &6&l&m--------&r"
- loop {whitelist::*}:
- add 1 to {_count}
- send "&b%{_count}%: %loop-index%"
- send "&6&l&m----------------------&r"
- stop
- if arg 1 is "reload":
- if {whitelist.toggle} is not set:
- set {whitelist.toggle} to false
- send "{@prefix} &dホワイトリストを再読み込みしました"
- stop
- if arg 1 is "kick":
- if {whitelist.toggle} is false:
- send "{@prefix} &cホワイトリストが有効の時のみ使用できます"
- stop
- loop all players:
- if {whitelist::%loop-player%} is not set:
- if loop-player is not "{@owner}":
- if loop-player is not "%player%":
- kick the player by reason of "You are not whitelisted on this server!"
- send "{@prefix} &2ホワイトリストに登録されていないプレイヤーをキックしました"
- stop
- else:
- send "{@prefix} &c無効なテキストです"
- stop
- on connect:
- if {whitelist.toggle} is true:
- if player is "{@owner}":
- stop
- if {whitelist::%player%} is not set:
- kick the player by reason of "You are not whitelisted on this server!"
- loop all players:
- if loop-player has permission "minecraft.command.whitelist":
- send "{@prefix} &3%player%さんの接続を拒否しました" to loop-player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement