#PlaceholdeAPI with skript scoreboard

1 messages · Page 1 of 1 (latest)

steady cargo
#

also <#rrggbb>

#

pls

autumn matrix
#

#rbgg is weird

#

so no 😄

steady cargo
#

wym weird

#

that looks bad ;-;

autumn matrix
#

if I use {kills::%player's uuid%} for example

#

it wouldnt count the old kills before it was made

steady cargo
#

that's why i'm telling

#

to use statistics

autumn matrix
#

so anyone who has grinded kills will lose them

#

Wym now I am confused ;-;

#

like set %statistic_player_kills% to kills of %player%

steady cargo
#

player kill stat of player

#

do you have skbee

autumn matrix
#

yes

steady cargo
#
#

search the stats you need from here then

autumn matrix
#

so like

#

set line 12 of player's scoreboard to &7kills > player_kills statistic?

#

or player_kills statistic of player

#

I have to go for the day , I am gonna leave it to not solved idk if its solved or not

wild palm
#

suggestion: if you have skript-placeholders do

set line 12 of player's scoreboard to "&7kills > %{_kills::%player's uuid%}%```
#

should work

#

like i did this

#

works for me

#

idunno for you

#

@autumn matrix

autumn matrix
#

I ma try it

autumn matrix
#

wait one question

autumn matrix
wild palm
#

no

autumn matrix
#

so no requirement?

#

I have updated the skript to this:

  if {blocks::%player's uuid%} is not set:
   set {blocks::%player's uuid%} to 0
  while player is online:
   set title of player's scoreboard to "#CantReveal"
   set line 14 of player's scoreboard to "&x&0&0&e&c&f&bI&x&1&9&d&4&f&an&x&3&2&b&d&f&9f&x&4&b&a&5&f&8o&x&6&4&8&e&f&7r&x&7&d&7&6&f&6m&x&9&6&5&e&f&4a&x&a&f&4&7&f&3t&x&c&8&2&f&f&2i&x&e&1&1&8&f&1o&x&f&a&0&0&f&0n"
   set line 13 of player's scoreboard to "&7Player > %player%"
   set line 12 of player's scoreboard to "&7Rank > %vault_prefix%"
   set line 11 of player's scoreboard to ""
   set line 10 of player's scoreboard to "&x&0&0&e&c&f&bS&x&3&f&b&1&f&8t&x&7&d&7&6&f&6a&x&b&c&3&b&f&3t&x&f&a&0&0&f&0s"
   set {_kills::%player's uuid%} to placeholder "statistic_player_kills" from player 
   set line 9 of player's scoreboard to "&7Kills > %{_kills::%player's uuid%}%"
   set {_deaths::%player's uuid%} to placeholder "statistic_deaths" from player 
   set line 8 of player's scoreboard to "&7Deaths > %{_deaths::%player's uuid%}%"
   set {_playtime::%player's uuid%} to placeholder "statistic_time_played" from player 
   set line 7 of player's scoreboard to "&7Playtime > %{_playtime::%player's uuid%}%"
   set {_blocksmined::%player's uuid%} to placeholder "statistic_mine_block" from player 
   set line 6 of player's scoreboard to "&7Blocks Mined >  %{_blocksmined::%player's uuid%}%"
   set line 5 of player's scoreboard to ""
   set line 4 of player's scoreboard to "&x&0&0&e&c&f&bS&x&3&2&b&d&f&9e&x&6&4&8&e&f&7r&x&9&6&5&e&f&4v&x&c&8&2&f&f&2e&x&f&a&0&0&f&0r"
   set line 3 of player's scoreboard to "&7Online Players > %online%/%server_max_players%"
   set line 2 of player's scoreboard to "&7Unique Joins > %server_unique_joins%"
   set line 1 of player's scoreboard to "&7Server Ip > #WontRevealSoNoSelfAdvertising"
   wait 1 second```
I just dont know how to make the placeholders work for online players , unique joins , rank because they arent statistics
tropic leaf
autumn matrix
#

what should I look at

tropic leaf
#

their rank would be either from the plugin you are using for them (such as LuckPerms) or you can get their prefix as long as you also have Vault (required by most plugins anyways) which would be their rank's prefix (or player's, for that matter)

autumn matrix
#

I hvae luck perms and vault

#

but what placeholder do I need for it

#

like %luckperms_prefix% doesnt work in skript

tropic leaf
#

umm... scroll down to where it says LuckPerms

autumn matrix
#

ok I have to go for some time , I will check what u said in about an hour

tropic leaf
#

and that is correct, it does not work like that. you need the skript-placeholders addon (for Skript, which you already have) and go back to where you were taught how to use that system

autumn matrix
#

ok ty

tropic leaf
#

in order for the LuckPerms placeholders to work, you'll need to run the command /papi ecloud download luckperms in console or in-game first, then do /papi reload and you should be set

autumn matrix
#

ok

autumn matrix
#

New Code:

  if {blocks::%player's uuid%} is not set:
    set {blocks::%player's uuid%} to 0
  while player is online:
    set title of player's scoreboard to "CantReveal"
    set line 14 of player's scoreboard to "&x&0&0&e&c&f&bI&x&1&9&d&4&f&an&x&3&2&b&d&f&9f&x&4&b&a&5&f&8o&x&6&4&8&e&f&7r&x&7&d&7&6&f&6m&x&9&6&5&e&f&4a&x&a&f&4&7&f&3t&x&c&8&2&f&f&2i&x&e&1&1&8&f&1o&x&f&a&0&0&f&0n"
    set line 13 of player's scoreboard to "&7Player > %player%"
    set {_rank::%player's uuid%} to placeholder "luckperms_prefix" from player
    set line 12 of player's scoreboard to "&7Rank > %{_rank::%player's uuid%}%"
    set line 11 of player's scoreboard to ""
    set line 10 of player's scoreboard to "&x&0&0&e&c&f&bS&x&3&f&b&1&f&8t&x&7&d&7&6&f&6a&x&b&c&3&b&f&3t&x&f&a&0&0&f&0s"
    set {_kills::%player's uuid%} to placeholder "statistic_player_kills" from player 
    set line 9 of player's scoreboard to "&7Kills > %{_kills::%player's uuid%}%"
    set {_deaths::%player's uuid%} to placeholder "statistic_deaths" from player 
    set line 8 of player's scoreboard to "&7Deaths > %{_deaths::%player's uuid%}%"
    set {_playtime::%player's uuid%} to placeholder "statistic_time_played" from player 
    set line 7 of player's scoreboard to "&7Playtime > %{_playtime::%player's uuid%}%"
    set {_blocksmined::%player's uuid%} to placeholder "statistic_mine_block" from player 
    set line 6 of player's scoreboard to "&7Blocks Mined >  %{_blocksmined::%player's uuid%}%"
    set line 5 of player's scoreboard to ""
    set line 4 of player's scoreboard to "&x&0&0&e&c&f&bS&x&3&2&b&d&f&9e&x&6&4&8&e&f&7r&x&9&6&5&e&f&4v&x&c&8&2&f&f&2e&x&f&a&0&0&f&0r"
    set line 3 of player's scoreboard to "&7Online Players > %size of all players%/45"
    set line 2 of player's scoreboard to "&7Unique Joins > %size of all offline players%"
    set line 1 of player's scoreboard to "&7Server Ip > Likedboxx.minehut.gg"
    wait 1 second


on break:
 add 1 to {blocks::%player's uuid%}```
#

now idk how to make it work for online players , unique joins

tropic leaf
#

and for the unique joins, you can use the same thing and do the size of all offline players (will also get players currently online)

autumn matrix
#

hmm I will see what I can do tmwr because I cant rn

#

ty tho

autumn matrix
tropic leaf
#

read the docs. it literally gives you examples