Advertisement
Tails_Prower_24

Menu problem

Dec 9th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.68 KB | None | 0 0
  1. #-----------------------------------------------------------------------------------------------------------#
  2. # MyCommand Commands config file (last update v5.3.0) #
  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 your command name on first line #
  8. # Now put your command_line name after the "command:" line. Don't forget the '/' before your command. #
  9. # So, now 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 , RUN_CONSOLE_RANDOM , SPOUT_TEXT #
  13. # RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION #
  14. # BAR_API_TEXT , BAR_API_BROADCAST_TEXT , CALL_URL, TITLE, BROADCAST_TITLE, ACTION_BAR #
  15. # #
  16. # If your command is "TEXT" type, you can put multiple line of text below this parameter #
  17. # You can do the same thing with the "RUNCOMMAND" type, but instead of text, puts commands in this list #
  18. # For delayed command(s) add $delay$ before the command in runcmd Example : - $delay$/list #
  19. # Set delay time with delaytimer: 5 (5 = seconds) | #
  20. # If you are using the Vault plugin, you can put the "cost: 123.0" with this line. #
  21. # You can customize your permission node by placing "permission-node:" field in a command #
  22. # Also,you can change the permission error message with "permission-error:" #
  23. # Custom error-message for invalid args ,put "error-message:" line in a command. #
  24. # You can use itemcost : 'ID:AMOUNT' for set a cost with items. #
  25. # Register REAL commands putting "register: true" below the command. #
  26. # With register commands you can use the "tab_completer: - Hi - Hello!" #
  27. # For Scripts and more features, find more on the bukkitdev page #
  28. #-----------------------------------------------------------------------------------------------------------#
  29. gamemode_alias:
  30. command: /gm
  31. type: ALIAS
  32. alias: /gamemode
  33. permission-required: true
  34. simple_dice:
  35. command: /mycmd-dice
  36. type: TEXT
  37. text:
  38. - '&0[&6Dice&0] &eYou got &6$rnd6 !'
  39. permission-required: true
  40. permission-node: mycommand.cmd.dice
  41. permission-error: "&a$player! , &2You can't use this command!"
  42. tab_completer:
  43. command: /greets
  44. type: RUN_COMMAND
  45. runcmd:
  46. - '$broadcasttext$&0[&e$player&0]&r $multiargs'
  47. required_args: 1
  48. register: true
  49. tab_completer:
  50. - Hi
  51. - Hello!
  52. - Well Met!
  53. shortcut:
  54. command: /l
  55. type: RUN_COMMAND
  56. runcmd:
  57. - '/list'
  58. cost: 0
  59. mycmd_colors:
  60. command: /mycmd-colors
  61. type: TEXT
  62. text:
  63. - "&11 &22 &33 &44 &55 &66 &77 &88 &99 &00 &aa &bb &cc &dd &ee &ff"
  64. - "&nn&r &mm&r &ll&r &oo&r $random_color :D"
  65. permission-required: false
  66. shortcut_with_arguments:
  67. command: /t
  68. type: RUN_COMMAND
  69. runcmd:
  70. - '/time $arg1 $arg2'
  71. cost: 0
  72. error-message: '&cType &e/t set day'
  73. require_all_arguments: true
  74. delay_example:
  75. command: /mycmd-countdown
  76. type: RUN_COMMAND
  77. runcmd:
  78. - '$delay$$broadcasttext$&0[&eCountdown&0] $random_color3..'
  79. - '$delay$$broadcasttext$&0[&eCountdown&0] $random_color2..'
  80. - '$delay$$broadcasttext$&0[&eCountdown&0] $random_color1..'
  81. - '$delay$$broadcasttext$&0[&eCountdown&0] &eGO!!'
  82. cost: 0
  83. delaytimer: 1
  84. delaytimer_format: SECONDS
  85. broadcast_example:
  86. command: /mycmd-broadcast
  87. type: BROADCAST_TEXT
  88. text:
  89. - '&0[&e$player&0]&r $multiargs'
  90. required_args: 1
  91. run_by_console:
  92. command: /mycmd-runconsole
  93. type: RUN_CONSOLE
  94. runcmd:
  95. - /say This /say it's performed by the console.
  96. cost: 0
  97. warmups_cooldowns_info:
  98. command: /warmupsandcooldowns
  99. type: TEXT
  100. text:
  101. - 'Put your command over /warmupsandcooldowns'
  102. - 'And change type : from text to WARMUP for Warmups and COOLDOWN for Cooldowns'
  103. - 'adjust the warmup and cooldowns time with delaytimer'
  104. delaytimer: 5
  105. add_permission:
  106. command: /command-to-override
  107. type: ADD_PERMISSION
  108. text:
  109. - '$6Add an extra permission to another existing command'
  110. permission-node: permission.name
  111. cost: 0
  112. some_placeholders:
  113. command: /mycmd-playerinfo
  114. type: TEXT
  115. text:
  116. - '&2Player name : &a$player'
  117. - '&2World : &a$world'
  118. - '&2Health : &a$health &2Food : &a$food'
  119. - '&2Exp : &a$exp &2Level : &a$level'
  120. - '&2Gamemode : &a$gamemode'
  121. - '&2LastDamage : &a$lastdamage'
  122. mycmd_list_command:
  123. command: /mycmd-online
  124. type: TEXT
  125. text:
  126. - '&2There are &a$online &2players online.'
  127. - '&a $ponline'
  128. clear_chat:
  129. command: /clearchat
  130. type: BROADCAST_TEXT
  131. text:
  132. - '%Repeat%100% '
  133. - '&0[&eMyCommand&0]&b Chat clared :D'
  134. shortcut_with_multiargs:
  135. command: /mycmd-shortcut
  136. type: RUN_COMMAND
  137. runcmd:
  138. - '/say $multiargs'
  139. random_example:
  140. command: /rockpaperscissors
  141. type: RUN_COMMAND_RANDOM
  142. runcmd:
  143. - '/me Rock!'
  144. - '/me Paper!'
  145. - '/me Scissors!'
  146. iconmenu_page1:
  147. command: /menu
  148. type: ICON_MENU
  149. text:
  150. - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
  151. - 'ITEM_NAME can also be ITEM_NAME;ENCHANTMENT_NAME;LEVEL'
  152. iconmenu_title: '&cHelp &4Menu'
  153. iconmenu_size: 27
  154. iconmenu_commands:
  155. - '0:GOLDEN_APPLE:0:/help:&2Help:&aOpen the help menu'
  156. - '1:DIAMOND:0:/staff:&2Staff:&aSee online staff'
  157. - '2:COMPASS;DAMAGE_ALL;1:0:/spawn:Hub:Teleport to the Hub!'
  158. - '3:GRASS:0:/warp Factions:&4Factions:Warp to the Factions world'
  159. - '9:EMERALD:0:/stats:Player Stats:&bShows you your stats'
  160. - '10:WATCH:0:/time set 0:Day:Turn day'
  161. - '26:WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'
  162. cost: 0
  163. delaytimer: 5
  164. iconmenu_page2:
  165. command: /iconmenu2
  166. type: ICON_MENU
  167. iconmenu_title: 'Page 2'
  168. iconmenu_size: 9
  169. iconmenu_commands:
  170. - '0:GOLDEN_APPLE:0:Do something:Hello!:=)'
  171. - '8:WOOL:13:%openiconmenu%/iconmenu:Return Back:&cChange IconMenu Page;&a<---------'
  172. cost: 0
  173. iconmenu_page2:
  174. command: /help
  175. type: ICON_MENU
  176. iconmenu_title: 'Getting Help'
  177. iconmenu_size: 9
  178. iconmenu_commands:
  179. - '0:BOOK;DAMAGE_ALL:0:/kit intro:An introduction'
  180. - '1:BOOK;DAMAGE_ALL:0:/kit how_to_play:How to play:How to play factions on the server'
  181. - '2:BOOK;DAMAGE_ALL:0:/kit rules:Rules:Shortened list of server rules'
  182. - '3:BOOK;DAMAGE_ALL:0:/kit Commands:Commands:A list of commands'
  183. - '4:COMPASS;DAMAGE_ALL;5:0:/help:Get help:Talk to a mod'
  184. cost: 0
  185. delaytimer: 5
  186. help_page_0:
  187. command: /mycmd-help
  188. type: TEXT
  189. text:
  190. - '&a ---- &6MyCommand Help &eMain Page &a----'
  191. - '&e This is the Main page of the help '
  192. - '&e Type &6/mycmd-help 2 &efor see the second page'
  193. help_page_1:
  194. command: /mycmd-help 2
  195. type: TEXT
  196. text:
  197. - '&a ---- &6MyCommand Help &ePage two &a----'
  198. - '&e And this is the page two of the help'
  199. itemcost_example:
  200. command: /itemcostexample
  201. type: TEXT
  202. text:
  203. - '$random_colorYou have spent 5 Cobblestone for see this message.'
  204. itemcost: 'COBBLESTONE:5'
  205. scoreboard_example:
  206. command: /sbexample
  207. type: SCOREBOARD
  208. text:
  209. - The Scoreboard will get removed after DelayTimer(sec). If 0 don't remove
  210. - Use $marquee$ as a prefix of the scoreboard name for scroll the text.
  211. - Use scoreboard_refresh_ticks, for determinate how frequent the plugin have to update the scoreboard.
  212. scoreboard_name: "$marquee$&1M&2y&3C&4o&5m&6m&7a&8n&9d &aS&bc&co&dr&ee&fb&0o&1a&2r&3d &nExample&r "
  213. scoreboard_text:
  214. - "4;&c&lCoordinates:"
  215. - "3;&6X:&e $locX &6Y:&e $locY &6Z:&e $locZ "
  216. - "2;&c&lPlayer Info:"
  217. - "1;&6Health: &e$health"
  218. - "0;&6Food: &e$food"
  219. scoreboard_refresh_ticks: 5
  220. delaytimer: 10
  221. bungeecord_example:
  222. command: /bungeetest
  223. type: BUNGEE_TP
  224. server_name: hub
  225. allowed_worlds_example:
  226. command: /onlynether
  227. type: TEXT
  228. text:
  229. - "&cYea,The Nether!"
  230. allowed_worlds:
  231. - world_nether
  232. per_world_commands:
  233. command: /perworldcommand
  234. type: RUN_COMMAND
  235. runcmd:
  236. - "$world=%world%/me This command will be performed only if you are in the world"
  237. - "$world=%world_nether%/me And this only if you are in the nether"
  238. permission-required: false
  239. executefor_example:
  240. command: /executeforall
  241. type: RUN_CONSOLE
  242. executefor: ONLINE_PLAYERS
  243. runcmd:
  244. - "/tp $player 0 64 0"
  245. permission-required: false
  246. ouch:
  247. command: /ouch
  248. type: RUN_COMMAND
  249. runcmd:
  250. - '%PlayerOptions%damage: 1'
  251. - '$text$&c<3'
  252. permission-required: false
  253. heal_me:
  254. command: /mycmd-heal
  255. type: RUN_COMMAND
  256. runcmd:
  257. - '%PlayerOptions%setHealth: 20'
  258. - '%PlayerOptions%setFoodLevel: 20'
  259. - '%PlayerOptions%sendMessage: &aHealed!'
  260. permission-required: false
  261. world_guard_example:
  262. command: /checkregion
  263. type: TEXT
  264. text:
  265. - 'You are in $wgregionname region!'
  266. allowed_wg_region:
  267. - 'region_name_here'
  268. custom_cmd_cooldown:
  269. command: /cooldown-example
  270. type: TEXT
  271. text:
  272. - '&aBla bla bla, type the command again for see the cooldown effect.'
  273. cooldown: 5
  274. custom_cmd_warmup:
  275. command: /warmup-example
  276. type: TEXT
  277. text:
  278. - '&aYou have waited 5 second for see this command performed'
  279. warmup: 5
  280. call_url:
  281. command: /call-url
  282. type: CALL_URL
  283. url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
  284. get_output : true
  285. show_output_ingame : true
  286. save_output_as : httpResponse
  287. script_example_420:
  288. command: /example420
  289. type: RUN_COMMAND
  290. runcmd:
  291. - $Script$%if%$arg1==password
  292. - $text$&eRight!
  293. - $Script$%if%$arg1==420
  294. - $text$&aBLAZE IT
  295. - $Script$%else%
  296. - $text$Password not correct
  297. bar_text:
  298. command: /bar_example
  299. type: BAR_API_TEXT
  300. text:
  301. - '&aHello $random_color$player'
  302. bar_seconds: 5
  303. bar_percentage: 8
  304. bar_style: SEGMENTED_20
  305. bar_flag: DARKEN_SKY
  306. bar_color: PINK
  307. rawmessage_example:
  308. command: /raw-example
  309. type: RAW_TEXT
  310. text:
  311. - '&aHello &b$player! &aHover your mouse over me!; &dMAGIC'
  312. - '&0[&d*&0]&e Click me; &eClick Here for suggest the command &d/mycmd;/mycmd'
  313. - '$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick for Execute;/time set day'
  314. - '$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick for open;http://www.google.com'
  315. lottery_example:
  316. command: /lottery_example
  317. type: RUN_COMMAND
  318. runcmd:
  319. - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  320. - '$text$&6Welcome to &eMyCommand &6Lottery!'
  321. - '$delay$'
  322. - '$text$&b+------------------------------------'
  323. - '$text$&b| &2Prize of today :'
  324. - '$text$&b| &aCOBBLESTONE, BREAD, APPLE, GOLD_INGOT or DIAMOND! '
  325. - '$text$&b+------------------------------------'
  326. - '$text$&ePlease wait for the results!'
  327. - '$delay$$delay$$delay$'
  328. - '$delay$$text$&0[$random_colorLottery&0] &65...'
  329. - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  330. - '$delay$$text$&0[$random_colorLottery&0] &64...'
  331. - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  332. - '$delay$$text$&0[$random_colorLottery&0] &63...'
  333. - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  334. - '$delay$$text$&0[$random_colorLottery&0] &62...'
  335. - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  336. - '$delay$$text$&0[$random_colorLottery&0] &61...'
  337. - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
  338. - '$delay$'
  339. - '%PlayerOptions%playSound: ENTITY_EXPERIENCE_ORB_PICKUP:1.0F:1'
  340. - '$Script$%PlayerData%lotteryprize=$GetRandomStringFromList%COBBLESTONE;DIAMOND;GOLD_INGOT;BREAD;APPLE%'
  341. - '$Script$%PlayerData%amount_lotteryprize=$randomnumber%3%'
  342. - '$delay$'
  343. - '$text$&b+------------------------------------'
  344. - '$text$&b| &6Congratulation! You won : &e $PlayerData%amount_lotteryprize% $PlayerData%lotteryprize%! '
  345. - '$text$&b+------------------------------------'
  346. - '%PlayerOptions%addItem: $PlayerData%lotteryprize%:$PlayerData%amount_lotteryprize%'
  347. delaytimer: 1
  348. dailybonus:
  349. command: /dailybonus
  350. type: RUN_COMMAND
  351. runcmd:
  352. - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
  353. - "$text$&0[&6Daily&eBonus&0]&b Hello $player! Here, your daily reward!"
  354. - "$text$&0[&6Daily&eBonus&0]&b Received &a1 DIAMOND!"
  355. - "%PlayerOptions%addItem: DIAMOND:1"
  356. - "$Script$%PlayerData%DailyBonus=$todaydate"
  357. - "$text$&0[&6Daily&eBonus&0]&b Come back tomorrow!"
  358. - "$Script$%else%"
  359. - "$text$&0[&6Daily&eBonus&0]&b That's enough for today! Come back tomorrow!"
  360. permission-required: false
  361. broadcast_message_with_perm:
  362. command: /brmsgwithperm
  363. type: BROADCAST_TEXT
  364. text:
  365. - "Only the player with the correct permission can see this message"
  366. broadcast_message_permission_node: permission.for.see.this.message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement