Stránka 1 z 2

MyCommand + plugin

Napsal: 25 lis 2013, 20:06
od Batllefury
Server: IP:lion.fakaheda.eu:27820

Caute... Totalne nevim, jak z MyCommand a potřebuju poradit s tím, že když hráči napíšou /NovyOstrov, tak jim to vytvoři new island na skyblocku...
Zde :
Spoiler: zobrazit

Kód: Vybrat vše

  command: /novyostrov $arg1
  type: runcommand
  text:
  - '&eByl ti vytvoren novy ustrov'
  runcmd:
  - '/island'
  - '/res select 100 100 100'
  - '/res select vert'
  - '/res create $arg1'
  cost: 0
  delaytimer: 5


Co tam má být ? Toto mi nejde :D

Jo a neznate plugin. který rozděli peníze tak, že na každým světě budou mít jinou částku peněz ? Že v classicu budou mít 20.000 money a na skyblocku jen 30 ??

Re: MyCommand + plugin

Napsal: 26 lis 2013, 00:48
od zikl
skus to takto

Kód: Vybrat vše

 command: /novyostrov
  type: runcommand
  text:
  - '&eByl ti vytvoren novy ustrov'
  runcmd:
  - '/island'
  - '/res select 100 100 100'
  - '/res select vert'
  - '/res create $player'
  cost: 0
  delaytimer: 5

to $arg1 je když do toho příkazu píšeš třeba ještě nákou hodnotu napr. /novyostrov jmeno_hráče ale když tam je v tom přikazu /res create $player tak za to $player se dosadí jméno hráče co ten příkaz napíše

Re: MyCommand + plugin

Napsal: 26 lis 2013, 14:44
od Batllefury
Aha.. takže kdyz napiše přikaz /novyostrov nevim, tak se vytvoří i reska s nazvem nevim ?

Re: MyCommand + plugin

Napsal: 26 lis 2013, 14:53
od marty_
ano,vytvori se reska jejiz nazvem bude jmeno hrace.

Re: MyCommand + plugin

Napsal: 26 lis 2013, 14:54
od zikl
tak jak sem ti to upravil to bude tak ze napíše /novyostrov a automaticky se jeho jméno dosadí do /res create jeno_jmeno

Re: MyCommand + plugin

Napsal: 26 lis 2013, 14:55
od Batllefury
A pořád ten příkaz neexistuje ://

Re: MyCommand + plugin

Napsal: 26 lis 2013, 14:58
od zikl
dej sem celi config z tema prikazama

Re: MyCommand + plugin

Napsal: 26 lis 2013, 15:02
od Batllefury
Spoiler: zobrazit

Kód: Vybrat vše

# MyCommand  Commands Config File
# commandsnumber (default 20) it's number of command you want make
# Don't forget the '/' on runcmd line , example command: /myhelp
# type accept = text , runcommand , broadcast-text , runcommand-text , runcommand-broadcast-text , perm-broadcast-text , addpermission , addtimer , runconsole , runcommand-perm-broadcast-text , runcommand-random , runasoperator , iconmenu , scoreboard
# Additional type accept if you use Spoutplugin = spout-text , spout-notification.\n" +
# runcommand type example -> If command: /l and runcmd: /list,when you type /l mycommand execute /list
# runcmd support custom argument in game.($arg1,$arg2,$arg3,$arg4,$arg5,$multiargs) Example - runcmd : /time $arg1
# 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 use a custom permission node by placing "permission-node:" field in a command,you also 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.
# http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example
options:
  commandsnumber: 21
'1':
  command: /SBINFO
  type: text
  text:
  - '&b/NOVYOSTROV [nazev ostrovu] - vytvori novy ostrov'
  - '&b/OSTROV - portne te na tvuj ostrov'
  - '&b/PRIDAT [NICK] - prida tveho kamarada na tvuj ostrov'
  - '&b/ODEBRAT [NICK] - odebere tveho kamarada z ostrovu'
  - '&b/ULOZIT - ulozis tvuj domov na ostrove'
  - '&b/ZAMEK - zamce tvuj ostrov (pohyb, rozbijeni...)'
  - '&b/PRIJMOUT - prijme pozvanku od kamarada na ostrov'
  - '&b/OPUSTIT - opustis ostrov'
  - '&b/KICK [NICK] - vyhodite kamarada z ostrovu'
  - '&b/OWARP [NICK] - portnes se na kamarada na ostrovu'
  cost: 0
  delaytimer: 0
'2':
 command: /novyostrov
  type: runcommand
  text:
  - '&eByl ti vytvoren novy ustrov'
  runcmd:
  - '/island'
  - '/res select 100 100 100'
  - '/res select vert'
  - '/res create $player'
  cost: 0
  delaytimer: 5
'3':
  command: /ostrov
  type: runcommand
  text:
  - '&eByl jsi presunut na svuj ostrov'
  runcmd:
  - '/island'
  cost: 0
  delaytimer: 0
'4':
  command: /pridat $player
  type: runcommand
  text:
  - '&eTvuj kamarad $player byl pozvan na tvuj ostrov'
  runcmd:
  - '/island invite $player'
  cost: 0
  delaytimer: 0
'5':
  command: /odebrat $player
  type: runcommand
  text:
  - '&eTvuj kamarad $player byl odebran z ostrovu'
  runcmd:
  - '/island kick $player'
  cost: 0
  delaytimer: 0
'6':
  command: /prijmout
  type: runcommand
  text:
  - '&ePrijal si pozvanku na ostrov'
  runcmd:
  - '/island accept'
  cost: 0
  delaytimer: 0
'7':
  command: /opustit
  type: runcommand
  text:
  - '&eOpustil si ostrov'
  runcmd:
  - '/island leave'
  cost: 0
  delaytimer: 0
'8':
  command: /kick $player
  type: runcommand
  text:
  - '&eVyhodil si hrace $player z ostrova'
  runcmd:
  - '/island kick $player'
  cost: 0
  delaytimer: 0
'9':
  command: /skyblock
  type: runcommand
  text:
  - '&eByl jsi presunut ke SkyBlocku'
  runcmd:
  - '/warp skyblock'
  cost: 0
  delaytimer: 0
'10':
  command: /pvp
  type: runcommand
  text:
  - '&eByl jsi presunut k PvP'
  runcmd:
  - '/warp pvp'
  cost: 0
  delaytimer: 0
'11':
  command: /MiniHry
  type: runcommand
  text:
  - '&eByl jsi presunut k MiniHram'
  runcmd:
  - '/warp minihry'
  cost: 0
  delaytimer: 0
'12':
  command: /svety
  type: runcommand
  text:
  - '&eByl jsi presunut ke svetum'
  runcmd:
  - '/warp svety'
  cost: 0
  delaytimer: 0
'13':
  command: /pravidla
  type: runcommand
  text:
  - ''
  runcmd:
  - '/rules'
  cost: 0
  delaytimer: 0
'14':
  command: /mycmd-shortcut
  type: runcommand
  text:
  - '$red Text of command $black14'
  runcmd:
  - '/say $multiargs'
  cost: 0
  delaytimer: 5
'15':
  command: /mycmd-random
  type: runcommand-random
  text:
  - '$red Text of command $black15'
  runcmd:
  - '/say 1 $multiargs'
  - '/say 2 $multiargs'
  - '/say 3 $multiargs'
  cost: 0
  delaytimer: 5
'16':
  command: /iconmenu
  type: iconmenu
  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: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:/rules:Rules:&cSee the server rules;Read all!'
  cost: 0
  delaytimer: 5
'17':
  command: /mycmd-help 1
  type: text
  text:
  - '$brightgreen ---- MyCommand Help Page One ---'
  - '$gold Test Help 1'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'18':
  command: /mycmd-help
  type: text
  text:
  - '$brightgreen ---- MyCommand Help Main Page---'
  - '$gold Test Help '
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'19':
  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
'20':
  command: /itemcostexample
  type: text
  text:
  - 'This command cost 5 cobblestone. 4=ID 5 = AMOUNT'
  runcmd:
  - '/sample'
  cost: 0
  itemcost: 'COBBLESTONE:5'
  delaytimer: 5
'21':
  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

Re: MyCommand + plugin

Napsal: 26 lis 2013, 15:18
od zikl
Trochu sem ti to opravil nahraj to tam a dej restart serveru

Kód: Vybrat vše

# MyCommand  Commands Config File
# commandsnumber (default 20) it's number of command you want make
# Don't forget the '/' on runcmd line , example command: /myhelp
# type accept = text , runcommand , broadcast-text , runcommand-text , runcommand-broadcast-text , perm-broadcast-text , addpermission , addtimer , runconsole , runcommand-perm-broadcast-text , runcommand-random , runasoperator , iconmenu , scoreboard
# Additional type accept if you use Spoutplugin = spout-text , spout-notification.\n" +
# runcommand type example -> If command: /l and runcmd: /list,when you type /l mycommand execute /list
# runcmd support custom argument in game.($arg1,$arg2,$arg3,$arg4,$arg5,$multiargs) Example - runcmd : /time $arg1
# 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 use a custom permission node by placing "permission-node:" field in a command,you also 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.
# http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example
options:
  commandsnumber: 21
'1':
  command: /SBINFO
  type: text
  text:
  - '&b/NOVYOSTROV [nazev ostrovu] - vytvori novy ostrov'
  - '&b/OSTROV - portne te na tvuj ostrov'
  - '&b/PRIDAT [NICK] - prida tveho kamarada na tvuj ostrov'
  - '&b/ODEBRAT [NICK] - odebere tveho kamarada z ostrovu'
  - '&b/ULOZIT - ulozis tvuj domov na ostrove'
  - '&b/ZAMEK - zamce tvuj ostrov (pohyb, rozbijeni...)'
  - '&b/PRIJMOUT - prijme pozvanku od kamarada na ostrov'
  - '&b/OPUSTIT - opustis ostrov'
  - '&b/KICK [NICK] - vyhodite kamarada z ostrovu'
  - '&b/OWARP [NICK] - portnes se na kamarada na ostrovu'
  cost: 0
  delaytimer: 0
'2':
 command: /novyostrov
  type: runcommand
  text:
  - '&eByl ti vytvoren novy ustrov'
  runcmd:
  - '/island'
  - '/res select 100 100 100'
  - '/res select vert'
  - '/res create $player'
  cost: 0
  delaytimer: 5
'3':
  command: /ostrov
  type: runcommand
  text:
  - '&eByl jsi presunut na svuj ostrov'
  runcmd:
  - '/island'
  cost: 0
  delaytimer: 0
'4':
  command: /pridat
  type: runcommand
  text:
  - '&eTvuj kamarad $arg1 byl pozvan na tvuj ostrov'
  runcmd:
  - '/island invite $arg1'
  cost: 0
  delaytimer: 0
  error-message: '&c/pridat [nick]'
'5':
  command: /odebrat
  type: runcommand
  text:
  - '&eTvuj kamarad $player byl odebran z ostrovu'
  runcmd:
  - '/island kick $arg1'
  cost: 0
  delaytimer: 0
  error-message: '&c/odebrat [nick]'
'6':
  command: /prijmout
  type: runcommand
  text:
  - '&ePrijal si pozvanku na ostrov'
  runcmd:
  - '/island accept'
  cost: 0
  delaytimer: 0
'7':
  command: /opustit
  type: runcommand
  text:
  - '&eOpustil si ostrov'
  runcmd:
  - '/island leave'
  cost: 0
  delaytimer: 0
'8':
  command: /kick
  type: runcommand
  text:
  - '&eVyhodil si hrace $arg1 z ostrova'
  runcmd:
  - '/island kick $arg1'
  cost: 0
  delaytimer: 0
  error-message: '&c/kick [nick]'
'9':
  command: /skyblock
  type: runcommand
  text:
  - '&eByl jsi presunut ke SkyBlocku'
  runcmd:
  - '/warp skyblock'
  cost: 0
  delaytimer: 0
'10':
  command: /pvp
  type: runcommand
  text:
  - '&eByl jsi presunut k PvP'
  runcmd:
  - '/warp pvp'
  cost: 0
  delaytimer: 0
'11':
  command: /MiniHry
  type: runcommand
  text:
  - '&eByl jsi presunut k MiniHram'
  runcmd:
  - '/warp minihry'
  cost: 0
  delaytimer: 0
'12':
  command: /svety
  type: runcommand
  text:
  - '&eByl jsi presunut ke svetum'
  runcmd:
  - '/warp svety'
  cost: 0
  delaytimer: 0
'13':
  command: /pravidla
  type: runcommand
  text:
  - ''
  runcmd:
  - '/rules'
  cost: 0
  delaytimer: 0
'14':
  command: /mycmd-shortcut
  type: runcommand
  text:
  - '$red Text of command $black14'
  runcmd:
  - '/say $multiargs'
  cost: 0
  delaytimer: 5
'15':
  command: /mycmd-random
  type: runcommand-random
  text:
  - '$red Text of command $black15'
  runcmd:
  - '/say 1 $multiargs'
  - '/say 2 $multiargs'
  - '/say 3 $multiargs'
  cost: 0
  delaytimer: 5
'16':
  command: /iconmenu
  type: iconmenu
  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: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:/rules:Rules:&cSee the server rules;Read all!'
  cost: 0
  delaytimer: 5
'17':
  command: /mycmd-help 1
  type: text
  text:
  - '$brightgreen ---- MyCommand Help Page One ---'
  - '$gold Test Help 1'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'18':
  command: /mycmd-help
  type: text
  text:
  - '$brightgreen ---- MyCommand Help Main Page---'
  - '$gold Test Help '
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'19':
  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
'20':
  command: /itemcostexample
  type: text
  text:
  - 'This command cost 5 cobblestone. 4=ID 5 = AMOUNT'
  runcmd:
  - '/sample'
  cost: 0
  itemcost: 'COBBLESTONE:5'
  delaytimer: 5
'21':
  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

Re: MyCommand + plugin

Napsal: 26 lis 2013, 15:51
od Batllefury
ted uz nejde ani to /SBINFO :D:D