K2Rk1o

WhiteListPlus

Dec 3rd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. options:
  2. prefix: &7&l[&fWhite&aList&ePlus&7&l]
  3. connect: &7&l[&aConnect System&7&l]
  4.  
  5.  
  6. on connect:
  7. broadcast "{@connect} &e&l%player%&a&lさんが鯖に接続しています"
  8.  
  9.  
  10.  
  11.  
  12.  
  13. command /whitelistplus [<text>] [<offline player>]:
  14. aliases: wlp
  15. permission: wlp.skript
  16. trigger:
  17. if arg-1 is not set:
  18. send "&a&l-------------------------------------------------"
  19. send "&f "
  20. send " &f&lWhite&6&lList&e&lPlus "
  21. send " "
  22. send " &fwlp &6on: whitelist+をオンにします "
  23. send " &fwlp &5off: whitelist+をオフにします "
  24. send " &fwlp &cadd (name): whitelist+に追加します "
  25. send " &fwlp &8remove (name): whitelist+から解除します "
  26. send " &fwlp &alist: whitelist+に追加した人のIDを "
  27. send " &a表示します "
  28. send " "
  29. send " "
  30. send " "
  31. send " "
  32. send " "
  33. send "&a&l-------------------------------------------------"
  34.  
  35. if arg-1 is "on":
  36. set {whitelistplus} to true
  37. send "&f&lWhiteListPlus-&6true"
  38. loop all players:
  39. if {wlp::%loop-player%} is not "true":
  40. kick the loop-player due to "&f&lWhitelistPlus-&a&lNow"
  41. if arg-1 is "off":
  42. set {whitelistplus} to false
  43. send "&f&lWhiteListPlus-&5false"
  44. if arg-1 is "add":
  45. if arg-2 is set:
  46. set {wlp::%arg-2%} to "true"
  47. send "{@prefix}&f&l%arg-2%さんをWhiteListPlusに追加しました"
  48. if arg-1 is "remove":
  49. if arg-2 is set:
  50. set {wlp::%arg-2%} to "false"
  51. send "{@prefix}&f&l%arg-2%さんをWhiteListPlusから削除しました"
  52. if arg-1 is "list":
  53. loop all players:
  54. if {wlp::%loop-player%} is "true":
  55. add loop-player to {_whitelistplus::*}
  56. add 1 to {_slot}
  57. loop all players:
  58. open chest with 6 rows named "&f&lWhitelist&e&l+ &a&llist " to player
  59. format slot {_slot} of player with paper named "&6&l%{_whitelistplus::*}%" to close
  60. set {_slot} to 0
Add Comment
Please, Sign In to add comment