Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Script Tablistyml created by Edgarsz
- on load:
- execute console command "scoreboard objectives add pkt dummy &7pkt"
- execute console command "scoreboard objectives setdisplay belowName pkt"
- send "[Szymon] Pomyslnie zaladowanie" to the console
- send "[Szymon] Cos tam cos tam" to the console
- loop all players:
- execute console command "scoreboard players set %loop-player% pkt 1000"
- on unload:
- execute console command "scoreboard objectives remove pkt"
- 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:
- (...)
Advertisement
Add Comment
Please, Sign In to add comment