SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedAdmin & protection

BungeePackets

by Spawl · for Minecraft

An in-depth easy to use packet library for BungeeCord.

3.4KDownloads
11 yr agoLast updated
Spigot · PaperLoaders
SpigotMCSource

About BungeePackets

From SpigotMC

An in-depth easy to use packet library for BungeeCord.

BungeePackets

An in depth packet library for BungeeCord. This library allows developers to create plugins that allow for inventories across server networks, play sounds, particle effects, and soon to be lots more!

I've seen a few packet libraries for BungeeCord on Spigot. But none that I found easy to use, or expandable.

This plugin does NOT provide extra features for your network. It is an API for developers to use to make it easier for them to create cross-network plugins.

Installation
Simply drop the BungeePackets.jar into your plugins directory of your BungeeCord server. Restart the Bungee and it will be loaded!

Version
As far as I am aware, this plugin works with all builds greater than minecraft version 1.6.4.

Usage

<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: Listening for packets.</button>
BungeePackets adds in one simple event to manage packets. PacketEvent. The packet event is used to manage all incoming and outgoing packets. With ever incoming and outgoing packet there is a player assigned with it somewhere in the pipe. Using this system we can differentiate whether a server is sending a packet to Bungee, or a player is, vice-versa.

In the example below, we are listening for an incoming packet coming from the client to the BungeeCord. We can check who is sending/receiving packets by checking if they are an instance of a commection. To check if the sender is a palyer, check if the sender is an instanceof a ProxiedPlayer. To check if the sender is Bungee, check if the sender is an instance of a BungeeConnection. To check if the sender is a server, check if the sender is an instanceof a ServerConnection.
Code (Text):
@EventHandler
public void onPacket(PacketEvent event) {
&nbsp; &nbsp; if(event.getSender() instanceof ProxiedPlayer &amp;&amp; event.getReciever() instanceof BungeeConnection) {
&nbsp; &nbsp; &nbsp; &nbsp; if(event.getPacket() instanceof InFlying) {
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InFlying packet = (InFlying) event.getPacket();
&nbsp; &nbsp; &nbsp; &nbsp; }
&nbsp; &nbsp; }
}
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: Registering a packet.</button>
Some packets are already implemented. But for the ones that are not, you will have to create a packet for it. To create a custom packet, simply extend the org.spawl.bungeepackets.Packet class. This is an abstract class so you will get 3 methods. Read, write, and handle. Read is called when the BungeeCord recieves the packet. Write is called when the Bungee is writing the packet to a pipe, and handle is called after the packet is read. Even if you register custom packets, they will still be called through the PacketEvent.
Code (Text):
BungeePackets.registerPacket(Protocol.DirectionData.TO_SERVER, &lt;ID&gt;, &lt;CLASS EXTENDING PACKET&gt;);
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: Creating an inventory.</button>
Creating inventories are made easy with a custom ItemStack API along with a custom inventory API. If you need any features added, please feel free to message me!
Code (Text):
ProxiedPlayer p = null; / Make this not null when you do it ;) /
Inventory inventory = new Inventory("Test!", 54);
inventory.setItem(0, new ItemStack(Material.APPLE));
inventory.open(p);
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: Playing a sound effect.</button>
Sound effects can be played to clients just as they normally are. The packet added is called OutNamedSoundEffect. Below you can see how to play a sound effect to any player!
Code (Text):
ProxiedPlayer player = null; / Make this not null when you do it ;)/
String soundEffect = SoundEffect.&lt;YOUR SOUND&gt;;
float volume = 1F;
float pitch = 1F;

BungeePackets.playSound(player, soundEffect, volume, pitch);
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: Displaying a particle effect.</button>
Particle effects can be displayed to clients just as they normally are. The packet added is called

Read the full description on SpigotMC →

Highlights

From source data

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 11 yr ago.

BungeePackets on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 1.5 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.6, released 2015-12-19

Game versions by loader

LoaderGame versionsNewest
Paper
Spigot

From 7 recorded builds of BungeePackets.

Recent builds

BuildReleasedGame versionsLoaders
1.62015-12-19n/aSpigot, Paper
1.52015-12-19n/aSpigot, Paper
1.42015-09-02n/aSpigot, Paper
1.32015-09-02n/aSpigot, Paper
1.22015-09-02n/aSpigot, Paper
1.12015-09-01n/aSpigot, Paper

Run BungeePackets on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists BungeePackets as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-16Open ↗
  • ✓AuthorSpawl, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

BungeePackets, answered

Generated from the mod’s own source data.

Do my players need to install BungeePackets?

SpigotMC lists BungeePackets as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. BungeePackets is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run BungeePackets on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add BungeePackets in one click.