Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- wait 10 tick
- if {aj-onlyjointoggle} is true:
- if {aj-allowusers::*} contains uuid of player:
- stop
- else:
- broadcast "<red><bold>%player%は許可プレイヤーリストに入っていないため、自動kickされました。"
- kick player due to "&c自動kickされました。理由: &c&l許可された人しか入れません。"
- command allowjoin [<text>] [<offline player>]:
- aliases: aj, allowj, ajoin, skript:aj, skript:allowj, skript:ajoin
- permission message: §a[§bA§eJ§a]§c§lあなたは権限がないため使用できません
- permission: allowjoin.command
- trigger:
- if arg-1 is "toggle" or "t":
- if {aj-onlyjointoggle} is true:
- set {aj-onlyjointoggle} to false
- send "<green>参加許可をパブリックにしました。"
- else:
- set {aj-onlyjointoggle} to true
- send "<red>参加許可をプライベートにしました。"
- else if arg-1 is "add":
- if arg-2 is set:
- add uuid of arg-2 to {aj-allowusers::*}
- send "<green>%arg-2%を追加しました。名前変更後でもuuid保存なので適用されます。"
- else:
- send "<red><bold>プレイヤーを選択してください。"
- else if arg-1 is "remove":
- if uuid of arg-2 contains {aj-allowusers::*}:
- remove uuid of arg-2 from {aj-allowusers::*}
- send "<green>許可プレイヤーから%arg-2%を外しました。"
- else:
- send "<red><bold>そのプレイヤーは元から許可されていません。"
- else if arg-1 is "help":
- send "<gold>サーバー参加時kickするか、どのプレイヤーを許可するかを設定できます。&bコマンド:"
- send "<green>/allowjoin [add|remove] [player]"
- send "<green>/allowjoin toggle"
- send "<green>/allowjoin help"
- else:
- send "<red>存在しない選択です。/allowjoin helpと入力してください"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement