Skray Posted May 15, 2021 Share Posted May 15, 2021 I need help with my scoreboard, I need it to show the players prefix, but idk what the variable for prefix/group is. (I am using Permission Ex and Vault.) Is it like %{players prefix}%? Link to comment Share on other sites More sharing options...
TheSckwadbros999 Posted May 15, 2021 Share Posted May 15, 2021 I use luckperms but for me its %player's prefix% or if your doing loop (looping scoreboards are the best they update every 3 seconds) For loop is will be %loop-player's prefix% Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 (edited) Im just going to make a little list that you can use! # VAULT VERS # %player's group% # %player's prefix% # %player's suffix% # %player's displayname% ( And more! ) (REQUIRES VAULT) Edited May 15, 2021 by Invislol Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 1 minute ago, TheSckwadbros999 said: I use luckperms but for me its %player's prefix% or if your doing loop (looping scoreboards are the best they update every 3 seconds) For loop is will be %loop-player's prefix% Lol we responded at the same time Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Skray Posted May 15, 2021 Author Share Posted May 15, 2021 1 hour ago, Invislol said: Im just going to make a little list that you can use! # VAULT VERS # %player's group% # %player's prefix% # %player's suffix% # %player's displayname% ( And more! ) (REQUIRES VAULT) How to use it in here, it dosn't work set line 4 of player's scoreboard to "&4Rank: &f %player's prefix% " Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 Just now, Skray said: How to use it in here, it dosn't work set line 4 of player's scoreboard to "&4Rank: &f %player's prefix% " Use set line 4 of player's scoreboard to "&4Rank: &f %loop-player's prefix% " Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 Hope that helps, Have a good day! Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Skray Posted May 15, 2021 Author Share Posted May 15, 2021 1 minute ago, Invislol said: Hope that helps, Have a good day! It did not work. Here is my scoreboard: function updateBoard(p: player): set {_uuid} to {_p}'s uuid set line 4 of player's scoreboard to "&4Rank: &f %player's prefix% " set line 3 of {_p}'s scoreboard to "&4Name: &f%{_p}%" set line 2 of {_p}'s scoreboard to "&6Kills: &f%{kills::%{_uuid}%} ? 0%" set line 1 of {_p}'s scoreboard to "&6Deaths: &f%{deaths::%{_uuid}%} ? 0%" on join: set title of player's scoreboard to "&3Skray" updateBoard(player) on death of player: add 1 to {deaths::%victim's uuid%} if attacker is a player: add 1 to {kills::%attacker's uuid%} updateBoard(victim) updateBoard(attacker) on disconnect: clear scoreboard of player Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 function updateBoard(p: player, prefix: player's prefix): set {_uuid} to {_p}'s uuid set line 4 of player's scoreboard to "&4Rank: &f %{_prefix}% " set line 3 of {_p}'s scoreboard to "&4Name: &f%{_p}%" set line 2 of {_p}'s scoreboard to "&6Kills: &f%{kills::%{_uuid}%} ? 0%" set line 1 of {_p}'s scoreboard to "&6Deaths: &f%{deaths::%{_uuid}%} ? 0%" on join: set title of player's scoreboard to "&3Skray" updateBoard(player, player's prefix) on death of player: add 1 to {deaths::%victim's uuid%} if attacker is a player: add 1 to {kills::%attacker's uuid%} updateBoard(victim) updateBoard(attacker) on disconnect: clear scoreboard of player Try that. Not tested so that may not work Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Skray Posted May 15, 2021 Author Share Posted May 15, 2021 10 minutes ago, Invislol said: function updateBoard(p: player, prefix: player's prefix): set {_uuid} to {_p}'s uuid set line 4 of player's scoreboard to "&4Rank: &f %{_prefix}% " set line 3 of {_p}'s scoreboard to "&4Name: &f%{_p}%" set line 2 of {_p}'s scoreboard to "&6Kills: &f%{kills::%{_uuid}%} ? 0%" set line 1 of {_p}'s scoreboard to "&6Deaths: &f%{deaths::%{_uuid}%} ? 0%" on join: set title of player's scoreboard to "&3Skray" updateBoard(player, player's prefix) on death of player: add 1 to {deaths::%victim's uuid%} if attacker is a player: add 1 to {kills::%attacker's uuid%} updateBoard(victim) updateBoard(attacker) on disconnect: clear scoreboard of player Try that. Not tested so that may not work I chanced to this: But the deaths dosn't work on join: clear player's scoreboard on script load: loop all players: clear loop-player's scoreboard every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "SERVER NAME" set line 12 of loop-player's scoreboard to "Deaths: %player's deaths%" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&b&lYou" set line 9 of loop-player's scoreboard to " &7Name: &f%loop-player's displayname%" set line 8 of loop-player's scoreboard to " &7Ping: &f%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 " &7TPS: &f%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &7Online: &f%number of all players%&7/&f%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "SERVER NAME.Minehut.gg" on death: add 1 to %player's deaths% Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 59 minutes ago, Skray said: I chanced to this: But the deaths dosn't work on join: clear player's scoreboard on script load: loop all players: clear loop-player's scoreboard every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "SERVER NAME" set line 12 of loop-player's scoreboard to "Deaths: %player's deaths%" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&b&lYou" set line 9 of loop-player's scoreboard to " &7Name: &f%loop-player's displayname%" set line 8 of loop-player's scoreboard to " &7Ping: &f%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 " &7TPS: &f%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &7Online: &f%number of all players%&7/&f%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "SERVER NAME.Minehut.gg" on death: add 1 to %player's deaths% Here on join: clear player's scoreboard on script load: loop all players: clear loop-player's scoreboard every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "SERVER NAME" set line 12 of loop-player's scoreboard to "Deaths: %{deats.%loop-player's uuid%}%" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&b&lYou" set line 9 of loop-player's scoreboard to " &7Name: &f%loop-player's displayname%" set line 8 of loop-player's scoreboard to " &7Ping: &f%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 " &7TPS: &f%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &7Online: &f%number of all players%&7/&f%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "SERVER NAME.Minehut.gg" on death: add 1 to {deats.%player's uuid%} Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Skray Posted May 15, 2021 Author Share Posted May 15, 2021 2 minutes ago, Invislol said: Here on join: clear player's scoreboard on script load: loop all players: clear loop-player's scoreboard every tick: loop all players: toggle loop-player's scoreboard to true set title of loop-player's scoreboard to "SERVER NAME" set line 12 of loop-player's scoreboard to "Deaths: %{deats.%loop-player's uuid%}%" set line 11 of loop-player's scoreboard to "&b" set line 10 of loop-player's scoreboard to "&b&lYou" set line 9 of loop-player's scoreboard to " &7Name: &f%loop-player's displayname%" set line 8 of loop-player's scoreboard to " &7Ping: &f%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 " &7TPS: &f%rounded 1st element of tps%" set line 3 of loop-player's scoreboard to " &7Online: &f%number of all players%&7/&f%max players%" set line 2 of loop-player's scoreboard to "&b" set line 1 of loop-player's scoreboard to "SERVER NAME.Minehut.gg" on death: add 1 to {deats.%player's uuid%} How to do on first join set it to 0? Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 8 minutes ago, Skray said: How to do on first join set it to 0? on first join: set {deaths.%player's uuid%} to 0 # I meant to put deaths but misspelled # So change the one above to deaths instead of deats Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Skray Posted May 15, 2021 Author Share Posted May 15, 2021 2 minutes ago, Invislol said: on first join: set {deaths.%player's uuid%} to 0 # I meant to put deaths but misspelled # So change the one above to deaths instead of deats How can I test it? Link to comment Share on other sites More sharing options...
Invislol Posted May 15, 2021 Share Posted May 15, 2021 15 minutes ago, Skray said: How can I test it? You could reset player data or... on join: if {deaths.%player's uuid%} is not set: set {deaths.%player's uuid%} to 0 1 Invislol ♥• 4-5 years of skript experience • 6 Months of active java experience • 2 Years of javascript and python experience[PATRON] RANKHelpful Stuff: Appeals and Reports - Here | Minehut Global And forums rules - Here Link to comment Share on other sites More sharing options...
Skray Posted May 16, 2021 Author Share Posted May 16, 2021 10 hours ago, Invislol said: You could reset player data or... on join: if {deaths.%player's uuid%} is not set: set {deaths.%player's uuid%} to 0 Thank you! Link to comment Share on other sites More sharing options...
CodeJavagg Posted September 3, 2022 Share Posted September 3, 2022 its good 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