Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-----------------------------------------------------------------------------------------------------------#
- # MyCommand Commands config file (last update v5.2.0) #
- # #
- # BukkitDev Help page : http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example #
- # #
- # How to make a command : (See an example command below) #
- # For first, put your command name on first line #
- # Now put your command_line name after the "command:" line. Don't forget the '/' before your command. #
- # So, now select your command type from a predefined list putting it after "type" line #
- # COMMAND TYPE LIST : #
- # TEXT , ALIAS , RUN_COMMAND , BROADCAST_TEXT , RUN_COMMAND_TEXT , RUN_COMMAND_BROADCAST_TEXT #
- # ADD_PERMISSION , WARMUP , COOLDOWN , RUN_CONSOLE , RUNCOMMAND_PERM_BROADCAST_TEXT , SPOUT_TEXT #
- # RUN_COMMAND_RANDOM , RUN_ASOPERATOR , ICON_MENU , SCOREBOARD , BUNGEE_TP , SPOUT_NOTIFICATION #
- # BAR_API_TEXT , BAR_API_BROADCAST_TEXT , RUN_CONSOLE_RANDOM , CALL_URL, TITLE, BROADCAST_TITLE #
- # #
- # If your command is "TEXT" type, you can put multiple line of text below this parameter #
- # You can do the same thing with the "RUNCOMMAND" type, but instead of text, puts commands in this list #
- # For delayed command(s) add $delay$ before the command in runcmd Example : - $delay$/list #
- # Set delay time with delaytimer: 5 (5 = seconds) | #
- # If you are using the Vault plugin, you can put the "cost: 123.0" with this line. #
- # You can customize your permission node by placing "permission-node:" field in a command #
- # Also,you can change the permission error message with "permission-error:" #
- # Custom error-message for invalid args ,put "error-message:" line in a command. #
- # You can use itemcost : 'ID:AMOUNT' for set a cost with items. #
- # Register REAL commands putting "register: true" below the command. #
- # With register commands you can use the "tab_completer: - Hi - Hello!" #
- # For Scripts and more features, find more on the bukkitdev page #
- #-----------------------------------------------------------------------------------------------------------#
- 'simple_dice':
- command: /mycmd-dice
- type: TEXT
- text:
- - '&0[&6Dice&0] &eYou got &6$rnd6 !'
- permission-required: true
- permission-node: mycommand.cmd.dice
- permission-error: "&a$player! , &2You can't use this command!"
- 'tab_completer':
- command: /greets
- type: RUN_COMMAND
- runcmd:
- - /me $arg1
- register: true
- tab_completer:
- - Hi
- - Hello!
- 'shortcut':
- command: /l
- type: RUN_COMMAND
- runcmd:
- - '/list'
- cost: 0
- 'colors':
- command: /mycmd-colors
- type: TEXT
- text:
- - "&11 &22 &33 &44 &55 &66 &77 &88 &99 &00 &aa &bb &cc &dd &ee &ff"
- - "&nn&r &mm&r &ll&r &oo&r $random_color :D"
- permission-required: false
- 'delay_example':
- command: /mycmd-timer
- type: RUN_COMMAND
- runcmd:
- - '$delay$/say 3..'
- - '$delay$/say 2..'
- - '$delay$/say 1..'
- cost: 0
- delaytimer: 1
- delaytimer_format: SECONDS
- 'broadcast_example':
- command: /mycmd-broadcast
- type: BROADCAST_TEXT
- text:
- - '&eBroadcast message!&r $multiargs'
- runcmd:
- - '/sample'
- cost: 0
- delaytimer: 5
- 'run_by_console':
- command: /mycmd-runconsole
- type: RUN_CONSOLE
- runcmd:
- - /say This /say it's performed by console.
- cost: 0
- delaytimer: 5
- 'warmups_cooldowns_info':
- command: /warmupsandcooldowns
- type: TEXT
- text:
- - 'Put your command over /warmupsandcooldowns'
- - 'And change type : from text to WARMUP for Warmups and COOLDOWN for Cooldowns'
- - 'adjust the warmup and cooldowns time with delaytimer'
- delaytimer: 5
- 'add_permission':
- command: /mycmd-addpermission
- type: ADDPERMISSION
- text:
- - '$6Overwrite an existing command permission, adding another permission here.'
- cost: 0
- delaytimer: 5
- 'text_various_args':
- command: /mycmd-textargs
- type: TEXT
- text:
- - '&2Player name : &a$player'
- - '&2World : &a$world'
- - '&2Health : &a$health &2Food : &a$food'
- - '&2Exp : &a$exp &2Level : &a$level'
- - '&2Gamemode : &a$gamemode'
- - '&2LastDamage : &a$lastdamage'
- 'an_list_command':
- command: /mycmd-online
- type: TEXT
- text:
- - '&2There are &a$online &2players online.'
- - '&a $ponline'
- clearchat:
- command: /mycmd-clearchat
- type: BROADCAST-TEXT
- text:
- - '%Repeat%30% '
- 'shortcut_with_multiargs':
- command: /mycmd-shortcut
- type: RUN_COMMAND
- runcmd:
- - '/say $multiargs'
- cost: 0
- delaytimer: 5
- 'random_example':
- command: /rockpaperscissors
- type: RUNCOMMAND_RANDOM
- text:
- - 'Rock-paper-scissors'
- runcmd:
- - '/me Rock!'
- - '/me Paper!'
- - '/me Scissors!'
- 'iconmenu_page1':
- command: /iconmenu
- type: ICON_MENU
- text:
- - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
- - 'ITEM_NAME can also be ITEM_NAME;ENCHANTMENT;LEVEL'
- iconmenu_title: '&cMyCommand &4ItemMenu'
- iconmenu_size: 27
- iconmenu_commands:
- - '0:GOLDEN_APPLE:0:/help:&2Help:&aOpen the help menu'
- - '1:COMPASS;DAMAGE_ALL;1:0:/mycmd:Menu:MyCommand menu'
- - '9:EMERALD:0:/list:Player List:&bShow online players'
- - '10:WATCH:0:/time set 0:Day:Turn day'
- - '26:WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'
- cost: 0
- delaytimer: 5
- 'iconmenu_page2':
- command: /iconmenu2
- type: ICON_MENU
- iconmenu_title: 'Page 2'
- iconmenu_size: 9
- iconmenu_commands:
- - '0:GOLDEN_APPLE:0:Do something:Hello!:=)'
- - '8:WOOL:13:%openiconmenu%/iconmenu:Return Back:&cChange IconMenu Page;&a<---------'
- cost: 0
- delaytimer: 5
- 'help_page1':
- command: /mycmd-help 1
- type: TEXT
- text:
- - '$brightgreen ---- MyCommand Help Page One ---'
- - '$gold Test Help 1'
- runcmd:
- - '/sample'
- cost: 0
- delaytimer: 5
- 'help_page0':
- command: /mycmd-help
- type: TEXT
- text:
- - '$brightgreen ---- MyCommand Help Main Page---'
- - '$gold Test Help '
- runcmd:
- - '/sample'
- cost: 0
- delaytimer: 5
- 'itemcost_example':
- command: /itemcostexample
- type: TEXT
- text:
- - '$random_colorYou have spent 5 Cobblestone for run this command.'
- runcmd:
- - '/sample'
- cost: 0
- itemcost: 'COBBLESTONE:5'
- delaytimer: 5
- 'scoreboard_example':
- command: /sbtest
- type: SCOREBOARD
- text:
- - 'Remove scoreboard after DelayTimer(sec) - 0 = never'
- scoreboard_name: '&bTest'
- scoreboard_text:
- - '$randomnumber%1000%:Lucky'
- - '$exp:Exp'
- - '$level:Level'
- cost: 0
- delaytimer: 5
- 'bungeecord_example':
- command: /bungeetest
- type: BUNGEE_TP
- server_name: hub
- 'allowed_worlds_example':
- command: /onlynether
- type: TEXT
- text:
- - "&cYea,The Nether!"
- allowed_worlds:
- - world_nether
- 'per_world_commands':
- command: /perworldcommand
- type: RUN_COMMAND
- runcmd:
- - "$world=%world%/me This command will be performed only if you are in the world"
- - "$world=%world_nether%/me And this only if you are in the nether"
- permission-required: false
- 'executefortest':
- command: /executeforall
- type: RUN_CONSOLE
- executefor: ONLINE_PLAYERS
- runcmd:
- - "/tp $player 0 64 0"
- permission-required: false
- 'ouch':
- command: /ouch
- type: RUN_COMMAND
- runcmd:
- - '%PlayerOptions%damage: 1'
- - '$text$&c<3'
- permission-required: false
- 'heal':
- command: /mycmd-heal
- type: RUN_COMMAND
- runcmd:
- - '%PlayerOptions%setHealth: 20'
- - '%PlayerOptions%setFoodLevel: 20'
- - '%PlayerOptions%sendMessage: &aHealed!'
- permission-required: false
- 'world_guard_example':
- command: /checkregion
- type: TEXT
- text:
- - 'You are in $wgregionname region!'
- allowed_wg_region:
- - 'region_name_here'
- 'custom_cmd_cooldown':
- command: /cooldown-example
- type: TEXT
- text:
- - '&aBla bla bla, type the command again for see the cooldown effect.'
- cooldown: 5
- 'call_url':
- command: /call-url
- type: CALL_URL
- url: 'http://localhost/yourscript.php?variable=$arg1&player=$player'
- get_output : true
- show_output_ingame : true
- save_output_as : httpResponse
- script_example:
- command: /scriptexample1
- type: RUN_COMMAND
- runcmd:
- - $Script$%if%$arg1==password
- - $text$$random_colorRight!
- - $Script$%if%$arg1==420
- - $text$SWAG
- - $Script$%else%
- - $text$Password not correct
- bar_text:
- command: /bar_example
- type: BAR_API_TEXT
- text:
- - '&aHello $player'
- bar_seconds: 5
- bar_percentage: 8
- bar_style: SEGMENTED_20
- bar_flag: DARKEN_SKY
- bar_color: PINK
- rawmessage_example:
- command: /raw1
- type: RAW_TEXT
- text:
- - '&aHello &b$player! &aHover your mouse over me!; &dMAGIC'
- - '&0[&d*&0]&e Click me; &eClick Here for suggest the command &d/mycmd;/mycmd'
- - '$RUN_COMMAND$&0[&e*&0]&c Set the time to day; &eClick for Execute;/time set day'
- - '$OPEN_URL$&0[&e*&0]$random_color Open Google.com; &eClick for open;http://www.google.com'
- lottery_example:
- command: /lottery_example
- type: RUN_COMMAND
- runcmd:
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
- - '$text$&6Welcome to &eMyCommand &6Lottery!'
- - '$delay$'
- - '$text$&b+------------------------------------'
- - '$text$&b| &2Prize of today :'
- - '$text$&b| &aCOBBLESTONE, BREAD, APPLE, GOLD_INGOT or DIAMOND! '
- - '$text$&b+------------------------------------'
- - '$text$&ePlease wait for the results!'
- - '$delay$$delay$$delay$'
- - '$delay$$text$&0[$random_colorLottery&0] &65...'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
- - '$delay$$text$&0[$random_colorLottery&0] &64...'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
- - '$delay$$text$&0[$random_colorLottery&0] &63...'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
- - '$delay$$text$&0[$random_colorLottery&0] &62...'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
- - '$delay$$text$&0[$random_colorLottery&0] &61...'
- - '%PlayerOptions%playSound: BLOCK_LEVER_CLICK:1.0F:1'
- - '$delay$'
- - '%PlayerOptions%playSound: ENTITY_EXPERIENCE_ORB_PICKUP:1.0F:1'
- - '$Script$%PlayerData%lotteryprize=$GetRandomStringFromList%COBBLESTONE;DIAMOND;GOLD_INGOT;BREAD;APPLE%'
- - '$Script$%PlayerData%amount_lotteryprize=$randomnumber%3%'
- - '$delay$'
- - '$text$&b+------------------------------------'
- - '$text$&b| &6Congratulation! You won : &e $PlayerData%amount_lotteryprize% $PlayerData%lotteryprize%! '
- - '$text$&b+------------------------------------'
- - '%PlayerOptions%addItem: $PlayerData%lotteryprize%:$PlayerData%amount_lotteryprize%'
- delaytimer: 1
- dailybonus:
- command: /dailybonus
- type: RUN_COMMAND
- runcmd:
- - "$Script$%if%$todaydate!=$PlayerData%DailyBonus%"
- - "$text$&0[&6Daily&eBonus&0]&b Hello $player! Here, your daily reward!"
- - "$text$&0[&6Daily&eBonus&0]&b Received &a1 DIAMOND!"
- - "%PlayerOptions%addItem: DIAMOND:1"
- - "$Script$%PlayerData%DailyBonus=$todaydate"
- - "$text$&0[&6Daily&eBonus&0]&b Come back tomorrow!"
- - "$Script$%else%"
- - "$text$&0[&6Daily&eBonus&0]&b That's enough for today! Come back tomorrow!"
- permission-required: false
- website:
- command: /website
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Website; &eClick to open;http://www.trekcraft.ca/'
- - '&b--------------------'
- permission-required: false
- store:
- command: /store
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Store; &eClick to open;http://www.trekcraft.ca/shop'
- - '&b--------------------'
- permission-required: false
- application:
- command: /apply
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Applications; &eClick to open;http://www.trekcraft.ca/application'
- - '&b--------------------'
- permission-required: false
- forums:
- command: /forums
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Forums; &eClick to open;http://www.trekcraft.ca/forums'
- - '&b--------------------'
- permission-required: false
- instagram:
- command: /instagram
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Instagram; &eClick to open;https://www.instagram.com/trekcraft/'
- - '&b--------------------'
- permission-required: false
- memberplus:
- command: /member+
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open Member+ Guide; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewthread/26371690-how-to-get-member-rank-by-oreo'
- - '&b--------------------'
- permission-required: false
- guides:
- command: /guides
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Guides; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewforum/6894130'
- - '&b--------------------'
- permission-required: false
- bans:
- command: /bans
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Bans; &eClick to open;http://trekcraftmc.com/index.php'
- - '&b--------------------'
- permission-required: true
- permission-node: mycommand.cmd.bans
- permission-error: "&a$player! , &2You can't use this command!"
- helplist:
- command: /helplist
- type: RAW_TEXT
- text:
- - '&b--------------------'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Guides; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewforum/6894130'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Instagram; &eClick to open;https://www.instagram.com/trekcraft/'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Forums; &eClick to open;http://www.trekcraft.ca/forums'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Store; &eClick to open;http://www.trekcraft.ca/shop'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Website; &eClick to open;http://www.trekcraft.ca/'
- - '$OPEN_URL$&0[&e*&0]$random_color Open TC Applications; &eClick to open;http://www.trekcraft.ca/application'
- - '$OPEN_URL$&0[&e*&0]$random_color Open Member+ Guide; &eClick to open;http://www.trekcraft.ca/forums/m/37099730/viewthread/26371690-how-to-get-member-rank-by-oreo'
- - '&b--------------------'
- permission-required: false
Add Comment
Please, Sign In to add comment