Guest User

Lojinha legalzinha

a guest
Jul 4th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. options:
  2. Prefix: &6[LOJA]
  3.  
  4. # AAAAAAAAAA
  5.  
  6. PermSetLoja: loja.setar
  7. PermAnunLoja: loja.anunciar
  8. PermDelLoja: loja.deletar
  9.  
  10. # Set Loja
  11.  
  12. CmdSetLoja: setloja
  13. PermSetLoja: loja.setar
  14. PermMsgSetLoja: &7* &6Comando exclusivo para jogadores VIPs
  15. MsgSetouLoja: &6* &eSua loja foi setada com sucesso!
  16.  
  17. # Teleport Loja
  18.  
  19. TempoTeleporte: 3
  20. MsgEsperar: &6Espere &e{@TempoTeleporte} &6segundos.
  21. Teleportado: &7Teleportado para a loja de
  22. SemLoja: &7não tem uma loja!
  23.  
  24. command /{@CmdSetLoja}:
  25. permission: {@PermSetLoja}
  26. permission message: {@PermMsgSetLoja}
  27. trigger:
  28. set {loja.%player%} to location of player
  29. send "{@Prefix}"
  30. send "{@MsgSetouLoja}"
  31. send "&6* &eCaso queira anunciar sua loja utilize &7/anunciarloja&e."
  32. send "{@Prefix}"
  33. stop
  34.  
  35. command /loja [<text>]:
  36. trigger:
  37. if arg 1 is set:
  38. if {loja.%arg 1%} is set:
  39. send "{@Prefix}"
  40. send "&7Espere &6{@TempoTeleporte} &7segundos"
  41. send "{@Prefix}"
  42. wait {@TempoTeleporte} seconds
  43. teleport player to {loja.%arg 1%}
  44. send "{@Prefix}"
  45. send "{@Teleportado} &e%arg 1%&6!"
  46. play raw sound "random.levelup" at player with pitch 1 volume 5
  47. set action bar of player to coloured "&6Bem-vindo a loja de &e%arg 1%"
  48. send "{@Prefix}"
  49. else:
  50. send "{@Prefix}"
  51. send "&e%arg 1% {@SemLoja}"
  52. send "{@Prefix}"
  53. stop
  54. else:
  55. send "{@Prefix}"
  56. send "&eUso correto: &6/loja <jogador>&e."
  57. send "{@Prefix}"
  58.  
  59. command /anunciarloja:
  60. permission: {@PermAnunLoja}
  61. permission message: {@PermMsgSetLoja}
  62. trigger:
  63. if {loja.%player%} is set:
  64. set {_delay} to difference between {Esperar.Delay::%player%} and now
  65. if {_delay} is less than 1 minutes:
  66. send "{@Prefix}"
  67. send "&7Aguarde para usar este comando novamente."
  68. send "{@Prefix}"
  69. stop
  70. loop all players:
  71. set action bar of loop-player to coloured "&6[Loja] &7Vá a loja de &e%player%&7!"
  72. play raw sound "random.levelup" at loop-player with pitch 1 volume 5
  73. set {Esperar.Delay::%player%} to now
  74. broadcast "{@Prefix}"
  75. broadcast "&e%player% &6o convida para sua loja."
  76. broadcast "&eDigite &6/loja %player% &epara aceitar o convite."
  77. broadcast "{@Prefix}"
  78. set {FMegafone.Delay.%player%} to now
  79. stop
  80. else:
  81. send "{@Prefix}"
  82. send "&eVocê {@SemLoja}"
  83. send "{@Prefix}"
  84.  
  85. command /deletarloja [<text>]:
  86. permission: {@PermDelLoja}
  87. permission message: {@PermMsgSetLoja}
  88. trigger:
  89. if {loja.%player%} is set:
  90. if arg 1 is set:
  91. if arg 1 is "confirmar":
  92. clear {loja.%player%}
  93. send "{@Prefix}"
  94. send "&7Sua loja foi excluida"
  95. send "{@Prefix}"
  96. stop
  97. else:
  98. wait 15 ticks
  99. play raw sound "random.chestopen" at player with pitch 1 volume 5
  100. open chest with 3 row named "&6» &7Confirmação" to player
  101. wait 5 ticks
  102. loop 26 times:
  103. add 1 to {_slot}
  104. format slot {_slot} of player with a blue stained glass pane named "&l" with lore "&l" to run ""
  105. format slot 0 of player with a blue stained glass pane named "&l" with lore "&l" to run ""
  106. format slot 10 of player with a light green wool named "&aConfirmar" with lore "&7Clique aqui para confirmar" to close then run [execute player command "deletarloja confirmar"]
  107. format slot 16 of player with a red wool named "&cCancelar" with lore "&7Clique aqui para cancelar" to close
  108. stop
  109. else:
  110. send "{@Prefix}"
  111. send "&eVocê {@SemLoja}"
  112. send "{@Prefix}"
  113. stop
Add Comment
Please, Sign In to add comment