minecrafttr aramıza katil!
batihost minecraft server kirala
Satın Al
MinecraftTR Reklam Alanı
Satın Al
Satın Al
Satın Al

5 Dakika Fly

Seçkin madenci.
Katılım
16 Ağustos 2019
Mesajlar
86
Tepki puanı
11
Puanları
1,215
Discord
Eldrithc_
Öncelikle Merhaba...
Sunucumda 5 Dakika Fly Satmak İstiyorum
Bunu Nasıl Yapabilirim ?
Plugin/Skript bilemedim o yüzdem plugine yazdım...​
 
Kaşif
Katılım
17 Ekim 2019
Mesajlar
179
Tepki puanı
90
Puanları
1,305
Discord
DarkSad#7914
Kod:
options:
    p: &6FLY &8»
    fiyat: 999999

command /sürelifly:
    trigger:
        if {fly::%player%} is not set:
            if player's balance is greater than or equal to {@fiyat}:
                remove {@fiyat} from player's balance
                send player title "&bSatın alma başarılı" with subtitle "&fFLY yetkiniz verildi" for 4 seconds
                play "LEVEL_UP" to player
                execute console command "manuaddp %player% essentials.fly"
                set {fly::%player%} to true
                set {fly::%player%::time} to now
                set player's fly mode to true
                wait 30 minute
                execute console command "manudelp %player% essentials.fly"
                set player's fly mode to false
                delete {fly::%player%}
                delete {fly::%player%::time}
                message "{@p} &7Süreniz doldu, üzgünüm."
                set player's fly mode to false
            else:
                message "{@p} &7Satın almak için &a{@fiyat}TL &7paraya ihtiyacınız var."
        else:
            message "{@p} &7Zaten bu özelliğiniz var."     

on join:
    if {fly::%player%::time} is set:
        if difference between {fly::%player%::time} and now is greater than 30 minute:
            execute console command "manudelp %player% essentials.fly"
            set player's fly mode to false
            delete {fly::%player%}
            delete {fly::%player%::time}
            wait 3 seconds
            message "{@p} &7Süreniz doldu, üzgünüm."
  
command /flysürem:
    trigger:
        if {fly::%player%} is set:
            set {_sure} to difference between {fly::%player%::time} and now
            set {_sure} to "%{_sure}%" parsed as a text
            replace all "minutes" with "dakika" in {_sure}
            replace all "minute" with "dakika" in {_sure}
            replace all "seconds" with "saniye" in {_sure}
            replace all "second" with "saniye" in {_sure}
            replace all " and " with " " in {_sure} or {_zaman}
            message "{@p} &7Kalan süreniz: &f%{_sure}%&8/&f30 dakika"
        else:
            message "{@p} &7Süreli FLY özelliğiniz aktif değil."
          
command /flysil [<player>]:
    permission: fly.admin
    permission message: &7Bunu yapmak için yetkiniz yok!
    trigger:
        if arg 1 is set:
            if {fly::%arg 1%} is set:
                set arg 1's fly mode to false
                delete {fly::%arg 1%}
                delete {fly::%arg 1%::time}
                wait 3 seconds
                send "{@p} &7Süreli FLY yetkiniz silindi!" to arg 1
                message "{@p} &7Oyuncunun FLY'ı başarıyla silindi."
            else:
                message "{@p} &7Bu oyuncunun zaten süreli FLY yetkisi yok."
        else:
            message "{@p} &7Kullanım: &e/flysil <oyuncu>"
 
Seçkin madenci.
Katılım
16 Ağustos 2019
Mesajlar
86
Tepki puanı
11
Puanları
1,215
Discord
Eldrithc_
Kod:
options:
    p: &6FLY &8»
    fiyat: 999999

command /sürelifly:
    trigger:
        if {fly::%player%} is not set:
            if player's balance is greater than or equal to {@fiyat}:
                remove {@fiyat} from player's balance
                send player title "&bSatın alma başarılı" with subtitle "&fFLY yetkiniz verildi" for 4 seconds
                play "LEVEL_UP" to player
                execute console command "manuaddp %player% essentials.fly"
                set {fly::%player%} to true
                set {fly::%player%::time} to now
                set player's fly mode to true
                wait 30 minute
                execute console command "manudelp %player% essentials.fly"
                set player's fly mode to false
                delete {fly::%player%}
                delete {fly::%player%::time}
                message "{@p} &7Süreniz doldu, üzgünüm."
                set player's fly mode to false
            else:
                message "{@p} &7Satın almak için &a{@fiyat}TL &7paraya ihtiyacınız var."
        else:
            message "{@p} &7Zaten bu özelliğiniz var."    

on join:
    if {fly::%player%::time} is set:
        if difference between {fly::%player%::time} and now is greater than 30 minute:
            execute console command "manudelp %player% essentials.fly"
            set player's fly mode to false
            delete {fly::%player%}
            delete {fly::%player%::time}
            wait 3 seconds
            message "{@p} &7Süreniz doldu, üzgünüm."
 
command /flysürem:
    trigger:
        if {fly::%player%} is set:
            set {_sure} to difference between {fly::%player%::time} and now
            set {_sure} to "%{_sure}%" parsed as a text
            replace all "minutes" with "dakika" in {_sure}
            replace all "minute" with "dakika" in {_sure}
            replace all "seconds" with "saniye" in {_sure}
            replace all "second" with "saniye" in {_sure}
            replace all " and " with " " in {_sure} or {_zaman}
            message "{@p} &7Kalan süreniz: &f%{_sure}%&8/&f30 dakika"
        else:
            message "{@p} &7Süreli FLY özelliğiniz aktif değil."
         
command /flysil [<player>]:
    permission: fly.admin
    permission message: &7Bunu yapmak için yetkiniz yok!
    trigger:
        if arg 1 is set:
            if {fly::%arg 1%} is set:
                set arg 1's fly mode to false
                delete {fly::%arg 1%}
                delete {fly::%arg 1%::time}
                wait 3 seconds
                send "{@p} &7Süreli FLY yetkiniz silindi!" to arg 1
                message "{@p} &7Oyuncunun FLY'ı başarıyla silindi."
            else:
                message "{@p} &7Bu oyuncunun zaten süreli FLY yetkisi yok."
        else:
            message "{@p} &7Kullanım: &e/flysil <oyuncu>"
Teşekkürler
 
Seçkin madenci.
Katılım
16 Ağustos 2019
Mesajlar
86
Tepki puanı
11
Puanları
1,215
Discord
Eldrithc_
Kod:
options:
    p: &6FLY &8»
    fiyat: 999999

command /sürelifly:
    trigger:
        if {fly::%player%} is not set:
            if player's balance is greater than or equal to {@fiyat}:
                remove {@fiyat} from player's balance
                send player title "&bSatın alma başarılı" with subtitle "&fFLY yetkiniz verildi" for 4 seconds
                play "LEVEL_UP" to player
                execute console command "manuaddp %player% essentials.fly"
                set {fly::%player%} to true
                set {fly::%player%::time} to now
                set player's fly mode to true
                wait 30 minute
                execute console command "manudelp %player% essentials.fly"
                set player's fly mode to false
                delete {fly::%player%}
                delete {fly::%player%::time}
                message "{@p} &7Süreniz doldu, üzgünüm."
                set player's fly mode to false
            else:
                message "{@p} &7Satın almak için &a{@fiyat}TL &7paraya ihtiyacınız var."
        else:
            message "{@p} &7Zaten bu özelliğiniz var."    

on join:
    if {fly::%player%::time} is set:
        if difference between {fly::%player%::time} and now is greater than 30 minute:
            execute console command "manudelp %player% essentials.fly"
            set player's fly mode to false
            delete {fly::%player%}
            delete {fly::%player%::time}
            wait 3 seconds
            message "{@p} &7Süreniz doldu, üzgünüm."
 
command /flysürem:
    trigger:
        if {fly::%player%} is set:
            set {_sure} to difference between {fly::%player%::time} and now
            set {_sure} to "%{_sure}%" parsed as a text
            replace all "minutes" with "dakika" in {_sure}
            replace all "minute" with "dakika" in {_sure}
            replace all "seconds" with "saniye" in {_sure}
            replace all "second" with "saniye" in {_sure}
            replace all " and " with " " in {_sure} or {_zaman}
            message "{@p} &7Kalan süreniz: &f%{_sure}%&8/&f30 dakika"
        else:
            message "{@p} &7Süreli FLY özelliğiniz aktif değil."
         
command /flysil [<player>]:
    permission: fly.admin
    permission message: &7Bunu yapmak için yetkiniz yok!
    trigger:
        if arg 1 is set:
            if {fly::%arg 1%} is set:
                set arg 1's fly mode to false
                delete {fly::%arg 1%}
                delete {fly::%arg 1%::time}
                wait 3 seconds
                send "{@p} &7Süreli FLY yetkiniz silindi!" to arg 1
                message "{@p} &7Oyuncunun FLY'ı başarıyla silindi."
            else:
                message "{@p} &7Bu oyuncunun zaten süreli FLY yetkisi yok."
        else:
            message "{@p} &7Kullanım: &e/flysil <oyuncu>"
Kaç dakika veriyor fly'ı
 
Kaşif
Katılım
17 Ekim 2019
Mesajlar
179
Tepki puanı
90
Puanları
1,305
Discord
DarkSad#7914
30 dakika veriyor.
 
Kaşif
Katılım
17 Ekim 2019
Mesajlar
179
Tepki puanı
90
Puanları
1,305
Discord
DarkSad#7914
Sorun çözüldüyse En iyi cevabı işaretleyin ve konuyu çözüldü olarak işaretleyin.
 
Seçkin madenci.
Katılım
16 Ağustos 2019
Mesajlar
86
Tepki puanı
11
Puanları
1,215
Discord
Eldrithc_
Kaşif
Katılım
17 Ekim 2019
Mesajlar
179
Tepki puanı
90
Puanları
1,305
Discord
DarkSad#7914
İyi insanlar hep kaybederler, çünkü adildirler.
Katılım
26 Mayıs 2019
Mesajlar
159
Tepki puanı
108
Puanları
1,155
Discord
Sunshine#0368
Çözüldü mü?
 

Üst