Guest User

Untitled

a guest
Nov 11th, 2016
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. command /admin [<text>] [<text>]:
  2. trigger:
  3. if player has permission "admin.usar":
  4. if arg 1 is not set:
  5. send "&c/admin &4entrar&c/&4sair"
  6. if arg 1 is "entrar":
  7. if arg 2 is set:
  8. if {ViiictorXD::Entrou::%player%} is false:
  9. set {ViiictorXD::Entrou::%player%} to true
  10. send "§cVocê entrou no modo Admin!"
  11. apply invisibility 2 to the player for 1 days
  12. set player's gamemode to creative
  13. set the player's tablist name to "%arg 2%"
  14. set the player's display name to "%arg 2%"
  15. give 1 glass pane named " " to player
  16. give 1 glass pane named " " to player
  17. give 1 wooden sword of sharpness 1000 named "§cHitkill" to player
  18. give 1 blaze rod named "§cKnockback (UP)" to player
  19. give 1 chest named "§cAbrir Bau" to player
  20. give 1 wooden hoe named "§cLimpar Inventário" to player
  21. give 1 cobweb named "§cPrender Player" to player
  22. give 1 glass pane named " " to player
  23. give 1 glass pane named " " to player
  24. give 1 glass pane named " " to player
  25. broadcast "&c[-] %player%"
  26. else:
  27. send "&cVocê já se encontra no modo admin!"
  28. else:
  29. send "&cDigite um nome de um player falso!"
  30. if arg 1 is "sair":
  31. if {ViiictorXD::Entrou::%player%} is true:
  32. set the player's tablist name to "%player%"
  33. set the player's display name to "%player%"
  34. set {ViiictorXD::Entrou::%player%} to false
  35. set player's gamemode to survival
  36. send "&cVocê saiu do modo Admin!"
  37. remove invisibility from the player
  38. clear the player's inventory
  39. broadcast "&a[+] %player%"
  40. else:
  41. send "&cVocê não está no modo Admin!"
  42.  
  43. on right click on a player:
  44. if tool of player is wooden hoe:
  45. if {ViiictorXD::Entrou::%player%} is true:
  46. clear the clicked entity's inventory
  47. send "§cVocê limpou o inventário do §4%clicked entity%§c." to player
  48.  
  49. on right click on a player:
  50. if tool of player is blaze rod:
  51. if {ViiictorXD::Entrou::%player%} is true:
  52. push clicked entity up at speed 5
  53. set {ViiictorXD::NoFall::%clicked entity%} to true
  54. send "§cVocê jogou §4%clicked entity% §cpara cima!" to player
  55. wait 4 seconds
  56. set {ViiictorXD::NoFall::%clicked entity%$} to false
  57.  
  58. on right click on a player:
  59. if tool of player is cobweb:
  60. if {ViiictorXD::Entrou::%player%} is true:
  61. loop blocks in radius 3 around clicked entity:
  62. loop-block is air
  63. set loop-block to glass
  64. send "§cVocê prendeu §4%clicked entity%§c!" to player
  65.  
  66. on right click on a player:
  67. if tool of player is chest:
  68. if {ViiictorXD::Entrou::%player%} is true:
  69. open inventory of clicked entity to player
  70. send "§cVocê abriu inventário do §4%clicked entity%§c!" to player
  71.  
  72. on damage:
  73. damage cause is fall:
  74. {ViiictorXD::NoFall::%victim%} is true:
  75. cancel event
Advertisement
Add Comment
Please, Sign In to add comment