Jedis Packet Library.
// Setup
Pyrite pyrite = new Pyrite(
new PyriteCredentials("localhost", "", 6379)
);
// Register Container
pyrite.registerContainer(new ExamplePacketContainer());
// Send Packet
pyrite.sendPacket(new ExamplePacket(), "Channel");
public class ExamplePacket extends Packet {
private int field1 = 1;
private String field2 = "Howdy there!";
}
import io.github.thatkawaiisam.pyrite.packet.PacketContainer;
import io.github.thatkawaiisam.pyrite.packet.PacketListener;
public class ExamplePacketContainer implements PacketContainer {
@PacketListener
public void onTestPacket(ExamplePacket packet) {
System.out.println("Packet Recieved!");
System.out.println("====================");
System.out.println("Field1: " + packet.getField1());
System.out.println("Field2: " + packet.getField2());
}
}
When contributing, please create a pull request with the branch named as follows <feature/fix>/<title>
.
To compile, run the maven command: mvn clean install
To run unit tests, run the maven command mvn test
- Discord: ThatKawaiiSam#2882
- Telegram: ThatKawaiiSam