Son kullanma tarihi geçmiş, bayatlamış bir tarayıcı kullanıyorsanız. Mercedes kullanmak yerine tosbaya binmek gibi... Websiteleri düzgün görüntüleyemiyorsanız eh, bi zahmet tarayıcınızı güncelleyiniz. Modern Web standartlarını karşılayan bir tarayıcı alternatifine göz atın.
# EssentialsX kit configuration.
# If you don't have any kits defined in this file, the plugin will try to copy them from the config.yml
#
# Note: All items MUST be followed by a quantity!
# All kit names should be lower case, and will be treated as lower in permissions/costs.
# Syntax: - name[:durability] amount [enchantment:level]... [itemmeta:value]...
# For Item Meta information visit http://wiki.ess3.net/wiki/Item_Meta
# 'delay' refers to the cooldown between how often you can use each kit, measured in seconds.
# Set delay to -1 for a one time kit.
# For more information, visit http://wiki.ess3.net/wiki/Kits
kits:
Ninjakit:
delay: 30
items:
- diamondsword 1 damage_all:2
- goldenapple 5
- fishingrod 1 durability:1
- leatherhelmet 1 protection_environmental:1 color:1644825
- leatherchestplate 1 protection_environmental:2 color:1644825
- leatherleggings 1 protection_environmental:1 color:1644825
- leatherboots 1 protection_environmental:1 color:1644825
- apple 1 name:&eHIZ
- fishingrod 1 durability:1
normal:
delay: 30
items:
- ironsword 1 damage_all:2
- goldenapple 2
- fishingrod 1
- flintandsteel:46 1
- ironhelmet 1 protection_environmental:1
- ironchestplate 1 protection_environmental:1
- ironleggings 1 protection_environmental:1
- ironboots 1 protection_environmental:1
dikenadam:
delay: 30
items:
- stonesword 1 damage_all:2
- fishingrod 1
- goldenapple 3
- splashregenerationpotion:1 1 splash:true effect:regeneration power:0 duration:33
- splashregenerationpotion:1 1 splash:true effect:regeneration power:0 duration:33
- ironhelmet 1 protection_environmental:2 thorns:2
- diamondchestplate 1 protection_environmental:2 thorns:2
- ironleggings 1 protection_environmental:2 thorns:2
- ironboots 1 protection_environmental:2 thorns:2
on load:
load yaml "plugins/Essentials/kits.yml" as "Kits"
command /kit-admin [<text=help>] [<text>] [<integer>]:
permission: kit.admin
trigger:
if arg-1 is "help":
send "/kit-admin para <kit adı> <para>"
if arg-1 is "para":
if (yaml value "kits.%arg-2%" from "Kits") is set:
if arg-3 is set:
set yaml value "kits.%arg-2%.price" from "Kits" to arg-3
save yaml "Kits"
send "%arg-2% kiti için %arg-3% miktarda para ayarlandı."
function temizle():
loop yaml nodes with keys "kits" from "Kits":
loop {kitSistemi::kitalanlar::%loop-value%::*}:
if {kitSistemi::cooldown::%loop-value-1%::%loop-value-2%} is less than now:
delete {kitSistemi::cooldown::%loop-value-1%::%loop-value-2%}
delete {kitSistemi::kitalanlar::%loop-value-1%::%loop-value-2%}
function kitAl(p: player,kit: text):
set {_price} to yaml value "kits.%{_kit}%.price" from "Kits"
remove {_price} from {_p}'s account
set {_items::*} to yaml list "kits.%{_kit}%.items" from "Kits"
set {_delay} to yaml value "kits.%{_kit}%.delay" from "Kits"
loop {_items::*}:
set {_item::*} to loop-value split at "name:"
set {_itemtype} to first element of {_item::*}
set {_lore::*} to loop-value split at "lore:"
set {_lores::*} to last element of {_lore::*}
set {_itemname} to last element of {_item::*}
replace "lore:%{_lores::*}%" with "" in {_itemname}
give {_itemtype} parsed as item type named "%colored {_itemname}%" with lore "%colored {_lores::*}%" to {_p}
set {kitSistemi::cooldown::%{_kit}%::%{_p}%} to ("%{_delay}% seconds") parsed as timespan later
set {kitSistemi::kitalanlar::%{_kit}%::%{_p}%} to {_p}
every 30 minutes:
temizle()
command /kit <text>:
trigger:
if (yaml value "kits.%arg-1%" from "Kits") is set:
set {_price} to yaml value "kits.%arg-1%.price" from "Kits"
if player's money >= {_price}:
if {kitSistemi::cooldown::%arg-1%::%player%} is not set:
kitAl(player,arg-1)
send "%arg-1% kitini aldın."
else if {kitSistemi::cooldown::%arg-1%::%player%} is less than now:
kitAl(player,arg-1)
send "%arg-1% kitini aldın."
else:
send "kalan süre %difference between now and {kitSistemi::cooldown::%arg-1%::%player%}%"
else:
send "yetersiz para"
Essentialsın üzerine yapmak mümkün değil,sistemi skript ile baştan yapmalısınız.
Diğer türlü oluyorsa gerek yok bu skripte.
Essentialsın kits.yml dosyasını yükler,/kit-admin para <kit adı> <para> komutu ile parayı ayarlarsın.
/kit <kit adı> komutu ile de kiti alırsın,delayı yml dosyasındaki saniye olur.
Ancak items: kısmını şu şekilde yapman gerekiyor;