Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Bungeesk disconnect automatique #29

Open
Lennord opened this issue Oct 26, 2022 · 5 comments
Open

[Bug] Bungeesk disconnect automatique #29

Lennord opened this issue Oct 26, 2022 · 5 comments

Comments

@Lennord
Copy link

Lennord commented Oct 26, 2022

Describe the bug
When I do the code below and I use it in the game, it sometimes disconnects automatically and I have to restart the connection script for it to reconnect, no error (neither in the game nor in console).

on load:
	while client isn't connected:
		create new bungee connection:
			set address of connection to "127.0.0.1"
			set port of connection to 20000
			set password of connection to "password"
		start new connection with last created connection
		wait 30 seconds

To Reproduce

on join:
	delete global variable "test.settings.language.%player's uuid%"
	delete global variable "test.rank.name.%player's uuid%"
	delete global variable "test.rank.author.%player's uuid%"
	delete global variable "test.rank.date.%player's uuid%"
	delete global variable "test.firstjoin.%player's uuid%"
	wait 5 second
	set global variable "test.settings.language.%player's uuid%" to "EN"
	set global variable "test.rank.name.%player's uuid%" to "DEFAULT"
	set global variable "test.rank.author.%player's uuid%" to "CONSOLE"
	set global variable "test.rank.date.%player's uuid%" to "%now%"
	set global variable "test.firstjoin.%player's uuid%" to true

Expected behavior
Disconnecting from the server to the bungeecord should not be automatically disconnected unless the server in question is down.

Screenshots
Disconnection BungeeSK

Desktop:

  • Paper version latest 1.18.2
  • BungeeSK version latest build 2.0.0
@ZorgBtw
Copy link
Owner

ZorgBtw commented Oct 26, 2022

here is a better code for connecting your client (beacuse it sometimes disconnect from the server)

function connect():
	while client is not connected:
		create new bungee connection:
			set address of connection to "127.0.0.1"
			set port of connection to 20000
			set password of connection to "s*eL/2N18dr5vTdZ"
		start new connection with connection
		wait 5 seconds

on load:
	connect()

on client disconnect:
        wait 5 seconds
        connect()

@Lennord
Copy link
Author

Lennord commented Oct 26, 2022

I used your code, it optimizes better but it sometimes disconnects when it sends too much packet to the bungeecord.

@xibo1212
Copy link

xibo1212 commented Nov 5, 2022

I have the same problem with version 2.0.0, and sometimes I can't listen to the disconnection event, or the communication is not easy to use when the connection is not disconnected, which leads to the inability to reconnect in time, so I still use 1.1.0

@Lennord
Copy link
Author

Lennord commented Apr 17, 2023

Hello, I would like to know when this will be fixed?

@NyuDev
Copy link

NyuDev commented Apr 18, 2023

I'd like to know too, can't wait for the ver 2.0.0 ❤❤❤❤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants