Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if file "plugins/Yetkililer/" doesn't exists:
- create folder "plugins/Yetkililer"
- if file "plugins/Yetkililer/config.yml" doesn't exists:
- create file "plugins/Yetkililer/config.yml"
- set "prefix" to "&8[&cMC&6-&4TR&8]" in yaml file "plugins/Yetkililer/config.yml"
- set "yapimci" to "SoloTurk" in yaml file "plugins/Yetkililer/config.yml"
- set "yetkililer" to "SoloTurk,Steve,MCTR,Türk" in yaml file "plugins/Yetkililer/config.yml"
- set "update" to "true" in yaml file "plugins/Yetkililer/config.yml"
- set {prefix} to colored value "prefix" get of "plugins/Yetkililer/config.yml"
- set {yapimci} to value "yapimci" get of "plugins/Yetkililer/config.yml"
- set {update} to value "update" get of "plugins/Yetkililer/config.yml"
- set {_bilgiler} to value "yetkililer" get of "plugins/Yetkililer/config.yml"
- set {yetkililer::*} to split {_bilgiler} at ","
- on load:
- if {update} is "true":
- if text from "http://pastebin.com/raw/mjbiV3V6" is not "1.0 - %{yapimci}%":
- send "%{prefix}% Yetkililer Skriptine Güncelleme Mevcut Hemen İndiriyoruz.." to console
- download from "http://pastebin.com/raw/BJyjEqQi" to "plugins/Skript/scripts/CS.sk"
- loop 10 times:
- send "&bGüncelleme Yüklendi &6plugins/plugins/Skript/scripts &bYolunu Takip Edin Ve Yeni Dosyayı Aktif Edin" to console
- send "%{prefix}% Basariyla Guncellendi !" to console
- else:
- send "%{prefix}% UPDATE Kapalı." to console
- command /update [<text>]:
- permission: update.perm
- trigger:
- arg 1 is not set:
- send "%{prefix}% &c&l/update false &f&lveya &c&l/update true !"
- arg 1 is "ac" or "true":
- if {update} is "false" or "kapalı":
- set "update" to "true" in yaml file "plugins/Yetkililer/config.yml"
- set {update} to "true"
- send "%{prefix}% Update basariyla Acildi !"
- else:
- send "&cUyari &f- &eZaten Update / Guncelleme Acik !"
- arg 1 is "false" or "kapat":
- if {update} is "true" or "acık":
- set "update" to "false" in yaml file "plugins/Yetkililer/config.yml"
- set {update} to "false"
- send "%{prefix}% Update basariyla kapatildi !"
- else:
- send "&cUyari &f- &eZaten Update / Guncelleme Kapali !"
- command /yetkililer:
- trigger:
- open chest with 1 rows named "&c&lYetkililer" to player
- set {_y} to 0
- loop {yetkililer::*}:
- if {now.%loop-value%} is not set:
- set {now.%loop-value%} to "&4-"
- if {durum.%loop-value%} is not set:
- set {durum.%loop-value%} to "&cAktif Degil"
- format slot {_y} of player with nether star named "%loop-value%" with lore "&6Durum : %{durum.%loop-value%}%||&6Son Görülme : %{now.%loop-value%}%" to close
- add 1 to {_y}
- on join:
- loop {yetkililer::*}:
- if loop-value is "%player%":
- set {durum.%player%} to "&aAktif"
- set {now.%player%} to "%now%"
- on disconnect:
- loop {yetkililer::*}:
- if loop-value is "%player%":
- execute console command "det %player%"
- command /det <text>:
- permission : gizlen.admin
- trigger:
- set {durum.%arg 1%} to "&cAktif Degil"
- set {now.%arg 1%} to "%now%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement