Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. options:
  2. owner: sibahuran #一人まで指定できます
  3. prefix: &fWhitelist>&r
  4.  
  5. on skript load:
  6. if {whitelist.toggle} is not set:
  7. set {whitelist.toggle} to false
  8. stop
  9.  
  10. on command:
  11. if full command is "minecraft:whitelist":
  12. if player has permission "minecraft.command.whitelist":
  13. send "&cそのコマンドは使用できません"
  14. cancel event
  15. stop
  16.  
  17. command /whitelist [<text>] [<text>]:
  18. aliases: /wlist
  19. permission: minecraft.command.whitelist
  20. 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.
  21. trigger:
  22. if arg 1 is not set:
  23. send "{@prefix} &c使用法: /whitelist help"
  24. stop
  25. if arg 1 is "help":
  26. send "&d&l&m-----------------------&r &d&lHelp &d&l&m-----------------------&r"
  27. send "&b/whitelist add <名前> - 指定したプレイヤーをホワイトリストに追加します"
  28. send "&b/whitelist remove <名前> - 指定したプレイヤーをホワイトリストから消去します"
  29. send "&b/whitelist on - ホワイトリストを有効にします"
  30. send "&b/whitelist off - ホワイトリストを無効にします"
  31. send "&b/whitelist list - ホワイトリストに登録されているプレイヤーの一覧を表示します"
  32. send "&b/whitelist reload - ホワイトリストを再読み込みします"
  33. send "&b/whitelist kick - ホワイトリストに登録されていないプレイヤーをキックします"
  34. send "&d&l&m----------------------------------------------------&r"
  35. stop
  36. if arg 1 is "on":
  37. if {whitelist.toggle} is false:
  38. set {whitelist.toggle} to true
  39. send "{@prefix} &aホワイトリストを有効にしました"
  40. stop
  41. if {whitelist.toggle} is true:
  42. send "{@prefix} &c既にホワイトリストを有効にしています"
  43. stop
  44. if arg 1 is "off":
  45. if {whitelist.toggle} is true:
  46. set {whitelist.toggle} to false
  47. send "{@prefix} &3ホワイトリストを無効にしました"
  48. stop
  49. if {whitelist.toggle} is false:
  50. send "{@prefix} &c既にホワイトリストを無効にしています"
  51. stop
  52. if arg 1 is "add":
  53. if arg 2 is not set:
  54. send "{@prefix} &cプレイヤーを指定してください"
  55. stop
  56. if arg 2 is set:
  57. if {whitelist::%arg 2%} is set:
  58. send "{@prefix} &c%arg 2%さんは既にホワイトリストに登録しています"
  59. stop
  60. else:
  61. set {whitelist::%arg 2%} to 0
  62. send "{@prefix} &a%arg 2%さんをホワイトリストに登録しました"
  63. stop
  64. if arg 1 is "remove" or "rem":
  65. if arg 2 is not set:
  66. send "{@prefix} &cプレイヤーを指定してください"
  67. stop
  68. if arg 2 is "-all":
  69. delete {whitelist::*}
  70. send "{@prefix} &d全てのプレイヤーをホワイトリストから消去しました"
  71. stop
  72. if arg 2 is set:
  73. if {whitelist::%arg 2%} is set:
  74. delete {whitelist::%arg 2%}
  75. send "{@prefix} &3%arg 2%をホワイトリストから削除しました"
  76. stop
  77. else:
  78. send "{@prefix} &c%arg 2%さんはホワイトリストに登録されていません"
  79. stop
  80. if arg 1 is "list":
  81. if {whitelist::*} is not set:
  82. send "{@prefix} &c現在ホワイトリストに登録されているプレイヤーはいません"
  83. stop
  84. set {_count} to 0
  85. send "&6&l&m--------&r &6&lList &6&l&m--------&r"
  86. loop {whitelist::*}:
  87. add 1 to {_count}
  88. send "&b%{_count}%: %loop-index%"
  89. send "&6&l&m----------------------&r"
  90. stop
  91. if arg 1 is "reload":
  92. if {whitelist.toggle} is not set:
  93. set {whitelist.toggle} to false
  94. send "{@prefix} &dホワイトリストを再読み込みしました"
  95. stop
  96. if arg 1 is "kick":
  97. if {whitelist.toggle} is false:
  98. send "{@prefix} &cホワイトリストが有効の時のみ使用できます"
  99. stop
  100. loop all players:
  101. if {whitelist::%loop-player%} is not set:
  102. if loop-player is not "{@owner}":
  103. if loop-player is not "%player%":
  104. kick the player by reason of "You are not whitelisted on this server!"
  105. send "{@prefix} &2ホワイトリストに登録されていないプレイヤーをキックしました"
  106. stop
  107. else:
  108. send "{@prefix} &c無効なテキストです"
  109. stop
  110.  
  111. on connect:
  112. if {whitelist.toggle} is true:
  113. if player is "{@owner}":
  114. stop
  115. if {whitelist::%player%} is not set:
  116. kick the player by reason of "You are not whitelisted on this server!"
  117. loop all players:
  118. if loop-player has permission "minecraft.command.whitelist":
  119. send "{@prefix} &3%player%さんの接続を拒否しました" to loop-player
  120. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement