Get an Epic Experience with Premium

BungeeCordLib

Developer Tools Login to Add Favorites
  • 1 Like
  • Minecraft
  • 276 Monthly Downloads
  • Supports: 1.6.4
  • 776 Total Downloads
  • Updated 11/02/2013
  • Created 11/02/2013
  • 1 Favorites
  • Project Site
  • Comments
  • Release Type: Inactive
  • License: GNU General Public License version 2 (GPLv2)
  • Newest File: BungeeCordLib v1.2
or

About BungeeCordLib

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>

Release Plugin on DevBukkit

Comments

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

ESO Prize Pack Giveaway!