Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.27 KB | None | 0 0
  1. #-----------------------------------------------------------------------------------------------------------#
  2. # MyCommand Commands config file (last update v5.1.2) #
  3. # #
  4. # BukkitDev Help page : http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example #
  5. # #
  6. # How to make a command : (See an example command below) #
  7. # For first,put you command number on first line #
  8. # Now put your command name on "command:" line. Don't forget the '/' before you command. #
  9. # So,select your command type from a predefined list putting it after "type" line #
  10. # COMMAND TYPE LIST : #
  11. # TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT #
  12. # ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUNCOMMAND_PERM_BROADCAST_TEXT , SPOUT_TEXT #
  13. # RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION #
  14. # BAR_API_TEXT , BAR_API_BROADCAST_TEXT , RUN_CONSOLE_RANDOM , CALL_URL #
  15. # #
  16. # Now,if you command it's "TEXT" type,you can put multiple line of text below text list #
  17. # Same thing,if your command it's "RUNCOMMAND" type,but put you commands below runcmd list. #
  18. # For Delayed command add $delay$ before the command in runcmd Example : - $delay$/list #
  19. # Set delay time with delaytimer: 5 (5 = seconds) | Use the dot . for decimal cost Example = cost : 5.5 #
  20. # You can customize your permission node by placing "permission-node:" field in a command #
  21. # Also,you can change the permission error message with "permission-error:" #
  22. # Custom error-message for invalid args ,put "error-message:" line in a command. #
  23. # You can use itemcost : 'ID:AMOUNT' for set a cost with items. #
  24. # Register REAL commands putting "register: true" below the command. #
  25. # With register commands you can use the "tab_completer: - Hi - Hello!" #
  26. #-----------------------------------------------------------------------------------------------------------#
  27. 'gamemode_alias':
  28. command: /gm
  29. type: ALIAS
  30. alias: /gamemode
  31. permission-required: true
  32. 'skyblock':
  33. command: /sb
  34. type: ALIAS
  35. alias: /sb create
  36. permission-required: false
  37. 'simple_dice':
  38. command: /mycmd-dice
  39. type: TEXT
  40. text:
  41. - '&0[&6Dice&0] &eYou got &6$rnd6 !'
  42. permission-required: true
  43. permission-node: mycommand.cmd.dice
  44. permission-error: "&a$player! , &2You can't use this command!"
  45. 'tab_completer':
  46. command: /greets
  47. type: RUN_COMMAND
  48. runcmd:
  49. - /say $arg1
  50. register: true
  51. tab_completer:
  52. - Hi
  53. - Hello!
  54. 'shortcut':
  55. command: /l
  56. type: RUN_COMMAND
  57. runcmd:
  58. - '/list'
  59. cost: 0
  60. 'colors':
  61. command: /mycmd-colors
  62. type: TEXT
  63. text:
  64. - "&11 &22 &33 &44 &55 &66 &77 &88 &99 &00 &aa &bb &cc &dd &ee &ff"
  65. - "&nn&r &mm&r &ll&r &oo&r"
  66. permission-required: false
  67. 'shortcut_with_arguments':
  68. command: /t
  69. type: RUN_COMMAND
  70. runcmd:
  71. - '/time $arg1 $arg2'
  72. cost: 0
  73. delaytimer: 5
  74. error-message: '&cType &e/t set day'
  75. 'delay_example':
  76. command: /mycmd-timer
  77. type: RUN_COMMAND
  78. runcmd:
  79. - '$delay$/say 3..'
  80. - '$delay$/say 2..'
  81. - '$delay$/say 1..'
  82. cost: 0
  83. delaytimer: 1
  84. delaytimer_format: SECONDS
  85. 'broadcast_example':
  86. command: /mycmd-broadcast
  87. type: BROADCAST_TEXT
  88. text:
  89. - '&eBroadcast Message!'
  90. runcmd:
  91. - '/sample'
  92. cost: 0
  93. delaytimer: 5
  94. 'run_by_console':
  95. command: /mycmd-runconsole
  96. type: RUN_CONSOLE
  97. runcmd:
  98. - /say This /say it's performed by console.
  99. cost: 0
  100. delaytimer: 5
  101. 'warmups_cooldowns_info':
  102. command: /warmupsandcooldowns
  103. type: TEXT
  104. text:
  105. - 'Put your command over /warmupsandcooldowns'
  106. - 'And change type : from text to WARMUP for Warmups and COOLDOWN for Cooldowns'
  107. - 'adjust the warmup and cooldowns time with delaytimer'
  108. delaytimer: 5
  109. 'addpermission':
  110. command: /mycmd-addpermission
  111. type: TEXT
  112. text:
  113. - '$gold Put your command over /mycmd-addpermission'
  114. - '$gold And change type : from text to ADDPERMISSION'
  115. runcmd:
  116. - '/sample'
  117. cost: 0
  118. delaytimer: 5
  119. 'text_various_args':
  120. command: /mycmd-textargs
  121. type: TEXT
  122. text:
  123. - 'Player Name : $player'
  124. - 'World : $world'
  125. - 'Health : $health Food : $food'
  126. - 'Exp : $exp Level : $level'
  127. - 'Gamemode : $gamemode'
  128. - 'LastDamage : $lastdamage'
  129. runcmd:
  130. - '/sample'
  131. cost: 0
  132. delaytimer: 5
  133. 'an_list_command':
  134. command: /mycmd-online
  135. type: TEXT
  136. text:
  137. - '$red There are $online players online.'
  138. - '$gold $ponline'
  139. runcmd:
  140. - '/sample'
  141. cost: 0
  142. delaytimer: 5
  143. clearchat:
  144. command: /mycmd-clearchat
  145. type: BROADCAST-TEXT
  146. text:
  147. - '%Repeat%30% '
  148. 'shortcut_with_multiargs':
  149. command: /mycmd-shortcut
  150. type: RUN_COMMAND
  151. text:
  152. - '$red Text of command $black14'
  153. runcmd:
  154. - '/say $multiargs'
  155. cost: 0
  156. delaytimer: 5
  157. 'random_example':
  158. command: /rockpaperscissors
  159. type: RUNCOMMAND_RANDOM
  160. text:
  161. - 'Rock-paper-scissors'
  162. runcmd:
  163. - '/me Rock!'
  164. - '/me Paper!'
  165. - '/me Scissors!'
  166. 'iconmenu_page1':
  167. command: /iconmenu
  168. type: ICON_MENU
  169. text:
  170. - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
  171. - 'ITEM_NAME can also be ITEM_NAME;ENCHANTMENT;LEVEL'
  172. iconmenu_title: '&cMyCommand &4ItemMenu'
  173. iconmenu_size: 27
  174. iconmenu_commands:
  175. - '0:GOLDEN_APPLE:0:/help:&2Help:&aOpen the help menu'
  176. - '1:COMPASS;DAMAGE_ALL;1:0:/mycmd:Menu:MyCommand menu'
  177. - '9:EMERALD:0:/list:Player List:&bShow online players'
  178. - '10:WATCH:0:/time set 0:Day:Turn day'
  179. - '26:WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'
  180. cost: 0
  181. delaytimer: 5
  182. 'iconmenu_page2':
  183. command: /iconmenu2
  184. type: ICON_MENU
  185. iconmenu_title: 'Page 2'
  186. iconmenu_size: 9
  187. iconmenu_commands:
  188. - '0:GOLDEN_APPLE:0:Do something:Hello!:=)'
  189. - '8:WOOL:13:%openiconmenu%/iconmenu:Return Back:&cChange IconMenu Page;&a<---------'
  190. cost: 0
  191. delaytimer: 5
  192. 'help_page1':
  193. command: /mycmd-help 1
  194. type: TEXT
  195. text:
  196. - '$brightgreen ---- MyCommand Help Page One ---'
  197. - '$gold Test Help 1'
  198. runcmd:
  199. - '/sample'
  200. cost: 0
  201. delaytimer: 5
  202. 'help_page0':
  203. command: /mycmd-help
  204. type: TEXT
  205. text:
  206. - '$brightgreen ---- MyCommand Help Main Page---'
  207. - '$gold Test Help '
  208. runcmd:
  209. - '/sample'
  210. cost: 0
  211. delaytimer: 5
  212. 'script_example':
  213. command: /scriptexample
  214. type: TEXT
  215. text:
  216. - 'Example'
  217. runcmd:
  218. - '$Script$HasPermission==custompermission.test'
  219. - '$Script$SetInteger=1'
  220. - '$Script$Integer==1'
  221. - '$Script$SetString=ciao'
  222. - '$Script$String!=lol'
  223. - '$Script$Integer>10'
  224. - '/dosomething'
  225. cost: 0
  226. delaytimer: 5
  227. 'itemcost_example':
  228. command: /itemcostexample
  229. type: TEXT
  230. text:
  231. - 'This command cost 5 Cobblestone. COBBLESTONE=ITEM_NAME 5 = AMOUNT'
  232. runcmd:
  233. - '/sample'
  234. cost: 0
  235. itemcost: 'COBBLESTONE:5'
  236. delaytimer: 5
  237. 'scoreboard_example':
  238. command: /sbtest
  239. type: SCOREBOARD
  240. text:
  241. - 'Remove scoreboard after DelayTimer(sec) - 0 = never'
  242. scoreboard_name: '&bTest'
  243. scoreboard_text:
  244. - '$randomnumber%1000%:Lucky'
  245. - '$exp:Exp'
  246. - '$level:Level'
  247. cost: 0
  248. delaytimer: 5
  249. 'bungeecord_example':
  250. command: /bungeetest
  251. type: BUNGEE_TP
  252. server_name: hub
  253. 'allowed_worlds_example':
  254. command: /onlynether
  255. type: TEXT
  256. text:
  257. - "&cYea,The Nether!"
  258. allowed_worlds:
  259. - world_nether
  260. 'per_world_commands':
  261. command: /perworldcommand
  262. type: RUN_COMMAND
  263. runcmd:
  264. - "$world=%world%/me This command will be performed only if you are in the world"
  265. - "$world=%world_nether%/me And this only if you are in the nether"
  266. permission-required: false
  267. 'executefortest':
  268. command: /executeforall
  269. type: RUN_CONSOLE
  270. executefor: ONLINE_PLAYERS
  271. runcmd:
  272. - "/tp $player 0 64 0"
  273. permission-required: false
  274. 'ouch':
  275. command: /ouch
  276. type: RUN_COMMAND
  277. runcmd:
  278. - '%PlayerOptions%damage: 1'
  279. permission-required: false
  280. 'heal':
  281. command: /mycmd-heal
  282. type: RUN_COMMAND
  283. runcmd:
  284. - '%PlayerOptions%setHealth: 20'
  285. - '%PlayerOptions%setFoodLevel: 20'
  286. - '%PlayerOptions%sendMessage: &aHealed!'
  287. permission-required: false
  288. 'world_guard_example':
  289. command: /checkregion
  290. type: TEXT
  291. text:
  292. - 'You are in $wgregionname region!'
  293. allowed_wg_region:
  294. - 'region_name_here'
  295. 'custom_cmd_cooldown':
  296. command: /mycmd-cooldownme
  297. type: TEXT
  298. text:
  299. - 'Text Here'
  300. cooldown: 5
  301. 'call_url':
  302. command: /call-url
  303. type: CALL_URL
  304. url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
  305. get_output : true
  306. show_output_ingame : true
  307. save_output_as : httpResponse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement