Advertisement
choco3224

WebsCho

Apr 21st, 2020
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. #=================================================================
  2. # ★--------------★
  3. # WebsCho©
  4. # VERSION 1.4
  5. # By Choco3224
  6. # ★--------------★
  7. #=================================================================
  8.  
  9. options:
  10. #-Idiomas-
  11. esp: true
  12.  
  13. #Mensage de reload
  14. msgreload: &aReload completado
  15.  
  16. #-Webs-(modificar para cambiar las webs de /web y /webs)
  17.  
  18. web1: &2Web: &fwww.enderplay.net
  19. web2: &6Tienda: &fshop.enderplay.net
  20. web3: &9Discord: &fhttps://discord.gg/FvMUmGc
  21. web4: &3Twitter: &f@twenderplay
  22. web5: &9Fb: &f/EnderPlayEs
  23. web6: &4Yotube: &fEnderPlay
  24. foro: &3Foro: &2www.enderplay.net
  25. discord: &6https://discord.gg/K84sU7S
  26.  
  27. #Permisos
  28. perm1: webscho.admin
  29. perm2: webscho.ac
  30. MainPermission: webscho.use
  31. ReloadPermission: webscho.admin
  32. NoPermissionMSG: &cTu no tienes permisos.
  33.  
  34. #-Prefix-
  35. Webs: &7[&6WebsCho&7]&f
  36. Webs1: &7[&6WebsCho&7]
  37.  
  38. #-Actualizar-
  39. updater: true
  40. Autoupdate: true
  41.  
  42. #-----------------------NO EDITAR---------------------------------
  43. #Sonidos
  44. Sound0: AMBIENCE_CAVE
  45. Sound1: NOTE_PLING
  46. Sound2: AMBIENCE_THUNDER
  47. Sound3: EXPLODE
  48. Sound4: NOTE_BASS
  49. Sound5: ORB_PICKUP
  50. Sound6: FIREWORK_TWINKLE2
  51. Sound7: NOTE_SNARE_DRUM
  52. Sound8: NOTE_BASS_GUITAR
  53. Sound9: FIRE_IGNITE
  54. Sound10: FIZZ
  55. Sound11: SUCCESSFUL_HIT
  56. Sound13: YOUR_SOUND
  57. Sound14: Choco324
  58. SoundVolume: 200.0
  59.  
  60. #Version
  61. version: V1.5
  62.  
  63.  
  64. on load:
  65. message "&a-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-" to console
  66. message "&fNueva version!" to console
  67. message "&fVersion: 1.5 - Webscho by choco3224" to console
  68. message "&b-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-" to console
  69.  
  70. #Editar / Edit
  71.  
  72. command /foro:
  73. trigger:
  74. if {@esp} is true:
  75. message "{@Webs1} {@foro}"
  76.  
  77. command /discord:
  78. trigger:
  79. if {@esp} is true:
  80. message "{@Webs1} {@discord}"
  81.  
  82. command /web:
  83. trigger:
  84. if {@esp} is true:
  85. message "&6=================&3Info&6==================="
  86. message "{@web1}"
  87. message "{@web2}"
  88. message "{@web3}"
  89. message "{@web4}"
  90. message "{@web5}"
  91. message "{@web6}"
  92. message "&6=========================================="
  93.  
  94. command /webs:
  95. trigger:
  96. if {@esp} is true:
  97. message "&6=================&3Info&6==================="
  98. message "{@web1}"
  99. message "{@web2}"
  100. message "{@web3}"
  101. message "{@web4}"
  102. message "{@web5}"
  103. message "{@web6}"
  104. message "&6=========================================="
  105.  
  106. command /websversion:
  107. trigger:
  108. if {@esp} is true:
  109. message "&fVersion: 1.5 - Webscho by choco3224"
  110.  
  111.  
  112. command /webscho [<text>]:
  113. aliases: /webcho
  114. usage: /webscho help,update,reload,version
  115. trigger:
  116. if player has permission "{@perm1}":
  117. if arg 1 is "update":
  118. if {@updater} is true:
  119. wait 1 second
  120. if text from "" is not "{@version}":
  121. message "{@Webs} Nueva version disponible! &6Descarga de: &bhttps://www.spigotmc.org/resources/Websich.22174/"
  122. if text from "" is "{@version}":
  123. message "{@Webs} No hay actualizacion disponible."
  124. stop
  125. if arg 1 is "version":
  126. message "&6================================"
  127. message "&3Version1.5"
  128. message "&6==============★★★★=============="
  129. stop
  130. if arg 1 is "Help":
  131. message "&6====================================================="
  132. message "/webscho version - Version de WebsCho"
  133. message "/webscho update - &7Comprueba si hay actualizacion"
  134. message "/webscho reload &7Recarga el plugin"
  135. message "&6========================★★★★★★========================"
  136. if arg 1 is "reload":
  137. make console execute command "sk reload WebsCho.sk"
  138. wait 2 seconds
  139. message "{@msgreload}"
  140. stop
  141.  
  142. #---UPDATE---
  143.  
  144. on join:
  145. if {@updater} is true:
  146. player has permission "{@perm1}":
  147. wait 1 second
  148. if text from "https://pastebin.com/BmkWCtBp" is not "{@version}":
  149. message "{@Webs1} Nueva version disponible! &6Descarga de: &bhttps://www.spigotmc.org/resources/Websich.22174/"
  150.  
  151. on skript unload:
  152. wait a tick
  153. execute console command "sk reload WebsCho"
  154. send "{@Webs1} Cargando actualizacion..." to console
  155.  
  156. on skript load:
  157. execute console command "sk reload WebsCho"
  158. send "{@Webs1} Actualizado correctamente :D &a {@version}" to console
  159.  
  160.  
  161.  
  162.  
  163. every 300 seconds:
  164. if {@Autoupdate} is true:
  165. if text from "https://pastebin.com/BmkWCtBp" is not "{@version}":
  166. download from "https://enderplay.net/archivos/WebsCho.sk" to "plugins/Skript/scripts/WebsCho.sk"
  167. wait 5 ticks
  168. execute console command "skript reload WebsCho"
  169. wait 5 ticks
  170. loop all players:
  171. if loop-player is op:
  172. send "&e&lActualización WebsCho a la version {@version}" to loop-player
  173. send "&bActualización de la sección de opciones si es necesario!" to loop-player
  174. send "&aPor favor reporta cualquier bug!" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement