Sol Reklam
Sağ Reklam

Tanıtım MyCommand Komut Oluşturma Plugini | Detaylı Anlatımı

Durum
Mesaj gönderimine kapalı.

Hai

<3
Site Sahibi
Emektar

Discord:

yusufkemal#5290

Katılım
2 Ocak 2014
Mesajlar
409
Elmaslar
1.138
Puanlar
15.660
Yaş
28
Yer
Adana
Minecraft
ImHai
How to make use mycommand plugin download minecraft server mc-tr.com
Merhaba arkadaşlar çoğumuz minecraftda komut oluşturmak isteriz mesela /time set 1 yerine /sabah yazmak gibi
yada /spawn yerine /lobi gibi.
yada /say 5 Dakika sonra maden eventi başlıyor herkes /warp event yazsın yerine /madenevent gibi. komutlar kullanabilir yada yabancı komutları Türkçeleştirebiliriz.

MyCommand Plugininin tüm sürümlerine buradan ulaşabilirsiniz.
http://dev.bukkit.org/bukkit-plugins/mycommand/files/

Pluginden birazcık bahsetmek gerekirse
komut ayarlamalarımızı command.yml 'den yapıyoruz.
command.yml 'de mantığını anlamamız için kendiliğinden birsürü kodlar girilmiş.
Kod:
#-----------------------------------------------------------------------------------------------------------#

#                              MyCommand Commands config file (last update v4.1.1)                            #
#                                                                                                            #
#  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 , RUNCOMMAND , BROADCAST-TEXT , RUNCOMMAND-TEXT , RUNCOMMAND-BROADCAST-TEXT            #
#        ADDPERMISSION , ADDTIMER , RUNCONSOLE , RUNCOMMAND-PERM-BROADCAST-TEXT , RUNCOMMAND-RANDOM            #
#       RUNASOPERATOR , ICONMENU , SCOREBOARD , BUNGEE_TP , SPOUT-TEXT , SPOUT-NOTIFICATION                    #
#                                                                                                            #
#    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.                                            #
#-----------------------------------------------------------------------------------------------------------#
'1':
  command: /gm
  type: ALIAS
  alias: /gamemode
'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.'
  - '$gold $ponline'
  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: /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:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'
  cost: 0
  delaytimer: 5
'17':
  command: /iconmenu2
  type: ICONMENU
  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
'18':
  command: /mycmd-help 1
  type: TEXT
  text:
  - '$brightgreen ---- MyCommand Help Page One ---'
  - '$gold Test Help 1'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'19':
  command: /mycmd-help
  type: TEXT
  text:
  - '$brightgreen ---- MyCommand Help Main Page---'
  - '$gold Test Help '
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'20':
  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
'21':
  command: /itemcostexample
  type: TEXT
  text:
  - 'This command cost 5 cobblestone. 4=ID 5 = AMOUNT'
  runcmd:
  - '/sample'
  cost: 0
  itemcost: 'COBBLESTONE:5'
  delaytimer: 5
'22':
  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
'23':
  command: /bungeetest
  type: BUNGEE_TP
  server_name: hub

/warp Lobiye gitmek yerine direk /lobi yapıyoruz
Kod:
'2':

command: /lobi
type: runcommand
runcmd:
- '/warp lobi'
cost: 0
delaytimer: 5

Mesela sabah yapmak istiyoruz
Kod:
'3':

  command: /sabah
  type: RUNCOMMAND
  runcmd:
  - '/time set 1'
  cost: 0
  delaytimer: 5

Yada oyuncuların bir komutla event zamanlarını öğrenmeleri sağlıyoruz....
Kod:
'4':      

  command: /eventzamanlari
  type: text
  text:
  - '&6 Merhaba &a$player!'
  - '&6 Event zamanlari asagidaki gibidir.;'
  - '&4 -Maden Eventi Hergun 12.00 ve 20.00'
  - '&4 -Rain event hergün 18.00'
  - '&4 -Krallik savasi eventi cumartesi 15.00da'

