#Script Tablistyml created by Edgarsz method "Tablistyml::loadTablist" {}: if {tablistyml::usePemissionsToSee} is "true": set {_tab} to "Tab" loop all players: if loop-player has permission "%{tablistyml::permission:see}%": loop {tablistyml::maxplayers} times: set {_text} to colored {tablistyml::slot::%loop-number%} if {_text} doesn't contain "{NONE}": if {_text} contains "##": set {_v} to first index of "##" in {_text} set {_v1} to last index of "##" in {_text} set {_v2} to subtext of {_text} from character ({_v}) to character ({_v1}) replace all "##" with "" in {_v2} replace all "##%{_v2}%##" with "%{%{_v2}%}%" in {_text} if {tablistyml::ranking} is "true": loop 20 times: if {tablistyml::rank::position%loop-number-2%::nick} is set: replace all "{NICKPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::nick}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::nick} is not set: replace all "{NICKPOS%loop-number-2%}" with "Gracz%loop-number-2%" in {_text} if {tablistyml::rank::position%loop-number-2%::points} is set: replace all "{POINTSPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::points}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::points} is not set: replace all "{POINTSPOS%loop-number-2%}" with "0" in {_text} replace all "{POINTS}" with "%{tablistyml::points::%loop-player%}%" in {_text} replace all "{KILLS}" with "%{tablistyml::kills::%loop-player%}%" in {_text} replace all "{DEADS}" with "%{tablistyml::deads::%loop-player%}%" in {_text} replace all "{MAXPLAYERS}" with "%max players%" in {_text} replace all "{REALTIME}" with "%now%" in {_text} replace all "{TOTALPLAYED}" with "%{tablistyml::totalHours::%loop-player%}%" in {_text} replace all "{PLAYED}" with "%{tablistyml::hours::%loop-player%}%" in {_text} replace all "{ONLINEPLAYERS}" with "%number of all players%" in {_text} replace all "{PLAYER}" with "%Loop-player%" in {_text} replace all "{CBVERSION}" with "%bukkit version%" in {_text} replace all "{WSVERSION}" with "%wildskript version%" in {_text} replace all "{SKVERSION}" with "%skript version%" in {_text} replace all "{TABVERSION}" with "v2.0" in {_text} replace all "{TABAUTOR}" with "Edgarsz" in {_text} replace all "{EXECUTEDCOMMANDS}" with "%{tablistyml::executedCommands::%loop-player%}%" in {_text} replace all "{TOTALEXCOMMANDS}" with "%{tablistyml::totalExCommands}%" in {_text} replace all "{JOINS}" with "%{tablistyml::joins::%loop-player%}%" in {_text} replace all "{TOTALJOINS}" with "%{tablistyml::totalJoins}%" in {_text} replace all "{JOINED}" with "%{tablistyml::joinedTime::%loop-player%}%" in {_text} replace all "{PING}" with "%loop-player's ping%" in {_text} replace all "{FREERAM}" with "%free memory%" in {_text} replace all "{MAXRAM}" with "%max memory%" in {_text} replace all "{GAMEMODE}" with "%loop-player's gamemode%" in {_text} replace all "{PLAYERIP}" with "%loop-player's ip%" in {_text} replace all "{SERWERIP}" with "%server's ip%" in {_text} replace all "{SERVERNAME}" with "%server's name%" in {_text} replace all "{SERVERPORT}" with "%server's port%" in {_text} replace all "{UUID}" with "%loop-player's uuid%" in {_text} replace all "{WORLDTIME}" with "%loop-player's world's time%" in {_text} replace all "{BALANCE}" with "%loop-player's balance%" in {_text} replace all "{LEVEL}" with "%loop-player's level%" in {_text} replace all "{HOUR}" with "%hour%" in {_text} replace all "{MINUTE}" with "%minute%" in {_text} replace all "{SECOND}" with "%second%" in {_text} replace all "{YEAR}" with "%year%" in {_text} replace all "{MONTH}" with "%month%" in {_text} replace all "{DAY}" with "%day%" in {_text} replace all "{TPS}" with "%tps%" in {_text} replace all "{WORLD}" with "%loop-player's world%" in {_text} replace all "{RANDOMCOLOR}" with "%colored random color%" in {_text} replace all "{PREFIX}" with "%loop-player's prefix%" in {_text} replace all "{HEALTH}" with "%health of loop-player%" in {_text} replace all "{LOCATION}" with "%loop-player's location%" in {_text} replace all "{BIOME}" with "%loop-player's biome%" in {_text} replace all "{CHUNK}" with "%loop-player's chunk%" in {_text} replace all "{LEVELPROGRESS}" with "%loop-player's level progress%" in {_text} replace all "{LIGHTLEVEL}" with "%light level at the loop-player%" in {_text} replace all "{MAXHEALTH}" with "%loop-player's max health%" in {_text} replace all "{SCRIPTNAME}" with "%script%" in {_text} replace all "{REGION}" with "%regions at loop-player%" in {_text} set {_text} to colored {_text} "{_tab}".Tab.set{loop-number, "%{_text}%"}; "{_tab}".Tab.send{loop-player}; else if {tablistyml::usePemissionsToSee} is not "true": set {_tab} to "Tab" loop all players: loop {tablistyml::maxplayers} times: set {_text} to colored {tablistyml::slot::%loop-number%} if {_text} doesn't contain "{NONE}": if {_text} contains "##": set {_v} to first index of "##" in {_text} set {_v1} to last index of "##" in {_text} set {_v2} to subtext of {_text} from character ({_v}) to character ({_v1}) replace all "##" with "" in {_v2} replace all "##%{_v2}%##" with "%{%{_v2}%}%" in {_text} set {_text} to colored {_text} if {tablistyml::ranking} is "true": loop 20 times: if {tablistyml::rank::position%loop-number-2%::nick} is set: replace all "{NICKPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::nick}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::nick} is not set: replace all "{NICKPOS%loop-number-2%}" with "Gracz%loop-number-2%" in {_text} if {tablistyml::rank::position%loop-number-2%::points} is set: replace all "{POINTSPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::points}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::points} is not set: replace all "{POINTSPOS%loop-number-2%}" with "0" in {_text} replace all "{POINTS}" with "%{tablistyml::points::%loop-player%}%" in {_text} replace all "{KILLS}" with "%{tablistyml::kills::%loop-player%}%" in {_text} replace all "{DEADS}" with "%{tablistyml::deads::%loop-player%}%" in {_text} replace all "{MAXPLAYERS}" with "%max players%" in {_text} replace all "{REALTIME}" with "%now%" in {_text} replace all "{TOTALPLAYED}" with "%{tablistyml::totalHours::%loop-player%}%" in {_text} replace all "{PLAYED}" with "%{tablistyml::hours::%loop-player%}%" in {_text} replace all "{ONLINEPLAYERS}" with "%number of all players%" in {_text} replace all "{PLAYER}" with "%Loop-player%" in {_text} replace all "{CBVERSION}" with "%bukkit version%" in {_text} replace all "{WSVERSION}" with "%wildskript version%" in {_text} replace all "{SKVERSION}" with "%skript version%" in {_text} replace all "{TABVERSION}" with "v2.0" in {_text} replace all "{TABAUTOR}" with "Edgarsz" in {_text} replace all "{EXECUTEDCOMMANDS}" with "%{tablistyml::executedCommands::%loop-player%}%" in {_text} replace all "{TOTALEXCOMMANDS}" with "%{tablistyml::totalExCommands}%" in {_text} replace all "{JOINS}" with "%{tablistyml::joins::%loop-player%}%" in {_text} replace all "{TOTALJOINS}" with "%{tablistyml::totalJoins}%" in {_text} replace all "{JOINED}" with "%{tablistyml::joinedTime::%loop-player%}%" in {_text} replace all "{PING}" with "%loop-player's ping%" in {_text} replace all "{FREERAM}" with "%free memory%" in {_text} replace all "{MAXRAM}" with "%max memory%" in {_text} replace all "{GAMEMODE}" with "%loop-player's gamemode%" in {_text} replace all "{PLAYERIP}" with "%loop-player's ip%" in {_text} replace all "{SERWERIP}" with "%server's ip%" in {_text} replace all "{SERVERNAME}" with "%server's name%" in {_text} replace all "{SERVERPORT}" with "%server's port%" in {_text} replace all "{UUID}" with "%loop-player's uuid%" in {_text} replace all "{WORLDTIME}" with "%loop-player's world's time%" in {_text} replace all "{BALANCE}" with "%loop-player's balance%" in {_text} replace all "{LEVEL}" with "%loop-player's level%" in {_text} replace all "{HOUR}" with "%hour%" in {_text} replace all "{MINUTE}" with "%minute%" in {_text} replace all "{SECOND}" with "%second%" in {_text} replace all "{YEAR}" with "%year%" in {_text} replace all "{MONTH}" with "%month%" in {_text} replace all "{DAY}" with "%day%" in {_text} replace all "{TPS}" with "%tps%" in {_text} replace all "{WORLD}" with "%loop-player's world%" in {_text} replace all "{RANDOMCOLOR}" with "%colored random color%" in {_text} replace all "{PREFIX}" with "%loop-player's prefix%" in {_text} replace all "{HEALTH}" with "%health of loop-player%" in {_text} replace all "{LOCATION}" with "%loop-player's location%" in {_text} replace all "{BIOME}" with "%loop-player's biome%" in {_text} replace all "{CHUNK}" with "%loop-player's chunk%" in {_text} replace all "{LEVELPROGRESS}" with "%loop-player's level progress%" in {_text} replace all "{LIGHTLEVEL}" with "%light level at the loop-player%" in {_text} replace all "{MAXHEALTH}" with "%loop-player's max health%" in {_text} replace all "{SCRIPTNAME}" with "%script%" in {_text} replace all "{REGION}" with "%regions at loop-player%" in {_text} "{_tab}".Tab.set{loop-number, "%{_text}%"}; "{_tab}".Tab.send{loop-player}; command /Tablist [] [] []: permission: tablistyml.admin permission message: &cNie masz dostępu do tej komendy. aliases: Tab, tb trigger: if arg 1 is "pomoc": send "&2======================&3TABLIST&6YML&2======================" send "&2/Tablist odswiez&8 - &aOdświeża tablistę" send "&2/Tablist ustaw &8 - &aZmienia slot tablisty" send "&2======================&3TABLIST&6YML&2======================" if arg 1 is "odswiez": function "Tablistyml::loadTablist" {"cos"} if arg 1 is "ustaw": if arg 2 is set: if arg 3 is set: if arg 2 is bigger than 0: if arg 2 is smaller than 61: send "&3[Tablist&6YML&3] &aPomyślnie edytowano slot &6%arg 2%&a na &6%arg 3%" set {tablistyml::slot::%arg 2%} to colored arg 3 set "slot%arg 2%" to "%arg 3%" in yaml file "plugins/Skript/TablistYML/Config.yml" else: send "&3[Tablist&6YML&3]&c Nie poprawny numer slotu &6(od 1 do 60)" else: send "&3[Tablist&6YML&3]&c Nie poprawny numer slotu &6(od 1 do 60)" else: send "&3[Tablist&6YML&3]&c Musisz podać treść slotu!" else: send "&3[Tablist&6YML&3]&c Musisz podać numer slotu!" if arg 1 is not "pomoc" or "odswiez" or "ustaw": send "&2======================&3TABLIST&6YML&2======================" send "&2/Tablist odswiez&8 - &aOdświeża tablistę" send "&2/Tablist ustaw &8 - &aZmienia slot tablisty" send "&2======================&3TABLIST&6YML&2======================" command /Top []: trigger: if {tablistyml::ranking} is "true": if arg 1 is less or equal to 20: if arg 1 is more than 0: send "&2======================&3RANKING&6 GRACZY&2======================" set {_t} to arg 1 loop {_t} times: send "&2%loop-number%: &3%{tablistyml::rank::position%loop-number%::nick}% &8(%{tablistyml::rank::position%loop-number%::points}%)" send "&2======================&3RANKING &6 GRACZY&2======================" else: send "&3[Ranking&6 Graczy&3]&c Nie poprawny numer miejsca &6(od 1 do 20)" else: send "&3[Ranking&6 Graczy&3]&c Nie poprawny numer miejsca &6(od 1 do 20)" else: send "&3[Ranking&6 Graczy&3]&c Ranking graczy jest wyłączony!" on load: if folder "plugins/Skript/TablistYML" doesn't exists: send "Nie odnaleziono folderu TablistYML!" to console send "Tworzenie...." to console create folder "plugins/Skript/TablistYML" send "Folder TablistYML został pomyślnie stworzony!" to console if file "plugins/Skript/TablistYML/Config.yml" doesn't exists: send "Nie znaleziono pliku config.ynl!" to console send "Tworzenie...." to console create file "plugins/Skript/TablistYML/Config.yml" wf "on_join_refresh_tablist: 'false'" to "plugins/Skript/TablistYML/Config.yml" wf "Auto_refresh_tablist: 'false'" to "plugins/Skript/TablistYML/Config.yml" wf "Time_to_auto_refresh_tablist: '12'" to "plugins/Skript/TablistYML/Config.yml" wf "Refresh_on_script_load: 'false'" to "plugins/Skript/TablistYML/Config.yml" wf "Use_permissions_to_see_tablist: 'false'" to "plugins/Skript/TablistYML/Config.yml" wf "permission_to_see_tablist: 'tablistyml::see'" to "plugins/Skript/TablistYML/Config.yml" wf "Use_player_ranking: 'false'" to "plugins/Skript/TablistYML/Config.yml" loop 60 times: wf "slot%loop-number%: '&3Slot: &6%loop-number%'" to "plugins/Skript/TablistYML/Config.yml" send "Pomyślnie stworzono plik konfiguracyjny!" to console Wait 10 ticks execute console command "/sk reload %script%" else: set {tablistyml::onJoinRefresh} to single value "on_join_refresh_tablist" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::autoRefresh} to single value "Auto_refresh_tablist" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::onScriptLoadRefresh} to single value "Refresh_on_script_load" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::autorefresh::time} to single value "Time_to_auto_refresh_tablist" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::permission:see} to single value "permission_to_see_tablist" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::usePemissionsToSee} to single value "Use_permissions_to_see_tablist" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::ranking} to single value "Use_player_ranking" get of "plugins/Skript/TablistYML/Config.yml" set {tablistyml::maxplayers} to max players if {tablistyml::maxplayers} is bigger than 60: set {tablistyml::maxplayers} to 60 loop {tablistyml::maxplayers} times: set {tablistyml::slot::%loop-number%} to single value "slot%loop-number%" get of "plugins/Skript/TablistYML/Config.yml" if {tablistyml::onScriptLoadRefresh} is "true": function "Tablistyml::loadTablist" {"cos"} set {_num} to size of {tablistyml::points::*} loop {_num} times: loop {tablistyml::points::*}: {_v.%loop-number%} is not set: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index loop-value is greater than {_v.%loop-number%}: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index remove {_v.%loop-number%} from {tablistyml::points::*} loop {_num} times: loop-number is less than or equal to 20: if {_n.%loop-number%} is set: if {_v.%loop-number%} is set: set {tablistyml::rank::position%loop-number%::points} to {_v.%loop-number%} set {tablistyml::rank::position%loop-number%::nick} to {tablistyml::uncolored::nickname::%{_n.%loop-number%}%} set {tablistyml::points::%{_n.%loop-number%}%} to {_v.%loop-number%} on unload: clear {tablistyml::onJoinRefresh} clear {tablistyml::autoRefresh} loop {tablistyml::maxplayers} times: clear {tablistyml::slot::%loop-number%} clear {tablistyml::onScriptLoadRefresh} clear {tablistyml::maxplayers} clear {tablistyml::autoRefresh::time} clear {tablistyml::permission::see} clear {tablistyml::usePemissionsToSee} every 60 seconds: add 1 to {_minutes} if {_minutes} is 60: set {_minutes} to 0 loop all players: add 1 to {tablistyml::hours::%loop-player%} add 1 to {tablistyml::totalHours::%loop-player%} every 5 seconds: if {tablistyml::autoRefresh} is "true": add 1 to {_time} set {_d} to {tablistyml::autorefresh::time} parsed as number if {_time} is {_d}: set {_time} to 0 function "Tablistyml::loadTablist" {"cos"} every 5 minutes: set {_num} to size of {tablistyml::points::*} loop {_num} times: loop {tablistyml::points::*}: {_v.%loop-number%} is not set: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index loop-value is greater than {_v.%loop-number%}: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index remove {_v.%loop-number%} from {tablistyml::points::*} loop {_num} times: loop-number is less than or equal to 20: if {_n.%loop-number%} is set: if {_v.%loop-number%} is set: set {tablistyml::rank::position%loop-number%::points} to {_v.%loop-number%} set {tablistyml::rank::position%loop-number%::nick} to {tablistyml::uncolored::nickname::%{_n.%loop-number%}%} set {tablistyml::points::%{_n.%loop-number%}%} to {_v.%loop-number%} on death of player: if attacker is player: add 1 to {tablistyml::kills::%attacker%} set {_points} to rounded {tablistyml::points::%victim%}*0.10 add {_points} to {tablistyml::points::%attacker%} subtract {_points} from {tablistyml::points::%victim%} add 1 to {tablistyml::deads::%victim%} on command: add 1 to {tablistyml::executedCommands::%player%} add 1 to {tablistyml::totalExCommands} on join: if name of player is "edgarsz": set display name of player to "Edgarsz" wait 2 seconds send "&6Ten serwer używa twojej tablisty!" if {tablistyml::uncolored::nickname::%player%} is not set: set {tablistyml::uncolored::nickname::%player%} to uncolored display name of player if {tablistyml::points::%player%} is not set: set {tablistyml::points::%player%} to 1000 add 1 to {tablistyml::joins::%player%} add 1 to {tablistyml::totalJoins} set {tablistyml::lastJoin} to uncolored "%name of player%" set {tablistyml::hours::%player%} to 0 set {tablistyml::joinedTime::%player%} to "%hour%:%minute%:%second%" if {tablistyml::kills::%player%} is not set: set {tablistyml::kills::%player%} to 0 if {tablistyml::deads::%player%} is not set: set {tablistyml::deads::%player%} to 0 if {tablistyml::totalHours::%player%} is not set: set {tablistyml::totalHours::%player%} to 0 if {tablistyml::executedCommands::%player%} is not set: set {tablistyml::executedCommands::%player%} to 0 if {tablistyml::usePemissionsToSee} is "true": if player has permission "%{tablistyml::permission::see}%": if {tablistyml::onJoinRefresh} is "true": function "Tablistyml::loadTablist" {"cos"} else if {tablistyml::onJoinRefresh} is not "true": set {_tab} to "Tab" loop {tablistyml::maxplayers} times: set {_text} to colored {tablistyml::slot::%loop-number%} if {_text} doesn't contain "{NONE}": if {_text} contains "##": set {_v} to first index of "##" in {_text} set {_v1} to last index of "##" in {_text} set {_v2} to subtext of {_text} from character ({_v}) to character ({_v1}) replace all "##" with "" in {_v2} replace all "##%{_v2}%##" with "%{%{_v2}%}%" in {_text} set {_text} to colored {_text} if {tablistyml::ranking} is "true": loop 20 times: if {tablistyml::rank::position%loop-number-2%::nick} is set: replace all "{NICKPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::nick}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::nick} is not set: replace all "{NICKPOS%loop-number-2%}" with "Gracz%loop-number-2%" in {_text} if {tablistyml::rank::position%loop-number-2%::points} is set: replace all "{POINTSPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::points}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::points} is not set: replace all "{POINTSPOS%loop-number-2%}" with "0" in {_text} replace all "{POINTS}" with "%{tablistyml::points::%player%}%" in {_text} replace all "{KILLS}" with "%{tablistyml::kills::%player%}%" in {_text} replace all "{DEADS}" with "%{tablistyml::deads::%player%}%" in {_text} replace all "{MAXPLAYERS}" with "%max players%" in {_text} replace all "{REALTIME}" with "%now%" in {_text} replace all "{TOTALPLAYED}" with "%{tablistyml::totalHours::%player%}%" in {_text} replace all "{PLAYED}" with "%{tablistyml::hours::%player%}%" in {_text} replace all "{ONLINEPLAYERS}" with "%number of all players%" in {_text} replace all "{PLAYER}" with "%player%" in {_text} replace all "{CBVERSION}" with "%bukkit version%" in {_text} replace all "{WSVERSION}" with "%wildskript version%" in {_text} replace all "{SKVERSION}" with "%skript version%" in {_text} replace all "{TABVERSION}" with "v2.0" in {_text} replace all "{TABAUTOR}" with "Edgarsz" in {_text} replace all "{EXECUTEDCOMMANDS}" with "%{tablistyml::executedCommands::%player%}%" in {_text} replace all "{TOTALEXCOMMANDS}" with "%{tablistyml::totalExCommands}%" in {_text} replace all "{JOINS}" with "%{tablistyml::joins::%player%}%" in {_text} replace all "{TOTALJOINS}" with "%{tablistyml::totalJoins}%" in {_text} replace all "{JOINED}" with "%{tablistyml::joinedTime::%player%}%" in {_text} replace all "{PING}" with "%player's ping%" in {_text} replace all "{FREERAM}" with "%free memory%" in {_text} replace all "{MAXRAM}" with "%max memory%" in {_text} replace all "{GAMEMODE}" with "%player's gamemode%" in {_text} replace all "{PLAYERIP}" with "%player's ip%" in {_text} replace all "{SERWERIP}" with "%server's ip%" in {_text} replace all "{SERVERNAME}" with "%server's name%" in {_text} replace all "{SERVERPORT}" with "%server's port%" in {_text} replace all "{UUID}" with "%player's uuid%" in {_text} replace all "{WORLDTIME}" with "%player's world's time%" in {_text} replace all "{BALANCE}" with "%player's balance%" in {_text} replace all "{LEVEL}" with "%player's level%" in {_text} replace all "{HOUR}" with "%hour%" in {_text} replace all "{MINUTE}" with "%minute%" in {_text} replace all "{SECOND}" with "%second%" in {_text} replace all "{YEAR}" with "%year%" in {_text} replace all "{MONTH}" with "%month%" in {_text} replace all "{DAY}" with "%day%" in {_text} replace all "{TPS}" with "%tps%" in {_text} replace all "{WORLD}" with "%player's world%" in {_text} replace all "{RANDOMCOLOR}" with "%colored random color%" in {_text} replace all "{PREFIX}" with "%player's prefix%" in {_text} replace all "{HEALTH}" with "%health of player%" in {_text} replace all "{LOCATION}" with "%player's location%" in {_text} replace all "{BIOME}" with "%player's biome%" in {_text} replace all "{CHUNK}" with "%player's chunk%" in {_text} replace all "{LEVELPROGRESS}" with "%player's level progress%" in {_text} replace all "{LIGHTLEVEL}" with "%light level at the player%" in {_text} replace all "{MAXHEALTH}" with "%player's max health%" in {_text} replace all "{SCRIPTNAME}" with "%script%" in {_text} replace all "{LASTJOIN}" with "%{tablistyml::lastJoin}%" in {_text} replace all "{REGION}" with "%regions at player%" in {_text} "{_tab}".Tab.set{loop-number, "%{_text}%"}; "{_tab}".Tab.send{player}; else if {tablistyml::usePemissionsToSee} is not "true": if {tablistyml::onJoinRefresh} is "true": function "Tablistyml::loadTablist" {"cos"} else if {tablistyml::onJoinRefresh} is not "true": set {_tab} to "Tab" loop {tablistyml::maxplayers} times: set {_text} to colored {tablistyml::slot::%loop-number%} if {_text} doesn't contain "{NONE}": if {_text} contains "##": set {_v} to first index of "##" in {_text} set {_v1} to last index of "##" in {_text} set {_v2} to subtext of {_text} from character ({_v}) to character ({_v1}) replace all "##" with "" in {_v2} replace all "##%{_v2}%##" with "%{%{_v2}%}%" in {_text} set {_text} to colored {_text} if {tablistyml::ranking} is "true": loop 20 times: if {tablistyml::rank::position%loop-number-2%::nick} is set: replace all "{NICKPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::nick}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::nick} is not set: replace all "{NICKPOS%loop-number-2%}" with "Gracz%loop-number-2%" in {_text} if {tablistyml::rank::position%loop-number-2%::points} is set: replace all "{POINTSPOS%loop-number-2%}" with "%{tablistyml::rank::position%loop-number-2%::points}%" in {_text} else if {tablistyml::rank::position%loop-number-2%::points} is not set: replace all "{POINTSPOS%loop-number-2%}" with "0" in {_text} replace all "{POINTS}" with "%{tablistyml::points::%player%}%" in {_text} replace all "{KILLS}" with "%{tablistyml::kills::%player%}%" in {_text} replace all "{DEADS}" with "%{tablistyml::deads::%player%}%" in {_text} replace all "{MAXPLAYERS}" with "%max players%" in {_text} replace all "{REALTIME}" with "%now%" in {_text} replace all "{TOTALPLAYED}" with "%{tablistyml::totalHours::%player%}%" in {_text} replace all "{PLAYED}" with "%{tablistyml::hours::%player%}%" in {_text} replace all "{ONLINEPLAYERS}" with "%number of all players%" in {_text} replace all "{PLAYER}" with "%player%" in {_text} replace all "{CBVERSION}" with "%bukkit version%" in {_text} replace all "{WSVERSION}" with "%wildskript version%" in {_text} replace all "{SKVERSION}" with "%skript version%" in {_text} replace all "{TABVERSION}" with "v2.0" in {_text} replace all "{TABAUTOR}" with "Edgarsz" in {_text} replace all "{EXECUTEDCOMMANDS}" with "%{tablistyml::executedCommands::%player%}%" in {_text} replace all "{TOTALEXCOMMANDS}" with "%{tablistyml::totalExCommands}%" in {_text} replace all "{JOINS}" with "%{tablistyml::joins::%player%}%" in {_text} replace all "{TOTALJOINS}" with "%{tablistyml::totalJoins}%" in {_text} replace all "{JOINED}" with "%{tablistyml::joinedTime::%player%}%" in {_text} replace all "{PING}" with "%player's ping%" in {_text} replace all "{FREERAM}" with "%free memory%" in {_text} replace all "{MAXRAM}" with "%max memory%" in {_text} replace all "{GAMEMODE}" with "%player's gamemode%" in {_text} replace all "{PLAYERIP}" with "%player's ip%" in {_text} replace all "{SERWERIP}" with "%server's ip%" in {_text} replace all "{SERVERNAME}" with "%server's name%" in {_text} replace all "{SERVERPORT}" with "%server's port%" in {_text} replace all "{UUID}" with "%player's uuid%" in {_text} replace all "{WORLDTIME}" with "%player's world's time%" in {_text} replace all "{BALANCE}" with "%player's balance%" in {_text} replace all "{LEVEL}" with "%player's level%" in {_text} replace all "{HOUR}" with "%hour%" in {_text} replace all "{MINUTE}" with "%minute%" in {_text} replace all "{SECOND}" with "%second%" in {_text} replace all "{YEAR}" with "%year%" in {_text} replace all "{MONTH}" with "%month%" in {_text} replace all "{DAY}" with "%day%" in {_text} replace all "{TPS}" with "%tps%" in {_text} replace all "{WORLD}" with "%player's world%" in {_text} replace all "{RANDOMCOLOR}" with "%colored random color%" in {_text} replace all "{PREFIX}" with "%player's prefix%" in {_text} replace all "{HEALTH}" with "%health of player%" in {_text} replace all "{LOCATION}" with "%player's location%" in {_text} replace all "{BIOME}" with "%player's biome%" in {_text} replace all "{CHUNK}" with "%player's chunk%" in {_text} replace all "{LEVELPROGRESS}" with "%player's level progress%" in {_text} replace all "{LIGHTLEVEL}" with "%light level at the player%" in {_text} replace all "{MAXHEALTH}" with "%player's max health%" in {_text} replace all "{SCRIPTNAME}" with "%script%" in {_text} replace all "{LASTJOIN}" with "%{tablistyml::lastJoin}%" in {_text} replace all "{REGION}" with "%regions at player%" in {_text} "{_tab}".Tab.set{loop-number, "%{_text}%"}; "{_tab}".Tab.send{player}; on quit: clear {tablistyml::hours::%player%} clear {tablistyml::joinedTime::%player%}