Skript Version: Skript 2.2 (dev25)
Skript Author: Bensku
Minecraft Version: 1.8.8 (spigot)
Full Code:
Errors on Reload: None.
Console Errors: N/A.
Addons:
Troubleshooting:
Have you tried searching the docs? Yes.
Have you tried searching the forums? Yes.
What other methods have you tried to fix it?
I've tried other versions of Skript, such as the "2.2 Fixes V8" fork, aswell as the more updated (dev35) and outdated (Njol) versions. I've tried all three versions listed on the .down command in Discord, as well as not being able to find an answer there when asked. Tried different variable types, tried different scoreboard setups, different skRayFall versions; nothing works.
Problem:
The scoreboard shown in the code block works fine except for the list variables. These list variables do store the kills/deaths of the players with the UUIDs correctly. The problem is that when I try and use a loop for all players, it does load the kills, just not with separate scoreboards per player. The loop has it going for 5 seconds each, and in each rotation of 5 seconds, the scoreboard will cycle through all the kill/death variable values.
(ex. I brought two alts on the server [call them p1 and p2] and used p1 to kill p2 twice. The variable for kills stored the two kills under p1's uuid and the deaths under p2's uuid, just as told. Now, once this happened, the scoreboard would then refresh after 5 seconds, and both players would see the exact same board. The first one being p1's stats, 2 kills and 0 deaths, then refreshing to p2's stats, 0k 2d. Both players saw the same scoreboard. Mind that, this only happens when there is more than one player on the server at a time.)
I know per-player sb's are possible with skript, and I've been skripting for a long while to know that, but this truly stumped me, so I came here. Any help is appreciated. Thanks
Skript Author: Bensku
Minecraft Version: 1.8.8 (spigot)
Full Code:
code_language.skript:
every 5 seconds:
loop all players:
wipe loop-player's sidebar
set name of sidebar of loop-player to "&5&lArena"
set score "&d&m«--------------------«" in sidebar of loop-player to 16
set score " &5Kills &7» %{ab::%uuid of loop-player%::kills}%" in sidebar of loop-player to 15
set score " &5Deaths &7» %{ab::%uuid of loop-player%::deaths}%" in sidebar of loop-player to 14
set score "&d&m»--------------------»" in sidebar of loop-player to 11
on death of player:
attacker is a player
victim is a player
add 1 to {ab::%uuid of attacker%::kills}
add 1 to {ab::%uuid of victim%::deaths}
Errors on Reload: None.
Console Errors: N/A.
Addons:
- RandomSK 2.0
- Skellett 1.9.6b
- SkQuery Lime 3.6.1-Lime
- skRayFall 1.9.12
- Umbaska 3
Troubleshooting:
Have you tried searching the docs? Yes.
Have you tried searching the forums? Yes.
What other methods have you tried to fix it?
I've tried other versions of Skript, such as the "2.2 Fixes V8" fork, aswell as the more updated (dev35) and outdated (Njol) versions. I've tried all three versions listed on the .down command in Discord, as well as not being able to find an answer there when asked. Tried different variable types, tried different scoreboard setups, different skRayFall versions; nothing works.
Problem:
The scoreboard shown in the code block works fine except for the list variables. These list variables do store the kills/deaths of the players with the UUIDs correctly. The problem is that when I try and use a loop for all players, it does load the kills, just not with separate scoreboards per player. The loop has it going for 5 seconds each, and in each rotation of 5 seconds, the scoreboard will cycle through all the kill/death variable values.
(ex. I brought two alts on the server [call them p1 and p2] and used p1 to kill p2 twice. The variable for kills stored the two kills under p1's uuid and the deaths under p2's uuid, just as told. Now, once this happened, the scoreboard would then refresh after 5 seconds, and both players would see the exact same board. The first one being p1's stats, 2 kills and 0 deaths, then refreshing to p2's stats, 0k 2d. Both players saw the same scoreboard. Mind that, this only happens when there is more than one player on the server at a time.)
I know per-player sb's are possible with skript, and I've been skripting for a long while to know that, but this truly stumped me, so I came here. Any help is appreciated. Thanks