[SKRİPT] Kullanıcı adından hesap sorgulama!

batuhanmck

Demir Madencisi
En iyi cevaplar
0
Öncelikle merhaba arkadaşlar bugün başka bir skriptim ile karşınızdayım.
Bu skript ile, /g <oyuncu> veya /gecmis <oyuncu> komutunu kullanarak oyuncunun hesabının orjinal olup olmadığını öğrenebilirsiniz.
Kod;

Kod:
options:
    #Mesaj başlığını buradan değiştirebilirsiniz.
    P: &a[Geçmiş] &c
    #Apisini yani kullanıcının orjinal hesabı olup olmadığını doğrularken hata olursa çıkacak mesaj.
    Hata: &oHata: &cKullanıcı sorgulanırken garip bir sorun ile karşılaşıldı!
    #Gerekli yetki
    Perm: gecmis.sorgula
    #Perm ile oyuna girerse değişikliklerden haberdar olunsun mu?
    PermGiris: false
    #Kaçıncı sürüm kaydı olduğunu buradan ayarlayabilirsiniz.
    version: 1.0

function NameHistoryOfPlayer(ign: text) :: text:
    set {_uuid} to uuid of "%{_ign}%" parsed as offline player
    set {_history} to text from "http://mcuuid.com/api/%{_uuid}%/history"
    replace all " and " with "," in {_history}
    replace all """" with "" in {_history}
    replace all "[" with "" in {_history}
    replace all "]" with "" in {_history}
    if {_history} is "":
        return "{@Hata}"
        stop
    if {_history} is "Hatalı istek!":
        return "{@Hata}"
        stop
    set {_history::*} to {_history} split at ","  
    return "%join {_history::*} with "",""%"
  
command /gecmis [<text>]:
    aliases: /g
    permission: {@Perm}
    trigger:
        if arg-1 is set:
            set {_list} to NameHistoryOfPlayer("%arg-1%")
            if {_list} is "{@Hata}":
                send "{@P}{@Hata}"
                stop
            set {_IGNs::*} to {_list} split at ","
            send "&2=== &c[&aKullanıcı Bilgileri &2%arg-1%&c] &2==="
            set {_uuid} to uuid of "%arg-1%" parsed as offline player
            send "&aUUID: &c%{_uuid}%"
            set {_size} to (size of {_IGNs::*})
            loop {_IGNs::*}:
                if loop-index is "1":
                    send "&c - &a%loop-value% &c[Orjinal]"
                else if loop-index is "%{_size}%":
                    send "&c - &a%loop-value% &c[Geçerli]"
                else:
                    send "&c - &a%loop-value%"
        else:
            send "{@P}Usage: &a/g - /gecmis <oyuncu>"
          
on join:
    if {@PermGiris} is true:
        set {_list} to NameHistoryOfPlayer("%player%")
        if {_list} is "{@Hata}":
            loop all players:
                if loop-player has permission "{@Perm}":
                    send "{@P}{@Hata}" to loop-player
            stop
        set {_IGNs::*} to {_list} split at ","
        loop all players:
            if loop-player has permission "{@Perm}":
                send "&2=== &c[&aKullanıcı Bilgileri &2%player%&c] &2===" to loop-player
        set {_uuid} to uuid of "%player%" parsed as offline player
        loop all players:
            if loop-player has permission "{@Perm}":
                send "&aUUID: &c%{_uuid}%" to loop-player
        set {_size} to (size of {_IGNs::*})
        loop {_IGNs::*}:
            if loop-index is "1":
                loop all players:
                    if loop-player has permission "{@Perm}":
                        send "&c - &a%loop-value-1% &c[Orjinal]" to loop-player
            else if loop-index is "%{_size}%":
                loop all players:
                    if loop-player has permission "{@Perm}":
                        send "&c - &a%loop-value-1% &c[Geçerli]" to loop-player
            else:
                loop all players:
                    if loop-player has permission "{@Perm}":
                        send "&c - &a%loop-value-1%" to loop-player
 
Son düzenleme:

Minecraftplayerr

Java, Skript, Php, Html, Css, Javascript, Anime
En iyi cevaplar
7
Güzel olmuş. Uzun zamandır forumda güzel olmuş yazabileceğim bir skript yoktu.
Sözümü geri alıyorum alıntıymış .-. (Alıntı olduğunu başta anlamıştım gerçi.)
 
Son düzenleme:

Axel102

Hayalet Avcısı
En iyi cevaplar
6
Fonksiyonlar 2.2'nin altında çalışmaz yapımcısı umbaskanın yapımcısı diğer sürümlerden ne farkı var ne eksiği var bilmiyorum
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.
 
Üst