Update stuff
Dieser Commit ist enthalten in:
Ursprung
ce88e69ed0
Commit
2431e76c60
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren