#PlaceholdeAPI with skript scoreboard
1 messages · Page 1 of 1 (latest)
the thing is
if I use {kills::%player's uuid%} for example
it wouldnt count the old kills before it was made
so anyone who has grinded kills will lose them
Wym now I am confused ;-;
like set %statistic_player_kills% to kills of %player%
yes
Skript Hub - Documentation
Represents the different statistics for a player.
Some stats require extra data, these are distinguished by their data type within the square brackets.
Underscores in stat names are not required, you can use spaces.
NOTE: 'play_one_minute' stat's name is misleading, it's actually amount of ticks played.
search the stats you need from here then
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
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
I ma try it
wait one question
to use that , do I have to do smth like this?
if {kills::%player's uuid%} is not set:
set {kills::%player's uuid%} to 0```
no
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
Look at the PAPI wiki here regarding placeholders:
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
what should I look at
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)
I hvae luck perms and vault
but what placeholder do I need for it
like %luckperms_prefix% doesnt work in skript
umm... scroll down to where it says LuckPerms
ok I have to go for some time , I will check what u said in about an hour
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
right here
ok ty
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
ok
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
well, for the online player count, you could just read the docs
https://docs.skriptlang.org/expressions.html?search=#ExprOnlinePlayersCount
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)
could u by chance give an example
read the docs. it literally gives you examples