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ş.
/warp Lobiye gitmek yerine direk /lobi yapıyoruz
Mesela sabah yapmak istiyoruz
Yada oyuncuların bir komutla event zamanlarını öğrenmeleri sağlıyoruz....
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ış :)
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: