Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. command /ban [<offlineplayer>] [<integer>] [<text>]:
  2. permission: battleban.usar
  3. permission message: &7&l[&aBattle&6Games&7&l] &cComando protegido pela staff.
  4. trigger:
  5. if arg 1 is set:
  6. if arg 2 is set:
  7. if arg 3 is set:
  8. log "Jogador %player% baniu %arg 1% por %arg 3% motivo: %arg 3%" to "banimentos.yml"
  9. set {ban.banido.%arg 1%} to "true"
  10. set {ban.banidox1.%arg 1%} to "true"
  11. set {ban.motivo.%arg 1%} to arg 3
  12. set {ban.operador.%arg 1%} to player
  13. set {ultimoip.%arg 1%} to "%ip of argument 1%"
  14. set {tempotraduzido.ban.%arg 1%} to "%arg 2% &cminuto(s)."
  15. kick the argument 1 due to "&cVocê foi banido! Motivo: &e%arg 3% &cTempo Restante: &e%arg 2% &cminuto(s)."
  16. set {ban.tempo.%arg 1%} to "%arg 2% minutes" parsed as time span
  17. broadcast "&c[BAN] &cJogador %arg 1% foi banido por %arg 2% minuto(s)"
  18. broadcast "&c[BAN] &cMotivo: %arg 3%"
  19. set {_espera} to difference between {ban.jogador.tempo::%arg 1%} and now
  20. if {_espera} is less than {ban.tempo.%arg 2%}:
  21. set {tempotraduzido.%arg 1%} to "%difference between {tempotraduzido.ban.%arg 1%} and {_espera}%"
  22. replace all "minute" with "minuto" in {tempotraduzido.%arg 1%}
  23. replace all "second" with "segundo" in {tempotraduzido.%arg 1%}
  24. replace all "hour" with "hora" in {tempotraduzido.%arg 1%}
  25. replace all "and" with "e" in {tempotraduzido.%arg 1%}
  26. wait {ban.tempo.%arg 1%}
  27. set {ban.banido.%arg 1%} to "false"
  28. else:
  29. send "&e[BAN] &cExpecifique o motivo do banimento."
  30. stop
  31. else:
  32. send "&e[BAN] &cExpecifique o tempo do banimento."
  33. stop
  34. else:
  35. send "&e[BAN] &cUso correto: /ban <jogador> <tempo em minutos> <motivo>"
  36. send "&e[BAN] &cExemplo: /ban zJOGADORz 30 Flood"
  37. stop
  38. command /infoban <offlineplayer>:
  39. permission: battleban.usar
  40. permission message: &7&l[&aBattle&6Games&7&l] &cComando protegido pela staff.
  41. trigger:
  42. if arg 1 is set:
  43. if {ban.banidox1.%arg 1%} is "true":
  44. send "&9===== INFO BAN &9====="
  45. send "&eNickname: &7%arg 1%"
  46. send "&eIP: &7%{ultimoip.%arg 1%}%"
  47. send "&eUUID: &7%uuid of arg 1%"
  48. send "&eMotivo: &7%{ban.motivo.%arg 1%}%"
  49. send "&eBanido: &7Sim"
  50. send "&eOperador: &7%{ban.operador.%arg 1%}%"
  51. send "&eData de Registro: &7Função em Desenvolvimento"
  52. send "&eÚltimo Login: &7Função em Desenvolvimento"
  53. send "&9===== INFO BAN &9====="
  54. else:
  55. send "&e[BAN] &cEste jogador nunca foi banido."
  56. command /desbanir <offlineplayer> [<text>]:
  57. permission: battleban.usar
  58. permission message: &7&l[&aBattle&6Games&7&l] &cComando protegido pela staff.
  59. trigger:
  60. if arg 1 is set:
  61. if arg 2 is set:
  62. if {ban.banido.%arg 1%} is "true":
  63. broadcast "&c[BAN] Jogador %arg 1% foi desbanido."
  64. broadcast "&c[BAN] Motivo: %arg 2%"
  65. set { ban.banido.%arg 1%} to "false"
  66. log "Jogador %player% desbaniu %arg 1% por %arg 2%" to "desbanimentos.yml"
  67. stop
  68. else:
  69. send "&e[BAN] &cEste jogador não está banido."
  70. stop
  71. else:
  72. send "&e[BAN] &cUso correto: /desbanir <jogador> <motivo>"
  73. stop
  74. else:
  75. send "&e[BAN] &cUso correto: /desbanir <jogador> <motivo>"
  76. stop
  77. on join:
  78. wait 10 tick
  79. if {ban.banido.%player%} is "true":
  80. kick the player due to "&cVocê está banido! Motivo: &e%{ban.motivo.%player%}% &cTempo Restante: &e%{tempotraduzido.ban.%player%}%"
  81. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement