MyComand

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Uživatelský avatar
Misso
Příspěvky: 1201
Věk: 28
Registrován: 27 dub 2013, 17:20
Reputation: 0
Bydliště: Slovakia
Kontaktovat uživatele:

MyComand

#1 Příspěvekod Misso » 06 čer 2014, 20:53

Server: IP:93.91.250.102:27140

Čaute. Chcem si spraviť na server SERVER MENU pomocou pluginu MyCommand. Ale nejak mi to nejde.

1, Ako spravím aby po príchode na server dostali napr. hodiny kde bude to SERVER MENU ?
2, Chcem do toho SERVER MENU napr.: blok dreva a ked nan kliknes tak tam budu dalsie itemi a tie ich portnu na urcite minihry

commands.yml
Spoiler: zobrazit

Kód: Vybrat vše

#-----------------------------------------------------------------------------------------------------------#
#                       MyCommand Commands config file (last update v5.1.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 you command number on first line                                         #
#      Now put your command name on "command:" line. Don't forget the '/' before you command.            #
#      So,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                                                 #
#                                                                                 #
#   Now,if you command it's "TEXT" type,you can put multiple line of text below text list               #
#   Same thing,if your command it's "RUNCOMMAND" type,but put you commands below runcmd list.            #
#   For Delayed command add $delay$ before the command in runcmd Example : - $delay$/list               #
#   Set delay time with delaytimer: 5 (5 = seconds) | Use the dot . for decimal cost Example = cost : 5.5    #
#   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 "registered: true" below the command.                             #
#   With registered command you can use the "tab_completer: - Hi - Hello!"                            #
#-----------------------------------------------------------------------------------------------------------#
'gamemode_alias':
  command: /gm
  type: ALIAS
  alias: /gamemode
  permission-required: true
'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:
  - /say $arg1
  registered: 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"
  permission-required: false
'shortcut_with_arguments':
  command: /t
  type: RUN_COMMAND
  runcmd:
  - '/time $arg1 $arg2'
  cost: 0
  delaytimer: 5
  error-message: '&cType &e/t set day'
'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!'
  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
'addpermission':
  command: /mycmd-addpermission
  type: TEXT
  text:
  - '$gold Put your command over /mycmd-addpermission'
  - '$gold And change type : from text to ADDPERMISSION'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'text_various_args':
  command: /mycmd-textargs
  type: TEXT
  text:
  - 'Player Name : $player'
  - 'World : $world'
  - 'Health : $health Food : $food'
  - 'Exp : $exp Level : $level'
  - 'Gamemode : $gamemode'
  - 'LastDamage : $lastdamage'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'an_list_command':
  command: /mycmd-online
  type: TEXT
  text:
  - '$red There are $online players online.'
  - '$gold $ponline'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
clearchat:
  command: /mycmd-clearchat
  type: BROADCAST-TEXT
  text:
  - '%Repeat%30% '
'shortcut_with_multiargs':
  command: /mycmd-shortcut
  type: RUN_COMMAND
  text:
  - '$red Text of command $black14'
  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: /giantcraft
  type: ICON_MENU
  text:
  - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'
  iconmenu_title: '&cMyCommand &4ItemMenu'
  iconmenu_size: 27
  iconmenu_commands:
  - '0:GOLDEN_APPLE:0:/help:&2Help:&aOpen the help menu'
  - '1:COMPASS;DAMAGE_ALL: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
'script_example':
  command: /scriptexample
  type: TEXT
  text:
  - 'Example'
  runcmd:
  - '$Script$HasPermission==custompermission.test'
  - '$Script$SetInteger=1'
  - '$Script$Integer==1'
  - '$Script$SetString=ciao'
  - '$Script$String!=lol'
  - '$Script$Integer>10'
  - '/dosomething'
  cost: 0
  delaytimer: 5
'itemcost_example':
  command: /itemcostexample
  type: TEXT
  text:
  - 'This command cost 5 Cobblestone. COBBLESTONE=ITEM_NAME 5 = AMOUNT'
  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'
  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: /mycmd-cooldownme
  type: TEXT
  text:
  - 'Text Here'
  cooldown: 5


config.yml
Spoiler: zobrazit

Kód: Vybrat vše

#-----------------------------------------------------------------------------------------------------------#
#                       MyCommand Plugin config file (last update v5.0.0)                        #
#                                                                                 #
#                 BukkitDev Help page : http://dev.bukkit.org/server-mods/mycommand/                 #
#                                                                                 #
# With the listener, you can disable completely plugin parts. Put true for active and false for deactive it #
# The vehicle listener,it's used only for DETECTOR_RAIL Material.                                 #
# The Move listener instead,it's user for warmups.                                              #
# DELAY_SEC in Signs and Block it's used for prevent the command floods.Put it on 0,for disable.         #
# The Economy function require the Vault plugin. Download it here : http://dev.bukkit.org/server-mods/vault/#                                                                        #
#-----------------------------------------------------------------------------------------------------------#
LISTENERS:
  CUSTOM_COMMANDS_GAME: true
  CUSTOM_COMMANDS_CONSOLE: true
  BLOCK_LISTENER: true
  ITEM_LISTENER: true
  SIGN_LISTENER: true
  VEHICLE_LISTENER: false
  MOVE_LISTENER: false
  EXTRA_LISTENER: false
DEBUG:
  GAME: false
  CONSOLE: true
  DISABLE_PERMISSIONS: false
ECONOMY:
  ALLOW_DEBIT: false
SCHEDULER:
  ENABLED: false
  DATE_FORMAT: "d M yyyy"
  FIRST_CHECK_AFTER_SEC: 60
  LAUNCH_CHECK_ON_EVERY_N_MIN: 60
SIGNS:
  HEADER: "[MYCMD]"
  DELAY_SEC: 5
BLOCKS:
  DELAY_SEC: 5
  MATERIAL:
    RIGHT_CLICK_INTERACTION:
    - LEVER
    - STONE_BUTTON
    - WOOD_BUTTON
    - WOODEN_DOOR
    PHYSICAL_INTERACTION:
    - STONE_PLATE
    - WOOD_PLATE
    - DETECTOR_RAIL


Samozrejme odmena K+

MagiCraft
Příspěvky: 369
Registrován: 29 kvě 2013, 18:34
Reputation: 3
Kontaktovat uživatele:

Re: MyComand

#2 Příspěvekod MagiCraft » 06 čer 2014, 20:59

NO ta ako to chceš je podľa mňa lepší ChestCommand ja ho mám tiež a som spokojný :) tam sa dá aj nastaviť čím to menu otvoríš a tak
IP: Play.MagiCraft.eu
MagiCraft

Ak som pomohol K+ poteší :)

Uživatelský avatar
Misso
Příspěvky: 1201
Věk: 28
Registrován: 27 dub 2013, 17:20
Reputation: 0
Bydliště: Slovakia
Kontaktovat uživatele:

Re: MyComand

#3 Příspěvekod Misso » 06 čer 2014, 21:06

chcel by som pomôcť s MyCommand

xflemgodax
Příspěvky: 138
Registrován: 09 úno 2014, 19:01
Reputation: 0
Kontaktovat uživatele:

Re: MyComand

#4 Příspěvekod xflemgodax » 06 čer 2014, 22:37

Koukni sem: http://dev.bukkit.org/bukkit-plugins/mycommand/pages/configuration-and-example/
Vzor:
Spoiler: zobrazit

Kód: Vybrat vše

'example':     //Název příkazu v MyCommand
  command: /iconmenu       //Příkaz při kterém se menu otevře
  type: ICON_MENU           //Typ příkazu
  text:                           //Nastavení menu
  - 'POSITION:ITEM_NAME:ITEMDATA:COMMAND/MESSAGE:TITLE:DESCRIPTION;MULTILINES'      //Vzor pro nastavení jednotlivých příkazu v menu
  iconmenu_title: '&cMyCommand &4ItemMenu'           //Text v levém rohu lišty menu
  iconmenu_size: 27                                             //Počet míst v menu
  iconmenu_commands:                                       //Příkazy v menu
  - '0:GOLDEN_APPLE:0:/help:&2Help:&aOpen the help menu'
  - '1:COMPASS: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--------->'                       //Další stránka menu

Čemu nerozumíš? I kdybys to dělal poprvé, tak až zas těžké to není, stačí si tam hodit tento vzor a poupravit ho podlé svého, potom to už budeš kopírovat a upravovat.
Pokud bys chtěl, aby se ti menu otevíralo například se zlatým jablkem, tak si ho vezmeš na serveru do ruky a napíšeš příkaz:

Kód: Vybrat vše

/mycmd-itemset /<příkaz, který aktivuje menu>

Aby hned dostal item, bys mohl využít Essentials a jeho startovní kit, měl by item v kitu. Ale při každém připojení bys asi musel využít další plugin.
O něčem takovém v MyCommand nevím.

Uživatelský avatar
Misso
Příspěvky: 1201
Věk: 28
Registrován: 27 dub 2013, 17:20
Reputation: 0
Bydliště: Slovakia
Kontaktovat uživatele:

Re: MyComand

#5 Příspěvekod Misso » 07 čer 2014, 14:27

no... napr.: napíšem tam toto: - '0:DIAMOND:0:/warp minihry:&2Zoznam:&aZoznam minihier'
A chcem to, že keď kliknem v SERVER MENU na DIAMOND tak sa mi otvorí zoznam minihier napr. paintball,tntrun atd...
(a tam bude konecné portnutie na miesto kde je paintball,tntrun...)
Ako to spravím ?

xflemgodax
Příspěvky: 138
Registrován: 09 úno 2014, 19:01
Reputation: 0
Kontaktovat uživatele:

Re: MyComand

#6 Příspěvekod xflemgodax » 08 čer 2014, 15:01

Teď jsem, ale nepochopil jednu věc. Ten záznam má být v dalším menu,
nebo to má být místnost, kde si daný hráč vybere kam chce?

Pokud bys chtěl udělat "Hlavní menu" a "Game menu"
Musíš vytvořit 2 rozdílné menu a v tom hlavním hodit tohle:

Kód: Vybrat vše

  - '26:WOOL:11:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'                       //Další stránka menu

Samozřejmě si to upravíš. Např:

Kód: Vybrat vše

- '0:DIAMOND:0:%openiconmenu%/<příkaz pro "Game menu">:Games:&bList her na našem serveru'

Hlavně si musíš udělat druhé menu, první "Hlavní menu" a v něm tenhle příkaz, který ho přepojí do dalšího..

Uživatelský avatar
Misso
Příspěvky: 1201
Věk: 28
Registrován: 27 dub 2013, 17:20
Reputation: 0
Bydliště: Slovakia
Kontaktovat uživatele:

Re: MyComand

#7 Příspěvekod Misso » 08 čer 2014, 15:51

jáj jasné už viem diky K+
A ešte je nejaký prikaz čo by zavrel to Menu ? dal by som tam napr. stone block a po kliknutí by sa zavrelo menu.

Edit: Ešte toto nerozumem
Spoiler: zobrazit

Kód: Vybrat vše

/mycmd-itemset /<příkaz, který aktivuje menu>

dal som si do ruky hodinky a napísal som /mycmd-itemset on
A ako si mám zobrať tie hodiny kde sa mi to otvorí ?


Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 47 hostů