BungeeCordLib

This project has become inactive.

This project is inactive and its default file will likely not work with the most recent version of Minecraft. The author may have abandoned it, or it may have outlived its usefulness.

BungeeCordLib is a Bukkit Lib for BungeeCord Servers. You can create TCP Servers and send Packets to a another BungeeCord Server.

Functions

  • Create a TCP Server
  • Send Packets to a TCP Server
  • Get List with all Online Players (in all Servers) (!)
  • Get right player address (!)
  • Get the BungeeCord Name of this Server (!)
  • List all Servers in BungeeCord List. (!)
  • Teleport Players to other Servers
  • Make a Ping to a Server (Get motd, Online Players and slots) Functions with (!) required online players.

Source Code: http://github.com/Howaner/BungeeCordLib

Documentation: http://jd.howaner.de/BungeeCordLib


Code Examples

Teleport a Player:
BungeeServer server = BungeeCord.getManager().addServer("Servername", "127.0.0.1:2354");
server.teleportPlayer(player);
Ping a Server
BungeeServer server = BungeeCord.getManager().addServer("Servername", "127.0.0.1:2354"); //Servername = Der Name des Servers in der BungeeCord Config. 127.0.0.1:2354 = Ip des Servers
ServerData data = server.getData();
if (data == null) {
	//Error
}
String motd = data.getMotd();
int slots = data.getSlots();
int players = data.getPlayers();
Get Player IP
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
	final Player player = event.getPlayer();
	Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
		player.sendMessage("IP: " + BungeeCord.getManager().getPlayerIp(player.getName()) + "!");
	}, 5L);
}
TCP Packet Connection

Example is on http://pastebin.howaner.de/view/0c7549f1


Repository Information for Maven Projects

<repositories>
	<repository>
		<id>Howaner Repo</id>
		<url>http://repo.howaner.de</url>
	</repository>
</repositories>

<dependencies>
	<dependency>
		<groupId>de.howaner</groupId>
		<artifactId>BungeeCordLib</artifactId>
		<version>1.2</version>
	</dependency>
</dependencies>

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • 2 comments

Facts

Date created
Nov 02, 2013
Category
Last update
Nov 02, 2013
Development stage
Inactive
Language
  • enUS
License
GNU General Public License version 2 (GPLv2)
Curse link
BungeeCordLib
Downloads
785
Recent file

Authors