Advertisement
YMCmaniaY

allowjoin.sk

Mar 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. on join:
  2. wait 10 tick
  3. if {aj-onlyjointoggle} is true:
  4. if {aj-allowusers::*} contains uuid of player:
  5. stop
  6. else:
  7. broadcast "<red><bold>%player%は許可プレイヤーリストに入っていないため、自動kickされました。"
  8. kick player due to "&c自動kickされました。理由: &c&l許可された人しか入れません。"
  9. command allowjoin [<text>] [<offline player>]:
  10. aliases: aj, allowj, ajoin, skript:aj, skript:allowj, skript:ajoin
  11. permission message: §a[§bA§eJ§a]§c§lあなたは権限がないため使用できません
  12. permission: allowjoin.command
  13. trigger:
  14. if arg-1 is "toggle" or "t":
  15. if {aj-onlyjointoggle} is true:
  16. set {aj-onlyjointoggle} to false
  17. send "<green>参加許可をパブリックにしました。"
  18. else:
  19. set {aj-onlyjointoggle} to true
  20. send "<red>参加許可をプライベートにしました。"
  21.  
  22. else if arg-1 is "add":
  23. if arg-2 is set:
  24. add uuid of arg-2 to {aj-allowusers::*}
  25. send "<green>%arg-2%を追加しました。名前変更後でもuuid保存なので適用されます。"
  26. else:
  27. send "<red><bold>プレイヤーを選択してください。"
  28. else if arg-1 is "remove":
  29. if uuid of arg-2 contains {aj-allowusers::*}:
  30. remove uuid of arg-2 from {aj-allowusers::*}
  31. send "<green>許可プレイヤーから%arg-2%を外しました。"
  32. else:
  33. send "<red><bold>そのプレイヤーは元から許可されていません。"
  34. else if arg-1 is "help":
  35. send "<gold>サーバー参加時kickするか、どのプレイヤーを許可するかを設定できます。&bコマンド:"
  36. send "<green>/allowjoin [add|remove] [player]"
  37. send "<green>/allowjoin toggle"
  38. send "<green>/allowjoin help"
  39.  
  40. else:
  41. send "<red>存在しない選択です。/allowjoin helpと入力してください"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement