emir derken?Demacor da emir vermesin
command /uç: #eğer uç komutunu kullanırsa
trigger:
if player is not in world "Dunya": #oyuncu Dunya dünyasında değilse
if player has permission "sunucu.fly": #oyuncunun sunucu.fly yetkisi varsa
set player's flight mode to true #oyuncunun uçuş modunu aç
send "&6&lSUNUCU ADI &8» &aUçuş modu başarıyla açıldı!" #oyuncuya bilgilendirme mesajı gönder
else: #oyuncunun yetkisi yoksa
send "&6&lSUNUCU ADI &8» &cBu komut için yetkin yok!" #oyuncuya bilgilendirme mesajı gönder
else: #oyuncu Dunya dünyasında değilse
send "&6&lSUNUCU ADI &8» &cBu komutu kullanabilmek için lobide olmalısın!" #oyuncuya bilgilendirme mesajı gönder
every 1 second: #her 1 saniyede
loop all players: #herkesi kontrol et
if loop-player's flight mode is true: #eğer kontrol edilen oyuncunun uçuş modu açıksa
if loop-player has not permission "sunucu.fly": #ve sunucu.fly yetkisi yoksa
set loop-player's flight mode to false #oyuncunun uçuş modunu kapat
NOT |
---|
Kontrol edilmedi, hata çıkarsa bana söyleyebilirsin. |
command /fly:
permission: essentials.fly
permission message: &3AvelisMC &8» &7Bu Komutu Kullanmak Için Gerekli Yetkiye Sahip Değilsin.
trigger:
if world is "lobi":
execute console command "fly %player%"
execute console command "tm msg %player% &3&lAvelisMC\n&fUçuş Modun Başarıyla Aktif Edildi"
else:
execute console command "tm msg %player% &3&lAvelisMC\n&fUçuş Modun Başarıyla Pasif Edildi"
on command "/fly":
if world is "dünya":
cancel event
execute console command "tm msg %player% &3&lAvelisMC\n&fBu Dünyada Uçuş Modu Kapalıdır"
Eğer /fly %player% yaparsan oyuncuya zaten Fly modun açıldı! diye bir mesaj gönderecektir.Kod:execute console command "fly %player%"
adamlar lobide yapıyor, her şey iyi hoşta lobiden başka bir dünyaya geçtikleri zamanda açıksa kapansın.command /fly: permission: essentials.fly permission message: &3AvelisMC &8» &7Bu Komutu Kullanmak Için Gerekli Yetkiye Sahip Değilsin. trigger: if world is "lobi": execute console command "fly %player%" execute console command "tm msg %player% &3&lAvelisMC\n&fUçuş Modun Başarıyla Aktif Edildi" else: execute console command "tm msg %player% &3&lAvelisMC\n&fUçuş Modun Başarıyla Pasif Edildi"
on world change:
if event-world is "Dunya":
if player's fly mode is true:
set player's fly mode to false
on command "/uç":
if player's world is "Dunya":
if player does not have permission "bypass":
cancel event