Arkadaşlar eventzamanlari diye komut oluşturduk bunun kullanımını oyunculara açmak için oyunculara permission (Plugins/groupmanager/worlds/world/users.yml) vermemiz gerekmektedir

- mycommand.cmd.4
'' 4 = 4 numaralı komuda verdiğimiz yetkiyi belirtmektedir. /sabah komudunu oyunculara açmak isteseydik - mycommand.cmd.3 yazacaktık.''

Bunun gibi kodları nasıl kullanacağınıza dağir herşeyin örneği command.yml 'de mevcut artık herşey sizin yaratıcılığınıza kalmış :)
 
Son düzenleyen: Moderatör:

Okan Cem AYDÜZ

Odunlara Vur Vur Vur!
Katılım
11 Ocak 2014
Mesajlar
26
Elmaslar
23
Puanlar
0
Yaş
24
tek kelimeyle harika anlatim . tesekkurler

GT-S7562 cihazımdan Tapatalk kullanılarak gönderildi
 

TheOyunBozan

Somon Balığı Selam Vermeye Geldi
Katılım
26 Ocak 2014
Mesajlar
19
Elmaslar
7
Puanlar
0
Yaş
34
Yer
Plugin Ülkesi
How to make use mycommand plugin download minecraft server mc-tr.com
Merhaba arkadaşlar çoğumuz minecraftda komut oluşturmak isteriz mesela /time set 1 yerine /sabah yazmak gibi
yada /spawn yerine /lobi gibi.
yada /say 5 Dakika sonra maden eventi başlıyor herkes /warp event yazsın yerine /madenevent gibi. komutlar kullanabilir yada yabancı komutları Türkçeleştirebiliriz.

MyCommand Plugininin tüm sürümlerine buradan ulaşabilirsiniz.
http://dev.bukkit.org/bukkit-plugins/mycommand/files/


Pluginden birazcık bahsetmek gerekirse
komut ayarlamalarımızı command.yml 'den yapıyoruz.
command.yml 'de mantığını anlamamız için kendiliğinden birsürü kodlar girilmiş.
Kod:
#-----------------------------------------------------------------------------------------------------------#

#                              MyCommand Commands config file (last update v4.1.1)                            #
#                                                                                                            #
#  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 , RUNCOMMAND , BROADCAST-TEXT , RUNCOMMAND-TEXT , RUNCOMMAND-BROADCAST-TEXT            #
#        ADDPERMISSION , ADDTIMER , RUNCONSOLE , RUNCOMMAND-PERM-BROADCAST-TEXT , RUNCOMMAND-RANDOM            #
#       RUNASOPERATOR , ICONMENU , SCOREBOARD , BUNGEE_TP , SPOUT-TEXT , SPOUT-NOTIFICATION                    #
#                                                                                                            #
#    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.                                            #
#-----------------------------------------------------------------------------------------------------------#
'1':
  command: /gm
  type: ALIAS
  alias: /gamemode
'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.'
  - '$gold $ponline'
  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: /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:%openiconmenu%/iconmenu2:Next Page:&cChange IconMenu Page;&a--------->'
  cost: 0
  delaytimer: 5
'17':
  command: /iconmenu2
  type: ICONMENU
  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
'18':
  command: /mycmd-help 1
  type: TEXT
  text:
  - '$brightgreen ---- MyCommand Help Page One ---'
  - '$gold Test Help 1'
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'19':
  command: /mycmd-help
  type: TEXT
  text:
  - '$brightgreen ---- MyCommand Help Main Page---'
  - '$gold Test Help '
  runcmd:
  - '/sample'
  cost: 0
  delaytimer: 5
'20':
  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
