13
0
Dieser Commit ist enthalten in:
yoyosource 2022-04-13 22:01:11 +02:00
Ursprung ce88e69ed0
Commit 2431e76c60

Datei anzeigen

@ -1,23 +0,0 @@
package de.steamwar.command;
import net.md_5.bungee.BungeeServerInfo;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Command;
import java.net.InetSocketAddress;
public class TestCommand extends Command { // TODO: This will be removed later on
public TestCommand() {
super("test");
}
@Override
public void execute(CommandSender commandSender, String[] strings) {
ServerInfo serverInfo = new BungeeServerInfo("test", new InetSocketAddress("45.81.234.82", 25565), "test", false);
ProxiedPlayer player = (ProxiedPlayer) commandSender;
player.connect(serverInfo);
}
}