StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 9 minutes ago, nolando09 said: Im so sorry im very dumb but do i leave (player's prefix) in? function convHex(t: text) :: text: set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t} on join: clear player's scoreboard erase player's sidebar on script load: loop all players: clear loop-player's scoreboard erase loop-player's sidebar every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg" Just use this it should work Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 8 minutes ago, StarBunnie said: function convHex(t: text) :: text: set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t} on join: clear player's scoreboard erase player's sidebar on script load: loop all players: clear loop-player's scoreboard erase loop-player's sidebar every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg" Just use this it should work Im so sorry and thanks Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 IM sorry it works but now anything not a hex code wont worrrk xD just tell me if you don't want to idm, I don't wanna waste ur time! Link to comment Share on other sites More sharing options...
StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 2 minutes ago, nolando09 said: IM sorry it works but now anything not a hex code wont worrrk xD just tell me if you don't want to idm, I don't wanna waste ur time! What does it look like it works fine on my server Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Hold on Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Without hex code Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 with hex code Link to comment Share on other sites More sharing options...
StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 1 minute ago, nolando09 said: with hex code Ah now I understand the issue lol every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to loop-player's prefix if {_pref} contains "&##": set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg" Give that a shot Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Ok i tried but now when i use hex codes Link to comment Share on other sites More sharing options...
StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 1 hour ago, nolando09 said: Ok i tried but now when i use hex codes Uh use this one instead of the other function function convHex(t: text) :: text: if {_t} contains "&##": set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t} every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg" 1 Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 16 minutes ago, StarBunnie said: Uh use this one instead of the other function function convHex(t: text) :: text: if {_t} contains "&##": set {_t2::*} to {_t} split at "&##" set {_t} to "" delete {_t2::1} loop {_t2::*}: set {_word} to loop-value set {_char} to first 6 characters of {_word} replace {_char} in {_word} with "" set {_t} to "%{_t}%<##%{_char}%>%{_word}%" return {_t} every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "&4&lVelvetSurv" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&4&lRank&c:" set {_pref} to formatted convHex(loop-player's prefix) set line 9 of loop-player's scoreboard to " &4&lRank&c: %{_pref}%" set line 8 of loop-player's scoreboard to " &4&lPing&c: &c%loop-player's ping%ms" set line 6 of loop-player's scoreboard to "&b" set line 5 of loop-player's scoreboard to "&b&lInformations" set line 4 of loop-player's scoreboard to " &4&lTPS&c: &c%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &4&lOnline&c: &c%number of all players%&8/&c%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "&4&lVelvetsurv.minehut.gg" Ok it woks thanks SO MUCH!!!!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now