Çözülmüştür.

Minecraftplayerr

Java, Skript, Php, Html, Css, Javascript, Anime
En iyi cevaplar
7
ban player due to "Sunucudan yasaklandınız. Yapan: Konsol, Tarih: 14-01-2014 17:07:38 Expires in: 5seconds Sebep:Test"

..._____________...
 
Son düzenleme:

Tenekesaurus

Obsidyen Madencisi
En iyi cevaplar
0
"5 saniye içinde zaman aşımına uğrayacak" olur ama olmaz gibi de :/

Zaman Aşımı : 5 saniye şeklünde
 

blackone1991

Elmas Madencisi
En iyi cevaplar
0
Denemedim ama bu olur büyük ihtimal ile...
PHP:
command /banla [<text>] [<text>] [<integer>]:
    trigger:
        arg 1 is not set:
            send "&c/banla <Oyn. isimi> <Sebep> <Süre> &7- Oyuncuyu banlar." to player
            stop
        arg 1 is online:
            arg 2 is set:
                arg 3 is set:
                    set {_time} to now
                    kick arg 1 due to "&4Sunucudan banlandınız!%new line%&fBanlayan: %player%, &fTarih: &c%{_time}%%new line%&fBan Süresi: &c%arg 3% sn.%new line%&fSebep: &c%arg 2%"
                    stop
 
Son düzenleme:

GetqusA

Kızıltaş Madencisi
En iyi cevaplar
0
Denemedim ama bu olur büyük ihtimal ile...
PHP:
command /banla [<text>] [<text>] [<integer>]:
    trigger:
        arg 1 is not set:
            send "&c/banla <Oyn. isimi> <Sebep> <Süre> &7- Oyuncuyu banlar." to player
            stop
        arg 1 is online:
            arg 2 is set:
                arg 3 is set:
                    set {_time} to now
                    kick player due to "&4Sunucudan banlandınız!%new line%&fBanlayan: %player%, &fTarih: &c%{_time}%%new line%&fBan Süresi: &c%arg 3% sn.%new line%&fSebep: &c%arg 2%"
                    stop
Kod:
  kick player due to
yerine
Kod:
   kick arg-1 due to
olması lazım o şekilde değiştir
 

SAKLINETWORK

SAKLI
En iyi cevaplar
0
TexBan Skripti var, sanırım işini görür. Alıntıdır. (Denenmedi)


Kod:
options:
    Logo: &7[&eT&6exBan&7]
    BanHeader: &4✖ &eT&6exBan &4✖
    KickHeader: &4✖ &eT&6exBan &4✖
    Activated: &aTexBan has been succesfully activated.

#  Set this to "true" if you want to check and save the IP of any player.
#  Then nobody can use more than one account except he / she has the permission "TexBan.Bypass" or a proxy connection.
#  Use ONLY "true" or "false" to AVOID errors!!
    CheckIP: true


#  Set this to "true" if you want to clear the saved data (except the ban data) of an inactive player after 14 days*.
#  This function will delete the saved UUID and the IP of an inactive player who was longer than 14 days* offline and avoid saving of tons of variables.
#  If somebody used hacks or something else you can ban them in this timespan, after 14 days* the data will be cleared, if the player wasn't online you won't be able to ban them anymore.
#  The banning -, warn - and history data will be NOT lose if you activate this super cool feature. Only the UUID and the IP of the inactive player. :)
#  If the player connect to your server after 14 days*, the deleted variables (UUID and IP) will be regenerated and saved.
#  Your database will be permanently clean. ;3
#  Use ONLY "true" or "false" to AVOID errors!!
    ClearData: true
    ClearTimespan: 14 days



#  Do you want to log all (un)bans, kicks, (un)mutes and (un)warns in a file?
#  Note: This feature doesn't support BungeeCord servers and was only made for local servers.
#  Note: You need more memory for this feature. You'll find the log file in your Skript directory.
#  Use ONLY "true" or "false" to AVOID errors!!
    Log: false
    FileName: TexBan-History.log


    Permission.Kick: TexBan.Kick
    Permission.Ban: TexBan.Ban
    Permission.Unban: TexBan.Unban
    Permission.Warn: TexBan.Warn
    Permission.Unwarn: TexBan.Unwarn
    Permission.Mute: TexBan.Mute
    Permission.History: TexBan.History

#  This permission allows a user to use more than one account and bypass bans if he / she gets banned.
#  I can't really check the permission of offline players (BungeeCord) that's why they can only bypass bans on connect with this permission.
    Permission.Bypass: TexBan.Bypass

# ######################################################################################################################################################################################################################
# Ban messages

#  %{synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM}% ....  = Who banned the player
#  %{synced_.BAN.%{synced_.UUID.%loop-player%}%.REASON}% ..  = The reason of the ban
#  %{_BANNED.%{synced_.UUID.%loop-player%}%}% .............  = When the player gets unbanned

#  %{synced_.BAN.%{synced_.UUID.%player%}%.FROM}% .........  = Who banned the player
#  %{synced_.BAN.%{synced_.UUID.%player%}%.REASON}% .......  = The reason of the ban
#  %{_BANNED.%{synced_.UUID.%player%}%}% ..................  = When the player gets unbanned

#  %nl% ...................................................  = Newline

    Event1_Temp: &cYou've been banned by &9%{synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM}% &cfrom the server.
    Event1_Temp_Reason: &cReason: &3&l%{synced_.BAN.%{synced_.UUID.%loop-player%}%.REASON}%
    Event1_Temp_Line2: &cYou're banned till &a%{_BANNED.%{synced_.UUID.%loop-player%}%}%
    Event1_Temp_Line3: %nl%%nl%&2> &aVisit &ewww.YourDomain.com &afor more information. &2<

    Event2_Temp: &cYou've been banned by &9%{synced_.BAN.%{synced_.UUID.%player%}%.FROM}% &cfrom the server.
    Event2_Temp_Reason: &cReason: &3&l%{synced_.BAN.%{synced_.UUID.%player%}%.REASON}%
    Event2_Temp_Line2: &cYou're banned till &a%{_BANNED.%{synced_.UUID.%player%}%}%
    Event2_Temp_Line3: %nl%%nl%&2> &aVisit &ewww.YourDomain.com &afor more information. &2<


    Event1_Perm: &cYou've been banned by &9%{synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM}% &4permanently &cfrom the server.
    Event1_Perm_Reason: &cReason: &3&l%{synced_.BAN.%{synced_.UUID.%loop-player%}%.REASON}%
    Event1_Perm_Line2: %nl%%nl%&2> &aVisit &ewww.YourDomain.com &afor more information. &2<

    Event2_Perm: &cYou've been banned by &9%{synced_.BAN.%{synced_.UUID.%player%}%.FROM}% &4permanently &cfrom the server.
    Event2_Perm_Reason: &cReason: &3&l%{synced_.BAN.%{synced_.UUID.%player%}%.REASON}%
    Event2_Perm_Line2: %nl%%nl%&2> &aVisit &ewww.YourDomain.com &afor more information. &2<

# ######################################################################################################################################################################################################################
# Kick messages

#  %player%    = Who kicked the player
#  %arg-2%     = The reason of the kick  (Use this ONLY in Event3_Kick_Line2!!)

    Event3_Kick: &cYou've been kicked by &9%player%
    Event3_Kick_2: &cYou've been kicked by &9CONSOLE
    Event3_Kick_Line2: &cReason: &3&l%arg-2%

    Event4_Kick: &cYou've been kicked by &9%player%
    Event4_Kick_2: &cYou've been kicked by &9CONSOLE

# ######################################################################################################################################################################################################################
# Warn messages

#  Here you can set the ban time if a player gets the maximum amount of warns.
#  Use ONLY 3d, 14d, 30d or perm to AVOID errors!!
    WarnBan: 3d

#  Here you can set the maximum number of warns.
#  Use ONLY numbers to AVOID errors!!
    MaxWarns: 5

    WarnBan_Reason: 5 Warns
    NoWarns: &cThis player doesn't have any warns
    WarnRemoved: &a1 warn has been removed from this player

#  (true = broadcast message), (false = player message)
#  Use ONLY true or false to AVOID errors!!
    Warn_Global: false

#  %player%      = Who warned the player
#  %arg-player%  = Who was warned
#  %arg-2%       = The reason of the warn
    Warn_BROADCAST: &c%arg-player% &6has been warned by &a%player% &6because &9&o%arg-2%
    Warn_BROADCAST_2: &c%arg-player% &6has been warned by &aCONSOLE &6because &9&o%arg-2%
    Warn_PLAYER: &6You've been warned by &a%player% &6because &9&o%arg-2%
    Warn_PLAYER_2: &6You've been warned by &aCONSOLE &6because &9&o%arg-2%

    Warn_MSG: &a&c&o%arg-player% &ahas been warned because &9&o%arg-2%
    Warn_STATS: of

# ######################################################################################################################################################################################################################
# Mute messages

    MutedPlayer_CHAT: &cYou can't chat because you're muted!
    MutedPlayer_PLAYER: &cYou've been muted by &9%player%
    MutedPlayer_PLAYER_2: &aYou've been unmuted by &9%player%
    MutedPlayer_PLAYER_CONSOLE: &cYou've been muted by &9CONSOLE
    MutedPlayer_PLAYER_CONSOLE_2: &cYou've been unmuted by &9CONSOLE

    MutedPlayer_MSG: &a%arg-player% has been muted
    MutedPlayer_MSG_2: &a%arg-player% has been unmuted

# ######################################################################################################################################################################################################################
# Other messages

    ConsoleName: CONSOLE
    BypassBan: Ban-Bypass
    NoPermission: &cYou don't have permission to execute this command
    NoName: &cPlease enter a name
    NoSelfKick: &cYou can't kick yourself :D
    NoSelfBan: &cYou can't ban yourself :D
    NoSelfWarn: &cYou can't warn yourself :D
    NoSelfMute: &cYou can't mute yourself :D
    UUIDnotFound: &cUUID of player hasn't been found
    AlreadyBanned: &cThis player is already banned
    PlayerNotBanned: &cThis player hasn't been banned yet
    NoTime: &cUse 3d, 14d, 30d or perm
    NoReason: &cPlease enter a reason
    CantUseCommand: &cYou can't use this name
    PlayerWasUnbanned: &aThe player has been unbanned
    DisabledFeature: &cThis feature is currently disabled

    NoHistory: &4                > &cNo history has been found for this player &4<
    History_BAN: &b                       Banned
    History_MUTE: &bMuted
    History_WARNS: &bWarns
    History_LASTSEEN: &a                       Last seen on

#  %arg-1%  = The player name
#  %arg-2%  = The reason of the kick  (Use this ONLY in WasKicked_R!!)
    WasKicked: &c%arg-1% &ahas been kicked
    WasKicked_R: &c%arg-1% &ahas been kicked because &c%arg-2%

#  %arg-1%  = The player name
#  %arg-2%  = The reason of the ban
#  %arg-3%  = The ban time  (Use this ONLY in WasBanned_Perm!!)
    WasBanned: &c%arg-1% &ahas been banned because &c%arg-3% &afor &c%arg-2%
    WasBanned_Perm: &c%arg-1% &ahas been banned permanently because &c%arg-3%

# # // End
# ######################################################################################################################################################################################################################



on skript load:
    send "{@Logo} {@Activated}" to console


# # (Mute event)
on chat:
    If {synced_.Mute::%player%} is true:
        cancel event
        message "{@Logo} {@MutedPlayer_CHAT}"
# # // End


# # (ClearData delete event)
every 5 minutes:
    set {_Q4} to {@ClearData}
    If {_Q4} is true:
        loop {synced_.LastOnlineCD::*}:
            set {_CD:memory:%loop-value%} to difference between {synced_.LastOnlineCD::%loop-value%.Data} and now
            If {_CD:memory:%loop-value%} is bigger than {@ClearTimespan}:
                delete {synced_.IP.%{synced_.LastOnlineCD::%loop-value%}%}
                delete {synced_.UUID.%{synced_.LastOnlineCD::%loop-value%}%}
                delete {_CD:memory:%loop-value%}
                delete {synced_.LastOnlineCD::%loop-value%}
                delete {synced_.LastOnlineCD::%loop-value%.Data}
            wait 3 ticks
# # // End


every 2 seconds:

# # (Banning / kicking the player if he's / she's online on your server)
    loop all players:
        If {synced_.KICKBAN.%loop-player%} is set:
            If {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIME} is "3 days":
                set {_BANNED.%{synced_.UUID.%loop-player%}%} to {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIMENOW}
                increase {_BANNED.%{synced_.UUID.%loop-player%}%} by 4320 minutes
                If {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} is not set:
                    set {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} to "{@ConsoleName}"
                kick loop-player due to "{@BanHeader}%nl%&f%nl%{@Event1_Temp}%nl%{@Event1_Temp_Line2}%nl%{@Event1_Temp_Reason}%nl%&f%nl%{@Event1_Temp_Line3}"
            If {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIME} is "14 days":
                set {_BANNED.%{synced_.UUID.%loop-player%}%} to {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIMENOW}
                increase {_BANNED.%{synced_.UUID.%loop-player%}%} by 20160 minutes
                If {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} is not set:
                    set {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} to "{@ConsoleName}"
                kick loop-player due to "{@BanHeader}%nl%&f%nl%{@Event1_Temp}%nl%{@Event1_Temp_Line2}%nl%{@Event1_Temp_Reason}%nl%&f%nl%{@Event1_Temp_Line3}"
            If {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIME} is "30 days":
                set {_BANNED.%{synced_.UUID.%loop-player%}%} to {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIMENOW}
                increase {_BANNED.%{synced_.UUID.%loop-player%}%} by 43200 minutes
                If {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} is not set:
                    set {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} to "{@ConsoleName}"
                kick loop-player due to "{@BanHeader}%nl%&f%nl%{@Event1_Temp}%nl%{@Event1_Temp_Line2}%nl%{@Event1_Temp_Reason}%nl%&f%nl%{@Event1_Temp_Line3}"
            If {synced_.BAN.%{synced_.UUID.%loop-player%}%.TIME} is "perm":
                If {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} is not set:
                    set {synced_.BAN.%{synced_.UUID.%loop-player%}%.FROM} to "{@ConsoleName}"
                kick loop-player due to "{@BanHeader}%nl%&f%nl%{@Event1_Perm}%nl%{@Event1_Perm_Reason}%nl%&f%nl%{@Event1_Perm_Line2}"
            delete {synced_.KICKBAN.%loop-player%}
# # // End


on connect:

# # (ClearData save event)
    set {_Q4} to {@ClearData}
    If {_Q4} is true:
        set {synced_.LastOnlineCD::%player's uuid%} to player's uuid
        set {synced_.LastOnlineCD::%player's uuid%.Data} to now

# # (Mass-UUID database convert)
    set {synced_.UUID.%player%} to player's uuid


# # ([Un]ban event)
    If player has permission "{@Permission.Bypass}":
        set {synced_.UNBAN.%{synced_.UUID.%player%}%} to "true"
    If {synced_.UNBAN.%{synced_.UUID.%player%}%} is "true":
        delete {failsafe.IP.%player's uuid%}
        delete {synced_.BAN.%{synced_.UUID.%player%}%}
        delete {synced_.BAN.%{synced_.UUID.%player%}%.FROM}
        delete {synced_.BAN.%{synced_.UUID.%player%}%.REASON}
        delete {synced_.BAN.%{synced_.UUID.%player%}%.TIME}
        delete {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
        delete {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%player%}%}%}
        stop
    else:
        set {failsafe.IP.%player's uuid%} to "1"
# # // End


# # ([Un]banning the player if he / she joins your server)
    If {synced_.BAN.%{synced_.UUID.%player%}%} is set:
        If {synced_.BAN.%{synced_.UUID.%player%}%.FROM} is not set:
            set {synced_.BAN.%{synced_.UUID.%player%}%.FROM} to "{@ConsoleName}"
        If {synced_.BAN.%{synced_.UUID.%player%}%.TIME} is "perm":
            kick player due to "{@BanHeader}%nl%&f%nl%{@Event2_Perm}%nl%{@Event2_Perm_Reason}%nl%&f%nl%{@Event2_Perm_Line2}"
        else:
            set {_BANNED1.%{synced_.UUID.%player%}%} to difference between {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW} and now
            If {synced_.BAN.%{synced_.UUID.%player%}%.TIME} is "3 days":
                If {_BANNED1.%{synced_.UUID.%player%}%} is less than 4320 minutes:
                    set {_BANNED.%{synced_.UUID.%player%}%} to {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
                    increase {_BANNED.%{synced_.UUID.%player%}%} by 4320 minutes
                    kick player due to "{@BanHeader}%nl%&f%nl%{@Event2_Temp}%nl%{@Event2_Temp_Line2}%nl%{@Event2_Temp_Reason}%nl%&f%nl%{@Event2_Temp_Line3}"
                else:
                    delete {synced_.BAN.%{synced_.UUID.%player%}%}
                    delete {synced_.BAN.%{synced_.UUID.%player%}%.FROM}
                    delete {synced_.BAN.%{synced_.UUID.%player%}%.REASON}
                    delete {synced_.BAN.%{synced_.UUID.%player%}%.TIME}
                    delete {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
                    delete {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%player%}%}%}
            else:
                If {synced_.BAN.%{synced_.UUID.%player%}%.TIME} is "14 days":
                    If {_BANNED1.%{synced_.UUID.%player%}%} is less than 20160 minutes:
                        set {_BANNED.%{synced_.UUID.%player%}%} to {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
                        increase {_BANNED.%{synced_.UUID.%player%}%} by 20160 minutes
                        kick player due to "{@BanHeader}%nl%&f%nl%{@Event2_Temp}%nl%{@Event2_Temp_Line2}%nl%{@Event2_Temp_Reason}%nl%&f%nl%{@Event2_Temp_Line3}"
                    else:
                        delete {synced_.BAN.%{synced_.UUID.%player%}%}
                        delete {synced_.BAN.%{synced_.UUID.%player%}%.FROM}
                        delete {synced_.BAN.%{synced_.UUID.%player%}%.REASON}
                        delete {synced_.BAN.%{synced_.UUID.%player%}%.TIME}
                        delete {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
                        delete {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%player%}%}%}
                else:
                    If {synced_.BAN.%{synced_.UUID.%player%}%.TIME} is "30 days":
                        If {_BANNED1.%{synced_.UUID.%player%}%} is less than 43200 minutes:
                            set {_BANNED.%{synced_.UUID.%player%}%} to {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
                            increase {_BANNED.%{synced_.UUID.%player%}%} by 43200 minutes
                            kick player due to "{@BanHeader}%nl%&f%nl%{@Event2_Temp}%nl%{@Event2_Temp_Line2}%nl%{@Event2_Temp_Reason}%nl%&f%nl%{@Event2_Temp_Line3}"
                        else:
                            delete {synced_.BAN.%{synced_.UUID.%player%}%}
                            delete {synced_.BAN.%{synced_.UUID.%player%}%.FROM}
                            delete {synced_.BAN.%{synced_.UUID.%player%}%.REASON}
                            delete {synced_.BAN.%{synced_.UUID.%player%}%.TIME}
                            delete {synced_.BAN.%{synced_.UUID.%player%}%.TIMENOW}
                            delete {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%player%}%}%}
# # // End


# # Failsafe START (Mass-IP database convert)
# # This event checks the IP-variable of the player. There's a Java bug in the 'on connect' event :P
on join:
    set {_Q1} to {@CheckIP}
    If {_Q1} is false:
        stop
    If player has permission "{@Permission.Bypass}":
        stop
    If {synced_.IP.%player's uuid%} is not set:
        set {synced_.IP.%player's uuid%} to player's ip
    else:
        If {synced_.IP.%player's uuid%} is not player's ip:
            set {synced_.IP.%player's uuid%} to player's ip
# # (Banning the player if he's / she's using another account with the same IP-address)
    If {synced_.BAN.%{synced_.UUID.%player%}%} is not set:
        If {failsafe.IP.%player's uuid%} is "1":
            If {synced_.IPBAN.%player's ip%} is "true":
                delete {failsafe.IP.%player's uuid%}
                set {synced_.BAN.%player's uuid%} to player
                set {synced_.BAN.%player's uuid%.REASON} to "{@BypassBan}"
                set {synced_.BAN.%player's uuid%.TIME} to "perm"
                set {synced_.BAN.%player's uuid%.FROM} to "{@ConsoleName}"
                kick player due to "{@BanHeader}%nl%&f%nl%{@Event2_Perm}%nl%{@Event2_Perm_Reason}%nl%&f%nl%{@Event2_Perm_Line2}"
# # // End
# # Failsafe END


# ######################################################################################################################################################################################################################
# # Commands

# # Please don't remove this command. Thanks. *
command /texban:version:
    trigger:
        message "{@Logo} &9TexBan source found! &f<> &6(C) _Vegas | XXvevo"

command /history [<text>]:
    aliases: lookup
    trigger:
        If player does not have permission "{@Permission.History}":
            message "{@Logo} {@NoPermission}"
        else:
            set {_Q5} to {@HistorySave}
            If {_Q5} is not true:
                message "{@Logo} {@DisabledFeature}"
            else:
                If arg 1 is not set:
                    message "{@Logo} {@NoName}"
                else:
                    If {synced_.UUID.%arg-1%} is not set:
                        message "{@Logo} {@UUIDnotFound}"
                    else:
                        If {synced_.History.%{synced_.UUID.%arg-1%}%::*} is not set:
                            message ""
                            message "{@NoHistory}"
                            message "&f&m======================&6&l Status  &f&m======================="
                            If {synced_.BAN.%{synced_.UUID.%arg-1%}%} is set:
                                set {_H.1} to "&a&l✔"
                            else:
                                set {_H.1} to "&c&l✖"
                            If {synced_.Mute::%arg-1%} is set:
                                set {_H.2} to "&a&l✔"
                            else:
                                set {_H.2} to "&c&l✖"
                            If {synced_.WARN.%{synced_.UUID.%arg-1%}%} is not set:
                                set {synced_.WARN.%{synced_.UUID.%arg-1%}%} to "0"
                            If {synced_.LastOnlineCD::%{synced_.UUID.%arg-1%}%.Data} is not set:
                                set {synced_.LastOnlineCD::%{synced_.UUID.%arg-1%}%.Data} to "Error: ClearData feature isn't activated!"
                            message "{@History_BAN} %{_H.1}% &f| {@History_MUTE} %{_H.2}% &f| {@History_WARNS} &c&l%{synced_.WARN.%{synced_.UUID.%arg-1%}%}%"
                            message "{@History_LASTSEEN} &e%{synced_.LastOnlineCD::%{synced_.UUID.%arg-1%}%.Data}%"
                            message ""
                        else:
                            loop {synced_.History.%{synced_.UUID.%arg-1%}%::*}:
                                message "%loop-value%"
                            message "&f&m======================&6&l Status  &f&m======================="
                            If {synced_.BAN.%{synced_.UUID.%arg-1%}%} is set:
                                set {_H.1} to "&a&l✔"
                            else:
                                set {_H.1} to "&c&l✖"
                            If {synced_.Mute::%arg-1%} is set:
                                set {_H.2} to "&a&l✔"
                            else:
                                set {_H.2} to "&c&l✖"
                            If {synced_.WARN.%{synced_.UUID.%arg-1%}%} is not set:
                                set {synced_.WARN.%{synced_.UUID.%arg-1%}%} to "0"
                            If {synced_.LastOnlineCD::%{synced_.UUID.%arg-1%}%.Data} is not set:
                                set {synced_.LastOnlineCD::%{synced_.UUID.%arg-1%}%.Data} to "Error: ClearData feature isn't activated!"
                            message "{@History_BAN} %{_H.1}% &f| {@History_MUTE} %{_H.2}% &f| {@History_WARNS} &c&l%{synced_.WARN.%{synced_.UUID.%arg-1%}%}%"
                            message "{@History_LASTSEEN} &e%{synced_.LastOnlineCD::%{synced_.UUID.%arg-1%}%.Data}%"
                            message ""

command /kick [<player>] [<text>]:
    trigger:
        If player does not have permission "{@Permission.Kick}":
            message "{@Logo} {@NoPermission}"
        else:
            If arg-1 is not set:
                message "{@Logo} {@NoName}"
            else:
                If arg-player is player:
                    message "{@Logo} {@NoSelfKick}"
                else:
                    If arg-player has permission "{@Permission.Bypass}":
                        message "{@Logo} {@CantUseCommand}"
                    else:
                        If arg 2 is not set:
                            message "{@Logo} {@WasKicked}"
                            If player's health is bigger or equal to 1:
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    log "%player% kicked %arg-player% (%{synced_.UUID.%arg-player%}%)." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    add "&9[%now%] %player% kicked %arg-player%" to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                kick arg-player due to "{@KickHeader}%nl%&f%nl%{@Event4_Kick}"
                            else:
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    log "{@ConsoleName} kicked %arg-player% (%{synced_.UUID.%arg-player%}%)." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    add "&9[%now%] {@ConsoleName} kicked %arg-player%" to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                kick arg-player due to "{@KickHeader}%nl%&f%nl%{@Event4_Kick_2}"
                        else:
                            message "{@Logo} {@WasKicked_R}"
                            If player's health is bigger or equal to 1:
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    log "%player% kicked %arg-player% (%{synced_.UUID.%arg-player%}%) due to ""%arg-2%""." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    add "&9[%now%] %player% kicked %arg-player% due to ""%arg-2%""." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                kick arg-player due to "{@KickHeader}%nl%&f%nl%{@Event3_Kick}%nl%{@Event3_Kick_Line2}"
                            else:
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    log "{@ConsoleName} kicked %arg-player% (%{synced_.UUID.%arg-player%}%) due to ""%arg-2%""." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    add "&9[%now%] {@ConsoleName} kicked %arg-player% due to ""%arg-2%""." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                kick arg-player due to "{@KickHeader}%nl%&f%nl%{@Event3_Kick_2}%nl%{@Event3_Kick_Line2}"

command /ban [<text>] [<text>] [<text>]:
    aliases: tempban
    trigger:
        If player does not have permission "{@Permission.Ban}":
            message "{@Logo} {@NoPermission}"
        else:
            If arg 1 is not set:
                message "{@Logo} {@NoName}"
            else:
                If {synced_.UUID.%arg-1%} is not set:
                    message "{@Logo} {@UUIDnotFound}"
                else:
                    If arg 1 is player:
                        message "{@Logo} {@NoSelfBan}"
                    else:
                        If {synced_.BAN.%{synced_.UUID.%arg-1%}%} is set:
                            message "{@Logo} {@AlreadyBanned}"
                        else:
                            If arg 2 is not set:
                                message "{@Logo} {@NoTime}"
                            else:
                                If arg 2 is not "3d" or "14d" or "30d" or "perm":
                                    message "{@Logo} {@NoTime}"
                                else:
                                    If arg 3 is not set:
                                        message "{@Logo} {@NoReason}"
                                    else:
                                        set {_Q2} to {@Log}
                                        If {_Q2} is true:
                                            If player's health is bigger or equal to 1:
                                                log "**%player% banned %arg-1% (%{synced_.UUID.%arg-1%}%) due to ""%arg-3%"" for %arg-2%." to "{@FileName}"
                                            else:
                                                log "**{@ConsoleName} banned %arg-1% (%{synced_.UUID.%arg-1%}%) due to ""%arg-3%"" for %arg-2%." to "{@FileName}"
                                        set {_Q5} to {@HistorySave}
                                        If {_Q5} is true:
                                            If player's health is bigger or equal to 1:
                                                add "&c[%now%] %player% banned %arg-1% due to ""%arg-3%"" for %arg-2%." to {synced_.History.%{synced_.UUID.%arg-1%}%::*}
                                            else:
                                                add "&c[%now%] {@ConsoleName} banned %arg-1% due to ""%arg-3%"" for %arg-2%." to {synced_.History.%{synced_.UUID.%arg-1%}%::*}
                                        If arg 2 is "3d" or "14d" or "30d":
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%} to arg-1
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%.REASON} to arg-3
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIMENOW} to now
                                            set {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%arg-1%}%}%} to "true"
                                            delete {synced_.UNBAN.%{synced_.UUID.%arg-1%}%}
                                            If arg 2 is "3d":
                                                set {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIME} to "3 days"
                                                set {_BANNED.%{synced_.UUID.%arg-1%}%} to {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIMENOW}
                                                increase {_BANNED.%{synced_.UUID.%arg-1%}%} by 3 days
                                            else:
                                                If arg 2 is "14d":
                                                    set {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIME} to "14 days"
                                                    set {_BANNED.%{synced_.UUID.%arg-1%}%} to {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIMENOW}
                                                    increase {_BANNED.%{synced_.UUID.%arg-1%}%} by 14 days
                                                else:
                                                    If arg 2 is "30d":
                                                        set {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIME} to "30 days"
                                                        set {_BANNED.%{synced_.UUID.%arg-1%}%} to {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIMENOW}
                                                        increase {_BANNED.%{synced_.UUID.%arg-1%}%} by 30 days
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%.FROM} to player
                                            message "{@Logo} {@WasBanned}"
                                            set {synced_.KICKBAN.%arg-1%} to "1"
                                            wait 5 seconds
                                            delete {synced_.KICKBAN.%arg-1%}
                                        else:
                                            set {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%arg-1%}%}%} to "true"
                                            delete {synced_.UNBAN.%{synced_.UUID.%arg-1%}%}
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%} to arg-1
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%.REASON} to arg-3
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIME} to arg-2
                                            set {synced_.BAN.%{synced_.UUID.%arg-1%}%.FROM} to player
                                            message "{@Logo} {@WasBanned_Perm}"
                                            set {synced_.KICKBAN.%arg-1%} to "1"
                                            wait 5 seconds
                                            delete {synced_.KICKBAN.%arg-1%}

command /unban [<text>]:
    aliases: pardon
    trigger:
        If player does not have permission "{@Permission.Unban}":
            message "{@Logo} {@NoPermission}"
        else:
            If arg 1 is not set:
                message "{@Logo} {@NoName}"
            else:
                If {synced_.UUID.%arg-1%} is not set:
                    message "{@Logo} {@UUIDnotFound}"
                else:
                    If {synced_.BAN.%{synced_.UUID.%arg-1%}%} is not set:
                        message "{@Logo} {@PlayerNotBanned}"
                    else:
                        set {_Q2} to {@Log}
                        If {_Q2} is true:
                            If player's health is bigger or equal to 1:
                                log "*%player% unbanned %arg-1% (%{synced_.UUID.%arg-1%}%)." to "{@FileName}"
                            else:
                                log "*{@ConsoleName} unbanned %arg-1% (%{synced_.UUID.%arg-1%}%)." to "{@FileName}"
                        set {_Q5} to {@HistorySave}
                        If {_Q5} is true:
                            If player's health is bigger or equal to 1:
                                add "&c[%now%] %player% unbanned %arg-1%." to {synced_.History.%{synced_.UUID.%arg-1%}%::*}
                            else:
                                add "&c[%now%] {@ConsoleName} unbanned %arg-1%." to {synced_.History.%{synced_.UUID.%arg-1%}%::*}
                        set {synced_.UNBAN.%{synced_.UUID.%arg-1%}%} to "true"
                        delete {synced_.BAN.%{synced_.UUID.%arg-1%}%}
                        delete {synced_.BAN.%{synced_.UUID.%arg-1%}%.FROM}
                        delete {synced_.BAN.%{synced_.UUID.%arg-1%}%.REASON}
                        delete {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIME}
                        delete {synced_.BAN.%{synced_.UUID.%arg-1%}%.TIMENOW}
                        delete {synced_.IPBAN.%{synced_.IP.%{synced_.UUID.%arg-1%}%}%}
                        message "{@Logo} {@PlayerWasUnbanned}"

command /warn [<player>] [<text>]:
    trigger:
        If player does not have permission "Permission.Warn":
            message "{@Logo} {@NoPermission}"
        else:
            If arg 1 is not set:
                message "{@Logo} {@NoName}"
            else:
                If arg 1 is player:
                    message "{@Logo} {@NoSelfWarn}"
                else:
                    If arg-player has permission "{@Permission.Bypass}":
                        message "{@Logo} {@CantUseCommand}"
                    else:
                        If arg 2 is not set:
                            message "{@Logo} {@NoReason}"
                        else:
                            If {synced_.WARN.%arg-player's uuid%} is {@MaxWarns}-1:
                                delete {synced_.WARN.%arg-player's uuid%}
                                If player's health is bigger or equal to 1:
                                    set {_Q2} to {@Log}
                                    If {_Q2} is true:
                                        log "%player% warned %arg-player% (%{synced_.UUID.%arg-player%}%) due to ""%arg-2%"" [{@MaxWarns} {@Warn_STATS} {@MaxWarns}]." to "{@FileName}"
                                    set {_Q5} to {@HistorySave}
                                    If {_Q5} is true:
                                        add "&6[%now%] %player% warned %arg-player% due to ""%arg-2%"" ({@MaxWarns} / {@MaxWarns})." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                    set {_Q3} to {@Warn_Global}
                                    If {_Q3} is false:
                                        send "{@Logo} {@Warn_PLAYER} &7(&e{@MaxWarns} &7{@Warn_STATS} &e{@MaxWarns}&7)" to arg-player
                                    else:
                                        broadcast "{@Logo} {@Warn_BROADCAST} &7(&e{@MaxWarns} &7{@Warn_STATS} &e{@MaxWarns}&7)"
                                else:
                                    set {_Q2} to {@Log}
                                    If {_Q2} is true:
                                        log "{@ConsoleName} warned %arg-player% (%{synced_.UUID.%arg-player%}%) due to ""%arg-2%"" [{@MaxWarns} {@Warn_STATS} {@MaxWarns}]." to "{@FileName}"
                                    set {_Q5} to {@HistorySave}
                                    If {_Q5} is true:
                                        add "&6[%now%] {@ConsoleName} warned %arg-player% due to ""%arg-2%"" ({@MaxWarns} / {@MaxWarns})." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                    set {_Q3} to {@Warn_Global}
                                    If {_Q3} is false:
                                        send "{@Logo} {@Warn_PLAYER_2} &7(&e{@MaxWarns} &7{@Warn_STATS} &e{@MaxWarns}&7)" to arg-player
                                    else:
                                        broadcast "{@Logo} {@Warn_BROADCAST_2} &7(&e{@MaxWarns} &7{@Warn_STATS} &e{@MaxWarns}&7)"
                                    message "{@Logo} {@Warn_MSG}"
                                make console execute command "/ban %arg-player% {@WarnBan} {@WarnBan_Reason}"
                                stop
                            else:
                                set {synced_.WARN.%arg-player's uuid%} to {synced_.WARN.%arg-player's uuid%}+1
                            If player's health is bigger or equal to 1:
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    log "%player% warned %arg-player% (%{synced_.UUID.%arg-player%}%) due to ""%arg-2%"" [%{synced_.WARN.%arg-player's uuid%}% {@Warn_STATS} {@MaxWarns}]." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    add "&6[%now%] %player% warned %arg-player% due to ""%arg-2%"" (%{synced_.WARN.%arg-player's uuid%}% / {@MaxWarns})." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                set {_Q3} to {@Warn_Global}
                                If {_Q3} is false:
                                    send "{@Logo} {@Warn_PLAYER} &7(&e%{synced_.WARN.%arg-player's uuid%}% &7{@Warn_STATS} &e{@MaxWarns}&7)" to arg-player
                                else:
                                    broadcast "{@Logo} {@Warn_BROADCAST} &7(&e%{synced_.WARN.%arg-player's uuid%}% &7{@Warn_STATS} &e{@MaxWarns}&7)"
                            else:
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    log "{@ConsoleName} warned %arg-player% (%{synced_.UUID.%arg-player%}%) due to ""%arg-2%"" [%{synced_.WARN.%arg-player's uuid%}% {@Warn_STATS} {@MaxWarns}]." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    add "&6[%now%] {@ConsoleName} warned %arg-player% due to ""%arg-2%"" (%{synced_.WARN.%arg-player's uuid%}% / {@MaxWarns})." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                set {_Q3} to {@Warn_Global}
                                If {_Q3} is false:
                                    send "{@Logo} {@Warn_PLAYER_2} &7(&e%{synced_.WARN.%arg-player's uuid%}% &7{@Warn_STATS} &e{@MaxWarns}&7)" to arg-player
                                else:
                                    broadcast "{@Logo} {@Warn_BROADCAST_2} &7(&e%{synced_.WARN.%arg-player's uuid%}% &7{@Warn_STATS} &e{@MaxWarns}&7)"
                            message "{@Logo} {@Warn_MSG}"

command /unwarn [<player>]:
    trigger:
        If player does not have permission "{@Permission.Unwarn}":
            message "{@Logo} {@NoPermission}"
        else:
            If arg 1 is not set:
                message "{@Logo} {@NoName}"
            else:
                If arg-player is player:
                    message "{@Logo} {@NoSelfWarn}"
                else:
                    If arg-player has permission "{@Permission.Bypass}":
                        message "{@Logo} {@CantUseCommand}"
                    else:
                        If {synced_.WARN.%arg-player's uuid%} is not set:
                            message "{@Logo} {@NoWarns}"
                        else:
                            If {synced_.WARN.%arg-player's uuid%} is 0:
                                message "{@Logo} {@NoWarns}"
                            else:
                                remove 1 from {synced_.WARN.%arg-player's uuid%}
                                set {_Q2} to {@Log}
                                If {_Q2} is true:
                                    If player's health is bigger or equal to 1:
                                        log "%player% unwarned %arg-player% (%{synced_.UUID.%arg-player%}%) [%{synced_.WARN.%arg-player's uuid%}% {@Warn_STATS} {@MaxWarns}]." to "{@FileName}"
                                    else:
                                        log "{@ConsoleName} unwarned %arg-player% (%{synced_.UUID.%arg-player%}%) [%{synced_.WARN.%arg-player's uuid%}% {@Warn_STATS} {@MaxWarns}]." to "{@FileName}"
                                set {_Q5} to {@HistorySave}
                                If {_Q5} is true:
                                    If player's health is bigger or equal to 1:
                                        add "&6[%now%] %player% unwarned %arg-player% (%{synced_.WARN.%arg-player's uuid%}% / {@MaxWarns})." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                    else:
                                        add "&6[%now%] {@ConsoleName} unwarned %arg-player% (%{synced_.WARN.%arg-player's uuid%}% / {@MaxWarns})." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                message "{@Logo} {@WarnRemoved}"

command /mute [<player>]:
    aliases: unmute
    trigger:
        If player does not have permission "{@Permission.Mute}":
            message "{@Logo} {@NoPermission}"
        else:
            If arg 1 is not set:
                message "{@Logo} {@NoName}"
            else:
                If arg-player is player:
                    message "{@Logo} {@NoSelfMute}"
                else:
                    If arg-player has permission "{@Permission.Bypass}":
                        message "{@Logo} {@CantUseCommand}"
                    else:
                        If {synced_.Mute::%arg-player%} is not set:
                            set {_Q2} to {@Log}
                            If {_Q2} is true:
                                If player's health is bigger or equal to 1:
                                    log "%player% muted %arg-player% (%{synced_.UUID.%arg-player%}%)." to "{@FileName}"
                                else:
                                    log "{@ConsoleName} muted %arg-player% (%{synced_.UUID.%arg-player%}%)." to "{@FileName}"
                            set {_Q5} to {@HistorySave}
                            If {_Q5} is true:
                                If player's health is bigger or equal to 1:
                                    add "&e[%now%] %player% muted %arg-player%." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                else:
                                    add "&e[%now%] {@ConsoleName} muted %arg-player%." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                            If player's health is bigger or equal to 1:
                                send "{@Logo} {@MutedPlayer_PLAYER}" to arg-player
                            else:
                                send "{@Logo} {@MutedPlayer_PLAYER_CONSOLE}" to arg-player
                            set {synced_.Mute::%arg-player%} to true
                            message "{@Logo} {@MutedPlayer_MSG}"
                            stop
                        If {synced_.Mute::%arg-player%} is true:
                            set {_Q2} to {@Log}
                            If {_Q2} is true:
                                If player's health is bigger or equal to 1:
                                    log "%player% unmuted %arg-player% (%{synced_.UUID.%arg-player%}%)." to "{@FileName}"
                                else:
                                    log "{@ConsoleName} unmuted %arg-player% (%{synced_.UUID.%arg-player%}%)." to "{@FileName}"
                            set {_Q5} to {@HistorySave}
                            If {_Q5} is true:
                                If player's health is bigger or equal to 1:
                                    add "&e[%now%] %player% unmuted %arg-player%." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                                else:
                                    add "&e[%now%] {@ConsoleName} unmuted %arg-player%." to {synced_.History.%{synced_.UUID.%arg-player%}%::*}
                            If player's health is bigger or equal to 1:
                                send "{@Logo} {@MutedPlayer_PLAYER_2}" to arg-player
                            else:
                                send "{@Logo} {@MutedPlayer_PLAYER_CONSOLE_2}" to arg-player
                            delete {synced_.Mute::%arg-player%}
                            message "{@Logo} {@MutedPlayer_MSG_2}"
 

HakanGuzelgulgen

Bir Stack
En iyi cevaplar
0
TexBan'ı Zaten Buldum Önceden Türkçeleştirme Yonunde Uğraştım Biraz Ama Becerememiştim O Yüzden Bu Komuyu Açma Gereği Duydum.
 
Üst