'21':
  command: /itemcostexample
  type: TEXT
  text:
  - 'This command cost 5 cobblestone. 4=ID 5 = AMOUNT'
  runcmd:
  - '/sample'
  cost: 0
  itemcost: 'COBBLESTONE:5'
  delaytimer: 5
'22':
  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
'23':
  command: /bungeetest
  type: BUNGEE_TP
  server_name: hub

/warp Lobiye gitmek yerine direk /lobi yapıyoruz
Kod:
'2':

command: /lobi
type: runcommand
runcmd:
- '/warp lobi'
cost: 0
delaytimer: 5

Mesela sabah yapmak istiyoruz
Kod:
'3':

  command: /sabah
  type: RUNCOMMAND
  runcmd:
  - '/time set 1'
  cost: 0
  delaytimer: 5

Yada oyuncuların bir komutla event zamanlarını öğrenmeleri sağlıyoruz....
Kod:
'4':      

  command: /eventzamanlari
  type: text
  text:
  - '&6 Merhaba &a$player!'
  - '&6 Event zamanlari asagidaki gibidir.;'
  - '&4 -Maden Eventi Hergun 12.00 ve 20.00'
  - '&4 -Rain event hergün 18.00'
  - '&4 -Krallik savasi eventi cumartesi 15.00da'

Arkadaşlar eventzamanlari diye komut oluşturduk bunun kullanımını oyunculara açmak için oyunculara permission (Plugins/groupmanager/worlds/world/users.yml) vermemiz gerekmektedir

- mycommand.cmd.4
'' 4 = 4 numaralı komuda verdiğimiz yetkiyi belirtmektedir. /sabah komudunu oyunculara açmak isteseydik - mycommand.cmd.3 yazacaktık.''

Bunun gibi kodları nasıl kullanacağınıza dağir herşeyin örneği command.yml 'de mevcut artık herşey sizin yaratıcılığınıza kalmış :)

Sağ olun bu plugin bana lazımdı :)
 

ardaxsi

Birisi mi Spawnlandı?
Katılım
22 Mart 2014
Mesajlar
5
Elmaslar
0
Puanlar
0
Yaş
33

saragthus

Birisi mi Spawnlandı?
Katılım
2 Nisan 2014
Mesajlar
1
Elmaslar
0
Puanlar
0
Yaş
37

asdasd0000000000

Birisi mi Spawnlandı?
Katılım
20 Nisan 2014
Mesajlar
1
Elmaslar
0
Puanlar
0
Yaş
23

anil011

Birisi mi Spawnlandı?
Katılım
29 Nisan 2014
Mesajlar
1
Elmaslar
0
Puanlar
0
Yaş
31

fgh988

Birisi mi Spawnlandı?
Katılım
30 Nisan 2014
Mesajlar
2
Elmaslar
0
Puanlar
0
Yaş
23

demre09

Birisi mi Spawnlandı?
Katılım
30 Nisan 2014
Mesajlar
1
Elmaslar
0
Puanlar
0
Yaş
39

can021

Birisi mi Spawnlandı?
Katılım
29 Mart 2014
Mesajlar
2
Elmaslar
0
Puanlar
0
Yaş
33

asdadsa

Birisi mi Spawnlandı?
Katılım
8 Mayıs 2014
Mesajlar
4
Elmaslar
0
Puanlar
0
Yaş
33

enderdragon1306

Birisi mi Spawnlandı?
Katılım
11 Mayıs 2014
Mesajlar
3
Elmaslar
0
Puanlar
0
Yaş
31

Batuhan1905

Birisi mi Spawnlandı?
Katılım
13 Mayıs 2014
Mesajlar
1
Elmaslar
0
Puanlar
0
Yaş
27

mazlum2143

Koydum Çalışma Masasını

Discord:

elfen#1953

Katılım
25 Nisan 2014
Mesajlar
60
Elmaslar
32
Puanlar
0
Yer
Dünya
Helal olsun nedim artık
 
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!
Yukarı