Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem]Plugin MyCommand


Rekomendowane odpowiedzi

Opublikowano

Witam mam problem z plugine my command otoz ogladalem rozne poradniki i robie wszystko tak jak jest napisane i to nie dziala!?

ustawilem sb komende /potki

ze ma dawac graczowi diax set prot 4 mieczyk sharpness5 fireaspect 2 i tam potki i nie dziala 2h probowalem tak i nic moze mi ktos to zrobic albo wyjasnic jak to zrobic bede wdzieczny , z gory dzieki :D

1377531174-U173186.png

Opublikowano
# 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.


options:

commandsnumber: 20

'1':

command: /mycmd-sampletext

type: text

text:

- '$red Hello $darkgreen$player!'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

'2':

command: /mycmd-dice

type: text

text:

- '$red You got $darkgreen$rnd6 !'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

permission-node: customperm.custom

'3':

command: /mycmd-runcommand

type: runcommand

text:

- '$red Text of command $black3'

runcmd:

- '/list'

cost: 0

delaytimer: 5

'4':

command: /mycmd-args

type: runcommand

text:

- '$red Text of command $black4'

runcmd:

- '/time $arg1 $arg2'

cost: 0

delaytimer: 5

error-message: 'Type /time day world'

'5':

command: /mycmd-runcmdtimer

type: runcommand

text:

- '$red Text of command $black5'

runcmd:

- '$delay$/say 3..'

- '$delay$/say 2..'

- '$delay$/say 1..'

cost: 0

delaytimer: 1

'6':

command: /mycmd-broadcast

type: broadcast-text

text:

- '$blue MyCommand Broadcast Test'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

'7':

command: /mycmd-spoutsample

type: spout-text

text:

- '$darkgreen -Spout Text-'

- '$red MyCommand!'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

'8':

command: /mycmd-runconsole

type: runconsole

text:

- '$red Text of command $black8'

runcmd:

- /say This /say it's performed by console.

cost: 0

delaytimer: 5

'9':

command: /mycmd-addtimer

type: text

text:

- '$gold Put your command over /mycmd-addtimer'

- '$gold And change type : from text to addtimer'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

'10':

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

'11':

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

'12':

command: /mycmd-online

type: text

text:

- '$red There are $online players online.'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

'13':

command: /mycmd-clearchat

type: broadcast-text

text:

- ''

- ''

- ''

- ''

- ''

- ''

- ''

- ''

- ''

- ''

runcmd:

- '/sample'

cost: 0

delaytimer: 5

'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: /mycmd-help 2

type: text

text:

- '$brightgreen ---- MyCommand Help Page Two ---'

- '$gold Test Help 2'

runcmd:

- '/sample'

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: /mycmdsample20

type: text

text:

- '$red Text of command $black20'

runcmd:

- '/sample'

cost: 0

delaytimer: 5

1377531174-U173186.png

Opublikowano

Wogóle nic nie ustawiłeś, ale podmień pierwsza komende na to:

 

'1':
command: /potki
type: runcommand
text:
- '$red Text of command $black3'
runcmd:
- '/kit potki'
cost: 0
delaytimer: 5
Następnie wchodzisz do essentials i ustawiasz kit potki z potrzebnymi itemami
Uprawnienia jakie potrzebuje osoba która chce używać komendy /potki
- essentials.kit
- essentials.kit.potki
- mycommand.cmd.1
Jeśli nie umiesz ustawić dobrze kitów tu masz dokumentacje Essentials na temat kit (Po Angielsku)
W ostateczności jeśli już naprawdę sobie nie poradzisz to w ostateczności mogę napisać Ci ten kit

Zapraszam na serwer Minecraft



▶▶▶ IP: DyrtCraft.PL ◀◀◀


Opublikowano

TO jest to co sie generuje po wgraniu pluginu ja to endytowalem full razy wpisywalem najprostrza komende jak w poradniku ,.pomoc zeby wpisywalo np help

szukalem na mpc robilem jak pisze i nie dziala mi

1377531174-U173186.png

Opublikowano

tak zmieniam ale dzieki podpowiedziales mi 2 zecz bo nie skapnolem sie ze mg zrobic kit i jak sie wejdzie w nadajnik comandblocka to wpisze kit ktory zrobie dzieki:d

1377531174-U173186.png

Opublikowano

Wklej na koniec:

'21':
  command: /potki
  type: runcommand
  runcmd:
  - '/kit potki'
  cost: 0
  delaytimer: 5

I zmien: commandsnumber: 20

Na commandsnumber: 21

Opublikowano

Cześć mam podobny problem lecz mi nie działają komendy o rodzaju text:

 

# 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.
options:
commandsnumber: 4
'1':
command: /drop
type: text
text:
- '&1&n&lNa &6&n&l serwerze &7&n&ljest &3&n&lwgrany &7&n&lplugin &a&n&lktory &8&n&lumowozliwia &c&n&lwypadanie &b&n&litemkow &e&n&lz &d&n&lbloków &4&n&loraz &0&n&lMobow!'
- '&f&n&lzobaczy &1&n&lspis &8&n&ldropow &0&n&lponizej
- '&4/drop-stone'
- '&1/drop-wood'
- '&6/drop-nether'
- '&b/drop-mob'
- '&e/drop-inne
'2':
command: /drop-stone
type: test
test:
- '&b&lDiamond &d&lma &1&l0,5% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
- '&7&lIron &d&lma &1&l2,5% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
- '&6&lGold &d&lma &1&l1,5% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
- '&2&lEmerald &d&lma &1&l0,5% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
- '&4&lRedStone &d&lma &1&l4,0% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
- '&1&lLapizLazuli &d&lma &1&l4,0% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
- '&0&lCoal &d&lma &1&l5,0% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lstone&4&l!'
'3':
command:/drop-wood
type: text
text:
- '&9&lBiblioteczka &d&lma &1&l0,2% &9&lszans &7&lna &4&lwypadniecie &9&lz c&ldrewna&4&l!'
- '&5&lBook &d&lma &1&l0,5% &9&lszans &7&lna &4&lwypadniecie &9&lz c&ldrewna&4&l!'
- '&6&lSand &d&lma &1&l1,0% &9&lszans &7&lna &4&lwypadniecie &9&lz c&ldrewna&4&l!'
'4':
comand:/drop-nether
type: text
test:
- '&6&lGlowsStone &d&lma &1&l1,0% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lnetherracka &6&loraz &9&lNetherBricka&4&l!'
- '&1&lQuartz &d&lma &1&l1,0% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lnetherracka &6&loraz &9&lNetherBricka&4&l!'
- 'Brodawka &d&lma &1&l0,1% &9&lszans &7&lna &4&lwypadniecie &9&lz c&lPiasku &6&lDusz&4&l!'
Wszystko robiłem poprawnie. Lecz po wbiciu na serwer. komendy nie działają :/ czy jest mycommand pod 1.5.2 bo możliwe że to wina wersji. Bo mam najnowsze który jest w panelu craftserve.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...