Advertisement
maozou

whitelist+

Nov 4th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. command /white <player> [<text>]:
  2. permission: minecarft.command.ban
  3. trigger:
  4. set {banned.%arg 1%} to "white"
  5. if arg 2 is set:
  6. kick the arg 1 due to "%arg 2%"
  7. wait a tick
  8. send "&a%arg 1%さんをwhitelistsしました。"
  9. wait a tick
  10. send "&a%arg 1%さんのip: &b%ip of arg 1%"
  11. wait a tick
  12. send "&awhite解除は/unwhiteで行えます。"
  13. add arg 1 to {whitelists}
  14. if arg 2 is not set:
  15. kick the arg 1 due to "white"
  16. wait a tick
  17. send "&a%arg 1%さんをwhiteしました。"
  18. wait a tick
  19. send "&a%arg 1%さんのip: &b%ip of arg 1%"
  20. wait a tick
  21. send "&aban解除は/unwhiteで行えます。"
  22. add arg 1 to {whitelists}
  23. command /unwhite <offline player>:
  24. permission: minecraft.command.pardon
  25. trigger:
  26. delete {white.%arg 1%}
  27. remove arg 1 from {whitelists}
  28. send "&a%arg 1%さんのwhiteを解除しました。"
  29. command /whitelists:
  30. permission: skript.admin
  31. trigger:
  32. send "&awhite list: %{whitelists}%"
  33. on connect:
  34. if {banned.%player%} is "white":
  35. kick the player due to "do not connect. reason:this server is whitelisted"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement