Solved skungee/bungeecord > Problem with Variables need any help

  • Welcome to skUnity!

    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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

XSKRIPTX

Member
Dec 26, 2017
47
1
8
35
Hello i have a Bungeecord Network with 3 Server
i will:

if player connect from LOBBY to GAMESERVER1 add 1 to {gameserver1.playerlist}
and if player leave from GAMESERVER1 remove 1 from {gameserver1.playerlist}



but i dont know how do make it
and i have MySQL if i need it

if anyone can help me i thanks him
 
Use Skungee. It should have everything you need related to bungee events/effects/expressions/conditions.
https://forums.skunity.com/resources/skungee-1-bungeecord-addon-for-skript.87/
yeah i now that addon but can u give me a example i nerver have work with that Addon
[doublepost=1570163166,1570156068][/doublepost]News:
i have a SKungee Code but it doesnt work
Code:
                add 1 to {hardcore.list}
                set {bungee.hardcore} to network variable {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
                set network variable {bungee.hardcore} to {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
                wait 5 seconds
                remove 1 from {hardcore.list}
                set {bungee.hardcore} to network variable {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
                set network variable {bungee.hardcore} to {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
{hardcore.list} send me 1 it works but the Network Variable send me "<none>" idk why :c
Code:
CODE #2
set {hardcore.list} to size of bungee players on "hardcore"
and CODE #2 give send me "0" Players but 1 Player is Online on Hardcore Server ._.

is it a Bug because i have only SKungee installed on my BungeeCord Server??!
 
Last edited:
yeah i now that addon but can u give me a example i nerver have work with that Addon
[doublepost=1570163166,1570156068][/doublepost]News:
i have a SKungee Code but it doesnt work
Code:
                add 1 to {hardcore.list}
                set {bungee.hardcore} to network variable {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
                set network variable {bungee.hardcore} to {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
                wait 5 seconds
                remove 1 from {hardcore.list}
                set {bungee.hardcore} to network variable {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
                set network variable {bungee.hardcore} to {hardcore.list}
                send "%{hardcore.list}%"
                send "%{bungee.hardcore}%"
{hardcore.list} send me 1 it works but the Network Variable send me "<none>" idk why :c
Code:
CODE #2
set {hardcore.list} to size of bungee players on "hardcore"
and CODE #2 give send me "0" Players but 1 Player is Online on Hardcore Server ._.

is it a Bug because i have only SKungee installed on my BungeeCord Server??!
You have to have skungee setup on the bungeecord instance and also on all of the servers.
Also, I may be wrong but when using network variables, you have to specify that its a network variable.

Example:
code_language.skript:
broadcast "%network variable {bungee.hardcore}%"

Also LimeGlass provided a way to get the size of all players on a bungeecord server:
code_language.skript:
set {_size} to size of all players on bungeecord server "Example"
 
Last edited:
You have to have skungee setup on the bungeecord instance and also on all of the servers.
Also, I may be wrong but when using network variables, you have to specify that its a network variable.

Example:
code_language.skript:
broadcast "%network variable {bungee.hardcore}%"

Also LimeGlass provided a way to get the size of all players on a bungeecord server:
code_language.skript:
set {_size} to size of all players on bungeecord server "Example"
no i test it but he send me only "<none>" or "0" idk why but the network variable are not working
[doublepost=1570234688,1570206829][/doublepost]News:

i have test the Skript "Skungee Variables fix" but it crash my server...

if anyone can help me plz
 
no i test it but he send me only "<none>" or "0" idk why but the network variable are not working
[doublepost=1570234688,1570206829][/doublepost]News:

i have test the Skript "Skungee Variables fix" but it crash my server...

if anyone can help me plz
I just setup a bungeecord server and skungee and I tested the network variables and they work perfectly fine. Make sure that Skungee is setup correctly for the bungee instance and all of the spigot servers. I can't think of anything else that would help your problem. Tested it on 1.14.4 paper spigot.
 
I just setup a bungeecord server and skungee and I tested the network variables and they work perfectly fine. Make sure that Skungee is setup correctly for the bungee instance and all of the spigot servers. I can't think of anything else that would help your problem. Tested it on 1.14.4 paper spigot.
hmm u now a other Methode for:

if player connect from LOBBY to GAMESERVER1 add 1 to {gameserver1.playerlist}
and if player leave from GAMESERVER1 remove 1 from {gameserver1.playerlist}


with MySQL or some other Addos..?
 
Status
Not open for further replies.