Lol you just don't want the proof against you laying around.Can someone delete this post please thanks
I request this to not be deleted.
Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Lol you just don't want the proof against you laying around.Can someone delete this post please thanks
It's definitely possible, I've done it before. It's just question of trial and error. I lost that code so I wouldn't be able to show you how I did it, sadly.@Pikachu Apparently it is impossible to do it, thats what @Tlatoani Told me. Its giving errors
@KingAlterIV Are you @BrettPlayMC 's Minion or some shit?
It's possible, I did it in that screenshot on game version 1.8.8 (latest MundoSK beta), pretty much in the same way as your code except I combined some lines.@Pikachu Apparently it is impossible to do it, thats what @Tlatoani Told me. Its giving errors
@KingAlterIV Are you @BrettPlayMC 's Minion or some shit?
Yes, I saw that. It's possible currently with MundoSK, I know because like I said I did it myself.
When a status_server_server_info packet is sent, put serverping pjson number 0 of the packet into a list variableOkay so what do i do
{_list::players::online}
I know he is hated because he has nearly 400 posts and all of them were asking for help (spoonfeeding generally) but there is no reason to bash on him all the time, this isn't even on google because no one did this before on a public script (such as this is a kind of new feature). If you're not going to help in any way then just go away.You google it.
Since you didn't post the rest of the code I can't tell you if it should work or not@Pikachu Yeah.
code_language.skript:put json {_oldjson} in listvar {_server info::*}
It should work?
on packet event status_server_server_info:
set {_oldjson} to "serverping" pjson 0 of event-packet
set {_server info::players::online} to 50
put json {_oldjson} in listvar {_server info::*}
set {_newjson} to json of listvar {_server info::*}
set "serverping" pjson 0 of event-packet to {_newjson}
broadcast "%{_oldjson}%"
switch lines 3 and 4 and it may work.@Pikachu Idk?
code_language.skript:on packet event status_server_server_info: set {_oldjson} to "serverping" pjson 0 of event-packet set {_server info::players::online} to 50 put json {_oldjson} in listvar {_server info::*} set {_newjson} to json of listvar {_server info::*} set "serverping" pjson 0 of event-packet to {_newjson} broadcast "%{_oldjson}%"
Post the new code@Pikachu It doesn't change the player counter, but this is what it broadcasts
code_language.skript:{"players":{"max":50,"online":0},"description":"","version":{"protocol":47,"name":"Spigot 1.8.8"}}
on packet event status_server_server_info:
set {_oldjson} to "serverping" pjson 0 of event-packet
put json {_oldjson} in listvar {_server info::*}
set {_server info::players::online} to 50
set {_newjson} to json of listvar {_server info::*}
set "serverping" pjson 0 of event-packet to {_newjson}
broadcast "%{_oldjson}%"
I guess you've tried enough... use this:@Pikachu Same thing happens
code_language.skript:on packet event status_server_server_info: set {_oldjson} to "serverping" pjson 0 of event-packet put json {_oldjson} in listvar {_server info::*} set {_server info::players::online} to 50 set {_newjson} to json of listvar {_server info::*} set "serverping" pjson 0 of event-packet to {_newjson} broadcast "%{_oldjson}%"
on packet event status_server_server_info:
put json "serverping" pjson 0 of event-packet in listvar {_l::*}
set {_l::players::online} to 50
set "serverping" pjson 0 of event-packet to json of listvar {_l::*}