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

MySQL Support #1

Open
TheDiamondYT1 opened this issue Jul 23, 2017 · 11 comments
Open

MySQL Support #1

TheDiamondYT1 opened this issue Jul 23, 2017 · 11 comments

Comments

@TheDiamondYT1
Copy link

@Sandertv After i've pushed the plugin code, i'll need your help to implement MySQL support fot sharing data over servers.

@Sandertv
Copy link
Member

Sure thing.

@TheDiamondYT1
Copy link
Author

I can't think of how to implement this:

  • Player does /server (name) and it pings the server and if there is a kick message displays it in chat and doesnt leave the current server (but how tf would we do that) (EDIT: We could send a login packet now it think about it)

  • Player does /server (name), joins the target server and goes to the locating server screen and if they are kicked they get sent back to the fallback server

I prefer the first one to be honesy

@TheDiamondYT1
Copy link
Author

Ideally we need a bungeecord type thing. Lol

@Sandertv
Copy link
Member

We could try to make a bungeecord type plugin.

@TheDiamondYT1
Copy link
Author

Bungeecord is a standalone proxy and my understanding is it works like this

  • Bungeecord
    • server1
      • spigot.jar
    • server2
      • spigot.jar

@Sandertv
Copy link
Member

Which we also need a plugin for to manage things such as changing servers.

@TheDiamondYT1
Copy link
Author

Bungeecord doesnt do that

@Sandertv
Copy link
Member

It doesn't do anything in-game? Oh. I'm not an expert of MCPC so idk.

@TheDiamondYT1
Copy link
Author

Bungeecord is created by the SpigotMC team and i believe theres a config option in spigot to enable it.

https://github.com/SpigotMC/BungeeCord/blob/master/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java

Since the client connects to the proxy and not the server, the proxy handles command input. If the command exists in the proxy, it will not send it to the server and will execute the command code in the proxy. If it doesnt exist it will send it to the server for it to handle

@asyncthreading
Copy link

For the transfer(/server) you can use the MCPE transfer packets

@TheDiamondYT1
Copy link
Author

Ik

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

3 participants