MyCommand

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:

Re: MyCommand

#11 Příspěvekod Misso » 06 dub 2016, 16:39

skús to takto:

Kód: Vybrat vše

'1':
  command: /vip
  type: RUN_CONSOLE
  runcmd:
  - /pex group vip user add $player 
  - /say Hrac $player si prave aktivoval VIP za 500000 Money.   
  error-message: "Potrebuješ %s $ pre zakúpenie vip!" 
  cost: 500000
  delaytimer: 5
  permission-required: true
  permission-node: mycommand.vip
  permission-error: '&4Nemas prava!'


a pridaj permisse: mycommand.vip

Uživatelský avatar
Ju3eN
Příspěvky: 539
Věk: 23
Registrován: 04 kvě 2015, 06:44
Reputation: 1
Bydliště: 192.168.0.1

Re: MyCommand

#12 Příspěvekod Ju3eN » 06 dub 2016, 16:46

Nefunguje ani to

-- 06 dub 2016, 15:51 --

Teraz to vyzerá takto:

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
# 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.
# Custom error-message for invalid args ,put "error-message:" line in a command.
# http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example
options:
  commandsnumber: 20
'1':
  command: /vip
  type: RUN_COMMAND
  runcmd:
  - pex group vip user add $player   
  error-message: "Potrebuješ %s $ pre zakúpenie vip!" 
  cost: 500000
  delaytimer: 5
  permission-required: true
  permission-node: mycommand.vip
  permission-error: '&4Nemas prava!'

Port2
Příspěvky: 502
Registrován: 08 pro 2015, 22:52
Reputation: 18
Bydliště: Pod mostem :/

Re: MyCommand

#13 Příspěvekod Port2 » 06 dub 2016, 18:52

Ju3eN píše:napíšeš mi jak to má presne tam byť? ako viem z ChestCommands zaobchádzať ale vždy mi vypíše že nemá permissiu na to. Aký mam dať príkaz do COMMANDS: '...


Kód: Vybrat vše

VIPko:
  COMMAND: 'console: pex user %player% group set vip'
  NAME: '&9&lVIP'
  LORE:
    - ''
  ID: 160
  PRICE: #Cena
  POSITION-X: 2
  POSITION-Y: 2

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: MyCommand

#14 Příspěvekod Misso » 06 dub 2016, 19:18

mne to takto funguje...

Kód: Vybrat vše

'1':
  command: /testujem
  type: RUN_CONSOLE
  runcmd:
  - /pex group vip user add $player 
  - /say Hrac $player si prave aktivoval VIP za 500000 Money.     
  error-message: "Potrebuješ %s $ pre zakúpenie vip!" 
  cost: 500000
  delaytimer: 5
  permission-required: true
  permission-node: mycommand.vip
  permission-error: '&4Nemas prava!'

Uživatelský avatar
Ju3eN
Příspěvky: 539
Věk: 23
Registrován: 04 kvě 2015, 06:44
Reputation: 1
Bydliště: 192.168.0.1

Re: MyCommand

#15 Příspěvekod Ju3eN » 06 dub 2016, 19:39

vyriešil som to dal som runconsole miesto RUN_CONSOLE


Zpět na „Minecraft, Tekkit“

Kdo je online

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