Skript Version: 2.2-Fixes-V8b
Skript Author: Dzikoysk
Minecraft Version: 1.8.x
---
The Problem:
The problem is if there is only one player it's working fine but if the are 2 players online the list will be broadcastet 2 times
Picture when there is only 1 player online
https://gyazo.com/f79150a2368c6f814dc10ed121b45a0d
Picture when there are 2 player in online
https://gyazo.com/d4bafd9129199c6ee1146530497c5e59
Full code:
Errors on Reload:
Console Errors: (if applicable)
Other Useful Info:
Addons using (including versions):
SkQuery,Skellett,WildSkript,PirateSK,RandomSK,Umbaska And SkRauFall all with newest update
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes and spigot and bukkit forum
Skript Author: Dzikoysk
Minecraft Version: 1.8.x
---
The Problem:
The problem is if there is only one player it's working fine but if the are 2 players online the list will be broadcastet 2 times
Picture when there is only 1 player online
https://gyazo.com/f79150a2368c6f814dc10ed121b45a0d
Picture when there are 2 player in online
https://gyazo.com/d4bafd9129199c6ee1146530497c5e59
Full code:
code_language.skript:
options:
list1: &7&m-------------&r &4&l»&cServer List&4&l« &7&m-------------
list2: &7&m----------------------------------------
command /list:
trigger:
loop all players:
clear {owner::*}
clear {admin::*}
clear {mod::*}
clear {helper::*}
clear {staff::*}
clear {kriger::*}
clear {krigerlist::*}
if loop-player has permission "list.owner":
add loop-player to {staff::*}
add loop-player to {owner::*}
else if loop-player has permission "list.admin":
add loop-player to {staff::*}
add loop-player to {admin::*}
else if loop-player has permission "list.mod":
add loop-player to {staff::*}
add loop-player to {mod::*}
else if loop-player has permission "list.helper":
add loop-player to {staff::*}
add loop-player to {helper::*}
else if loop-player has permission "list.kriger":
add loop-player to {kriger::*}
add 1 to {krigerlist::*}
message "{@list1}"
if size of {owner::*} is 0:
message "&4Ejere:&7 (&40&7)&4:: &c&oIngen Ejere online..."
message "{@list2}"
wait 0 tick
else:
message "&4Ejere&8: &f%{owner::*}%"
message "{@list2}"
if size of {admin::*} is 0:
message "&cAdministratorer&7 (&c0&7)&c: &c&oIngen Admins online..."
message "{@list2}"
wait 0 tick
else:
message ""
message "&cAdministratorer(s)&8: &f%{admin::*}%"
message "{@list2}"
if size of {mod::*} is 0:
message "&9Moderator&7 (&90&7)&9: &c&oIngen Moderators online..."
message "{@list2}"
wait 0 tick
else:
message ""
message "&9Mderator(s)&8: &f%{mod::*}%"
message "{@list2}"
if size of {helper::*} is 0:
message "&2Hjælpere&7 (&20&7)&2: &c&oIngen Hjælpere online..."
message "{@list2}"
wait 0 tick
else:
message ""
message "&2Hjælpere&8: &f%{helper::*}%"
message "{@list2}"
if size of {kriger::*} is 0:
message "&eKrigere&7 (&e0&7)&e: &c&oIngen Krigere online..."
message "{@list1}"
wait 0 tick
else:
message "&eKrigere&7 (&e%{krigerlist::*}%&7)&e: &f%{kriger::*}%"
message "{@list1}"
Errors on Reload:
code_language.skript:
None
Console Errors: (if applicable)
code_language.skript:
None
Other Useful Info:
Addons using (including versions):
SkQuery,Skellett,WildSkript,PirateSK,RandomSK,Umbaska And SkRauFall all with newest update
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes and spigot and bukkit forum
Last edited: