ryanlopes

Pedido

Jul 23rd, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. options:
  2. # Coloque aqui o prefixo das mensagens
  3. Prefixo: &4[WinagBans]
  4.  
  5. # Coloque aqui os comandos que seram executados no /ban00
  6. Comando1: mmoedit %arg 1% all 0
  7. Comando2: money set %arg 1% 0
  8. Comando3: resetkdr %arg 1%
  9. Comando4: clearchest %arg 1%
  10. Comando5: thor %arg 1%
  11. Comando6: kill %arg 1%
  12. Comando7: ban %arg 1% %arg 2% %player%
  13.  
  14. # Mensagens do plugin
  15. MensagemBan: &f%player%&c baniu &f%arg 1%
  16. MensagemUnban: &f%player%&c desbaniu &f%arg 1%
  17.  
  18.  
  19. command /ban00 [<player>] [<text>]:
  20. trigger:
  21. if arg 1 is set:
  22. if arg 2 is set:
  23. if player has permission "ban.ban00":
  24. execute console command "{@Comando1}"
  25. execute console command "{@Comando2}"
  26. execute console command "{@Comando3}"
  27. execute console command "{@Comando4}"
  28. execute console command "{@Comando5}"
  29. execute console command "{@Comando6}"
  30. execute console command "{@Comando7}"
  31. stop
  32. else:
  33. send "{@Prefixo}&c Use /ban <player> <motivo>"
  34. else:
  35. send "{@Prefixo}&c Você não tem permissão para isso."
  36.  
  37. command /ban [<player>] [<text>]:
  38. trigger:
  39. if arg 1 is set:
  40. if arg 2 is set:
  41. if player has permission "ban.ban":
  42. broadcast "{@Prefixo}{@MensagemBan}"
  43. ban arg 1 due to "%arg 2%"
  44. stop
  45.  
  46. command /desbanir [<offlineplayer>]:
  47. trigger:
  48. if arg 1 is set:
  49. unban arg 1
  50. broadcast "{@Prefixo} {@MensagemUnban}"
  51. stop
Advertisement
Add Comment
Please, Sign In to add comment