Lapzzo Posted July 30, 2021 Share Posted July 30, 2021 set {_pref} to formatted loop-player's prefix Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 1 minute ago, LapEvents said: set {_pref} to formatted loop-player's prefix It wont work with hex codes Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Works but not with hex codes Link to comment Share on other sites More sharing options...
Lapzzo Posted July 30, 2021 Share Posted July 30, 2021 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: set {_pref} to formatted loop-player's prefix 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 player's prefix set line 9 of loop-player's scoreboard to " &4&lRank&c: "%f{_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" wait 5 seconds Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 1 minute ago, LapEvents said: 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: set {_pref} to formatted loop-player's prefix 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 player's prefix set line 9 of loop-player's scoreboard to " &4&lRank&c: "%f{_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" wait 5 seconds Dosent work Link to comment Share on other sites More sharing options...
Lapzzo Posted July 30, 2021 Share Posted July 30, 2021 I am not sure about hex codes, but im 100% sure stuff like &c for Hi will work. If you need it: Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 1 minute ago, LapEvents said: I am not sure about hex codes, but im 100% sure stuff like &c for Hi will work. If you need it: Well tysm now the only issue is hex codes! Again thanks for helping!! Link to comment Share on other sites More sharing options...
Lapzzo Posted July 30, 2021 Share Posted July 30, 2021 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: set {_pref} to formatted loop-player's prefix 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 line 9 of loop-player's scoreboard to " &4&lRank&c: "%f{_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" wait 5 seconds Link to comment Share on other sites More sharing options...
Lapzzo Posted July 30, 2021 Share Posted July 30, 2021 Just now, nolando09 said: Well tysm now the only issue is hex codes! Again thanks for helping!! Im not sure if I helped but if I did, np Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Im just desperate to get hex codes to work XD 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: Im just desperate to get hex codes to work XD I just saw in the screen that you're using hexcodes that won't work with skript. Skript only reads hexcodes like this <##123456> 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 3 minutes ago, StarBunnie said: I just saw in the screen that you're using hexcodes that won't work with skript. Skript only reads hexcodes like this <##123456> But if i use <##123456> it doesnt work in luckperms Link to comment Share on other sites More sharing options...
StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 Just now, nolando09 said: But if i use <##123456> it doesnt work in luckperms hmm I have an idea we already set {_pref} to player's prefix so maybe we can try something like the following set {_pref} to player's prefix replace "&" in {_pref} with "##" set {_pref} to formatted {_pref} 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 Just now, StarBunnie said: hmm I have an idea we already set {_pref} to player's prefix so maybe we can try something like the following set {_pref} to player's prefix replace "&" in {_pref} with "##" set {_pref} to formatted {_pref} Ok ill try hold on Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Ok i tried it got me to here BUT the hex codes arent surrounded by <> Link to comment Share on other sites More sharing options...
StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 32 minutes ago, nolando09 said: Ok i tried it got me to here BUT the hex codes arent surrounded by <> Alright slapped something together 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} set {_pref} to formatted convHex(player's prefix) 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 1 minute ago, StarBunnie said: Alright slapped something together 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} set {_pref} to formatted convHex(player's prefix) Ok thanks ill try it Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Ok i tried it got rid off all indetion errors BUT there are 6 errors idk how to fix Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 And here is what i did 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:" 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} set {_pref} to formatted convHex(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" Link to comment Share on other sites More sharing options...
StarBunnie Posted July 30, 2021 Share Posted July 30, 2021 14 minutes ago, nolando09 said: And here is what i did 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:" 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} set {_pref} to formatted convHex(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" You can't just add the function into the scoreboard code xD Let it stand alone there are no indent errors the only line you need to use in your scoreboard itself is set {_pref} to formatted convHex(loop-player's prefix) A function stands alone so just copy it above you're scoreboard skript 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 1 minute ago, StarBunnie said: You can't just add the function into the scoreboard code xD Let it stand alone there are no indent errors the only line you need to use in your scoreboard itself is set {_pref} to formatted convHex(loop-player's prefix) A function stands alone so just copy it above you're scoreboard skript xD so sorry Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Like this xD?? 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} set {_pref} to formatted convHex(player's prefix) 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 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" 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: Like this xD?? 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} set {_pref} to formatted convHex(player's prefix) 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 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" That line was just an example on how to use it you can leave that out just write it below into your actual scoreboard skript but remember to use loop-player 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 1 minute ago, StarBunnie said: That line was just an example on how to use it you can leave that out just write it below into your actual scoreboard skript but remember to use loop-player Ok Tysm Link to comment Share on other sites More sharing options...
Ramina__ Posted July 30, 2021 Author Share Posted July 30, 2021 Im so sorry im very dumb but do i leave (player's prefix) in? 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