Advertisement
Guest User

CustomCommands/commands.yml

a guest
Dec 25th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. # ------------------------------------------------------------ #
  2. # All the custom commands
  3. # ------------------------------------------------------------ #
  4.  
  5. # Exemple command : aliases to /spawn with a delay
  6.  
  7. ccspawn:
  8.  
  9. # Firth configuration : command usage
  10. # This will be displayed when a player misuses a command
  11.  
  12. usage: '/ccspawn, /spawn, /teleportspawn'
  13.  
  14. # Second configuration : command aliases
  15. # When the player will do /ccspawn, /spawn or /teleportspawn, the command will be handled here
  16. # This is case insensivite
  17.  
  18. aliases:
  19. - 'ccspawn'
  20. - 'spawn'
  21. - 'teleportspawn'
  22.  
  23. # Third configuration : arguments patterns that the player can use
  24. #
  25. # In the patterns, for each arg, you can use :
  26. # anything you want, so the player must enter it
  27. # [string], so the player can enter anything
  28. # [string:{min}:{max}], so the player can enter anything between {min} characters and {max} characters
  29. # [int], so the player must enter a number
  30. # [double], so the player must enter a decimal number (like 12.85 or 12,85)
  31. # [infinite], so after this arg the player can enter an infinite number of arguments
  32. #
  33. # This is case insensivite
  34.  
  35. arguments-patterns:
  36.  
  37. # Fourth configuration : the permission needed to use the command
  38. # Just remove the line if you don't want a permission
  39.  
  40. permission: 'cc.spawn'
  41.  
  42. # Last configuration : the actions executed when the player executes the command
  43. #
  44. # Actions list :
  45. #
  46. # 'send message'
  47. # data :
  48. # - target ('player', 'everyone', '{arg:[NUMBER]}')
  49. # - message line 1 (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
  50. # - message line 2 (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
  51. # - ...
  52. #
  53. # 'wait x ticks'
  54. # data :
  55. # - delay in ticks
  56. #
  57. # 'execute commands for'
  58. # data:
  59. # - command 1 (placeholders : {args}, {player}, {arg:NUMBER})
  60. # - command 2 (placeholders : {args}, {player}, {arg:NUMBER})
  61. # - ...
  62. #
  63. # 'execute commands as'
  64. # data :
  65. # - target ('player', 'everyone', '{arg:[NUMBER]}')
  66. # - command 1 (placeholders : {args}, {player}, {arg:NUMBER})
  67. # - command 2 (placeholders : {args}, {player}, {arg:NUMBER})
  68. # - ...
  69. #
  70. # 'send title'
  71. # data :
  72. # - target ('player', 'everyone', '{arg:[NUMBER]}')
  73. # - title (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
  74. # - subtitle (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
  75. # - fadein in ticks
  76. # - duration in ticks
  77. # - fadeout in ticks
  78. #
  79. # 'send actionbar'
  80. # data :
  81. # - target ('player', 'everyone', '{arg:[NUMBER]}')
  82. # - the action bar (placeholders : {args}, {player}, {receiver}, {arg:NUMBER})
  83. #
  84. # 'give item'
  85. # data:
  86. # - target ('player', 'everyone', '{arg:[NUMBER]}')
  87. # - the item name (when you saved it with /ccmd saveitem [name])
  88. #
  89. # 'teleport'
  90. # data:
  91. # - target ('player', 'everyone', '{arg:[NUMBER]}')
  92. # - the location name (when you saved it with /ccmd saveloc [name])
  93.  
  94. actions:
  95. my-action-1:
  96. type: 'send message'
  97. data:
  98. - 'player'
  99. - '§cYou''ll be teleported soon to spawn.'
  100. - '§cPlease, wait 3 seconds...'
  101. my-action-2:
  102. type: 'wait x ticks'
  103. data:
  104. - '60'
  105. my-action-3:
  106. type: 'execute commands for'
  107. data:
  108. - 'spawn {player}'
  109. my-action-4:
  110. type: 'execute commands as'
  111. data:
  112. - 'player'
  113. - 'me I''m now at spawn !'
  114. my-action-5:
  115. type: 'send title'
  116. data:
  117. - 'player'
  118. - '&7You''re at spawn !'
  119. - '&7For real !'
  120. - '10'
  121. - '80'
  122. - '10'
  123. my-action-6:
  124. type: 'send actionbar'
  125. data:
  126. - 'player'
  127. - '&aYOU ARE AT SPAWN !!! :D'
  128.  
  129. ula:
  130. usage: /ula
  131. aliases:
  132. - 'ula'
  133. arguments-patterns:
  134. - '[string]'
  135. permission: upload.level.a
  136. actions:
  137. message-recording:
  138. type: 'send message'
  139. data:
  140. - 'player'
  141. - '&cRecording video...'
  142. delay-recording:
  143. type: 'wait x ticks'
  144. data:
  145. - '18'
  146. message-uploading:
  147. type: 'send message'
  148. data:
  149. - 'player'
  150. - '&aUploading video...'
  151. delay-uploading:
  152. type: 'wait x ticks'
  153. data:
  154. - '12'
  155. message-views:
  156. type: 'send message'
  157. data:
  158. - 'player'
  159. - '&1Generating views...'
  160. delay-views:
  161. type: 'wait x ticks'
  162. data:
  163. - '3'
  164. message-views-done:
  165. type: 'send message'
  166. data:
  167. - 'player'
  168. - '&7You got&2 {args}&7views on your newest video!'
  169. give-views:
  170. type: 'execute commands for'
  171. data:
  172. - 'levelme addExp {player} Player {args}'
  173.  
  174. ulb:
  175. usage: /ulb
  176. aliases:
  177. - 'ulb'
  178. arguments-patterns:
  179. - '[string]'
  180. permission: upload.level.b
  181. actions:
  182. message-recording:
  183. type: 'send message'
  184. data:
  185. - 'player'
  186. - '&cRecording video...'
  187. delay-recording:
  188. type: 'wait x ticks'
  189. data:
  190. - '1800'
  191. message-uploading:
  192. type: 'send message'
  193. data:
  194. - 'player'
  195. - '&aUploading video...'
  196. delay-uploading:
  197. type: 'wait x ticks'
  198. data:
  199. - '1200'
  200. message-views:
  201. type: 'send message'
  202. data:
  203. - 'player'
  204. - '&1Generating views...'
  205. delay-views:
  206. type: 'wait x ticks'
  207. data:
  208. - '300'
  209. message-views-done:
  210. type: 'send message'
  211. data:
  212. - 'player'
  213. - '&7You got &217 &7views on your newest video!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement