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

[Suggestion] Remove /server ran through bungeecord messaging #210

Open
refractored opened this issue Dec 18, 2024 · 0 comments
Open

[Suggestion] Remove /server ran through bungeecord messaging #210

refractored opened this issue Dec 18, 2024 · 0 comments

Comments

@refractored
Copy link

refractored commented Dec 18, 2024

I use ajqueue for my server, and with that, /server queues the player for a server with ajqueue's queueing system.

With this snippet of code though, it does not use ajqueue and just uses the bungee plugin messaging system to send the player to the server.

if (command.toLowerCase().startsWith("server")) {
String[] args = value.split(" ");
if (args.length < 2) {
return;
}
String server = args[1];
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Connect");
out.writeUTF(server);
context.getPlayer().sendPluginMessage(FancyNpcsPlugin.get().getPlugin(), "BungeeCord", out.toByteArray());
return;
}

I feel like this should be removed and a warning is put in place that /server command is sent to the backend server and not the proxy.

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

1 participant