Advertisement
Guest User

BuenoAdmin

a guest
Jul 30th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. options:
  2. MsgBan: &cVoce foi banido de nosso servidor! &cPor &c&l%player%
  3. MsgSucesso: &aVoce baniu &c%entity% &acom sucesso!
  4. MsgBanido: &cVoce esta banido de nosso servidor!
  5.  
  6. command /admin [<text>] [<text>]:
  7. trigger:
  8. if player has permission "bueno.admin":
  9. if arg 1 isn't set:
  10. open chest with 1 row named " &c&lBuenoAdmin" to player
  11. format slot 0 of player with blaze rod named "&c&lBanir" to close then run "sudo %player% admin ban"
  12. format slot 1 of player with stick named "&c&lDesbanir" to close then run "sudo %player% admin unban"
  13. format slot 3 of player with 95 named "&c&lKick" to close then run "sudo %player% admin kick"
  14. format slot 2 of player with 95 named "&b&lVanish" to close then run "sudo %player% admin vanish"
  15.  
  16. if arg 1 is "ban":
  17. if arg 2 isn't set:
  18. give 1 blaze rod named "&c&lBan Permanente" to the player
  19.  
  20. if arg 2 is set:
  21. set {banido::%arg 2%} to true
  22. send "{@MsgSucesso}" to the player
  23.  
  24. if arg 1 is "unban":
  25. if arg 2 isn't set:
  26. send "&cPara desbanir um player digite &7/admin unban <player>"
  27.  
  28. if arg 2 is set:
  29. set {banido::%arg 2%} to false
  30. send "&a%arg 2% &cdesbanido com sucesso!"
  31.  
  32. if arg 1 is "vanish":
  33. if {vanish::%player%} is false:
  34. set {vanish::%player%} to true
  35. apply potion of Invisibility to the player for 999 days
  36. apply Invisibility 1000 to the player
  37. set the player's tablist name to " "
  38. send "&aModo invisível foi ativado!" to player
  39.  
  40. if {vanish::%player%} is true:
  41. set {vanish::%player%} to false
  42. remove Invisibility from the player
  43. set the player's tablist name to "%player%"
  44. send "&cModo invisível foi desativado!" to player
  45.  
  46. if arg 1 is "kick":
  47. give 1 blaze rod named "&c&lKick" to the player
  48.  
  49. else:
  50. stop
  51.  
  52. on right click on entity:
  53. if player has permission "bueno.ban":
  54. if player is holding blaze rod named "&c&lKick":
  55. kick clicked entity due to "&cVocê foi expulso de nosso servidor."
  56. send "&cVocê kikou &a%entity%&c!" to the player
  57.  
  58. else:
  59. cancel event
  60.  
  61. on right click on entity:
  62. if player has permission "bueno.ban":
  63. if player is holding blaze rod named "&c&lBan Permanente":
  64. kick clicked entity due to "{@MsgBan}"
  65. set {banido::%entity%} to true
  66. send "{@MsgSucesso}" to the player
  67.  
  68. else:
  69. cancel event
  70.  
  71. on join:
  72. if {banido::%player%} is true:
  73. kick player due to "{@MsgBanido}"
  74. loop all players:
  75. if loop-player has permission "bueno.admin":
  76. send "&a%player% &ctentou entrar no servidor mas está banido." to loop-player
  77.  
  78. else:
  79. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement