Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Packetlib and Maintain History #727

Merged
merged 186 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
e5fc2ce
Initial commit
Nov 29, 2013
91d16ae
Change packet header to have length int, add splitter to split packet…
Dec 15, 2013
eec5807
Remove debug message
Dec 15, 2013
ee8a02d
Added link for downloading builds
Dec 20, 2013
a933383
Changed "Internal exception" disconnect message to be identifiable as…
Jan 3, 2014
90a4170
Add option to not wait for session to connect before returning, ensur…
Jan 8, 2014
67d531f
Moved test classes out of source folder and into example folder.
Jan 31, 2014
e19e1a4
Refactored ch.spacebase to org.spacehq, reformatted code and line end…
Mar 2, 2014
6760893
Minor cleanup, add Proxy support to TcpSessionFactory
Mar 19, 2014
5224959
Only call PacketSendEvent if there are no errors in writing
Mar 22, 2014
f6d1c51
Update build server URL
Apr 3, 2014
21c7d90
Catch and report exceptions from disconnect events
Apr 4, 2014
396b7bf
Add interface for customizing packet headers.
Jun 20, 2014
0001266
Actually read the bytes instead of passing the same buffer to satisfy…
Jun 22, 2014
6b7b65b
Allow protocols to specify whether packet sizers or encryptors will e…
Jun 22, 2014
49651dd
Allow PacketHeader to return -1 for packet IDs to signal that the pac…
Jun 22, 2014
5e4868a
Update download URLs
Jun 28, 2014
73f375b
Add packet compression and methods for reading bytes to an existing a…
Jul 16, 2014
2ce93ac
Add VarLong support, fix compression issue.
Aug 4, 2014
1f8abf7
Add methods for reading/writing UUIDs as longs.
Aug 11, 2014
249511e
Allow adjusting timeout and performing actions when a timeout occurs.
Aug 27, 2014
7b26b14
Expand on timeout control.
Aug 28, 2014
8fa57eb
Call timeout handler if connect future results in a ConnectTimeoutExc…
Sep 15, 2014
d418516
Minor message update.
Sep 15, 2014
9cbdc6a
More clarification to timeout disconnect messages.
Sep 15, 2014
670f5fb
Use try-catch for connect timeout exception if waiting.
Sep 15, 2014
7b3146c
Catch timeout exceptions throughout all of the connect method, tweak …
Sep 15, 2014
11ce15c
Ensure currently set timeout and handler is used.
Sep 15, 2014
65e3518
Timeout should be multiplied by 1000 for milliseconds.
Sep 15, 2014
4cf17e3
Fix getWriteTimeout
Nov 24, 2014
634e89f
Add exception boolean to TcpSession to halt loops if an exception occ…
Jan 25, 2015
3d3ebad
Listen for future errors and wait using awaitUninterruptibly in TcpSe…
Apr 17, 2015
3687891
Further improvements to exception handling.
Apr 17, 2015
aa1c305
Fix TcpSession CME.
May 2, 2015
83161ff
Update to Netty 5.0.0.Alpha2
Jul 19, 2015
26e6ae3
General cleanup, fixes, and re-versioning.
Jul 20, 2015
a2e4898
Update URLs.
Jul 21, 2015
c686590
Report exceptions from connection thread.
Aug 14, 2015
4c06294
Ensure connection process has fully completed before ending wait loop.
Aug 20, 2015
ce140f4
Cleanup, add wait flag to Server.bind, fix connection errors not thro…
Aug 22, 2015
9c1ac6a
Ensure channel is set before returning from bind().
Aug 22, 2015
83a5cb4
Minor fixes and cleanup.
Aug 22, 2015
310de7c
Test.
Aug 22, 2015
34c2a5c
Ensure channel is set before returning from connect().
Aug 22, 2015
fa806e5
Sync future instead of using listener.
Aug 22, 2015
b7a1cdf
Ensure we aren't waiting for a connection when we've been disconnecte…
Aug 22, 2015
4948053
Remove prefixed byte array methods.
Aug 23, 2015
62d5509
Add additional array I/O methods, add ByteBuffer-backed NetInput and …
Aug 23, 2015
885d037
Report when packets are not fully read.
Aug 25, 2015
1b5b2c3
Fix readVarLong.
Aug 14, 2016
333b7d2
Change Disconnect message to the Throwable's message
phase Aug 22, 2016
55b4d8b
Merge pull request #13 from phase/master
Aug 22, 2016
7be81ec
Set Java version to 1.7 in POM
phase Aug 24, 2016
260a778
Merge pull request #14 from phase/master
Aug 24, 2016
f846b96
Generate source and javadoc jars.
Dec 16, 2016
b5bfe24
Expose local and remote addresses of Sessions.
Dec 16, 2016
cc4d986
Ported library to Netty 4.1.4 (Netty 5 has been discontinued) by modi…
Jan 25, 2017
4421890
Merge pull request #16 from jkrossouw/port-netty4
Jan 25, 2017
f51fda3
Fix pom.xml indentation.
Jan 25, 2017
4608261
Migrate away from spacehq.org
Mar 2, 2017
bdefaa6
Bump version for development.
Mar 2, 2017
a17d476
Update license year.
Mar 2, 2017
e8a86da
Fire event before a packet is sent, allowing the operation to be modi…
Jun 26, 2017
c5880f0
Add packetSending stub to SessionAdapter.
Jun 27, 2017
ca0dec4
Format code.
Sep 1, 2017
73cd1fd
Bump version to 1.1 for release.
Jan 14, 2018
0d32cd5
Bump version for development.
Jan 14, 2018
880393f
Clean up pom.xml
Feb 1, 2018
a100a4f
Pom enhancements
sgdc3 Feb 1, 2018
bc07f0f
Bump netty version
sgdc3 Feb 1, 2018
2daecb5
Merge pull request #18 from sgdc3/master
Feb 1, 2018
5861575
Bump version for release 1.2
Feb 6, 2018
ad0a450
Bump version for development.
Feb 6, 2018
d81fdd0
Update netty version.
Jun 3, 2018
d6ed28c
Bump version to 1.3
Jun 3, 2018
26b127a
Bump version to 1.4-SNAPSHOT
Jun 3, 2018
3e07b2e
Add argLine to properties.
Jul 2, 2018
9ec1cc1
Fix typo and link to example in README.md
Jul 4, 2018
2e53f6b
Update surefire plugin to 2.22.0
Aug 20, 2018
988d411
Fix documentation mistake.
Aug 30, 2018
1d5a0ad
Use Cipher mode constants.
Sep 6, 2018
1431dfc
Add CI action.
Aug 28, 2019
32247f3
Remove dot from end of host in SRV records.
Oct 21, 2019
c0fae1d
Update netty version.
Oct 21, 2019
a5712ac
Bump version to 1.4
Oct 21, 2019
d05bdad
Bump version to 1.5-SNAPSHOT
Oct 21, 2019
d725ce0
Implement proper NIO proxy support and remove synchronous support from
Feb 27, 2020
b23b6f8
Bump version to 1.5
Apr 20, 2020
29f960a
Bump version to 1.6-SNAPSHOT
Apr 20, 2020
b98e525
Change SRV lookup code to use dnsjava.
Apr 21, 2020
43b394d
Check if DNS lookup result is null.
Apr 21, 2020
27cdf88
Add BufferedPacket
ipbeegle May 21, 2020
74ee4fa
Small optimization to PacketProtocol.getOutgoingId(Class<? extends Pa…
ipbeegle May 21, 2020
dbefdf5
Merge pull request #20 from ipbeegle/add-bufferedpacket
May 21, 2020
614d56c
Add PacketErrorEvent, allowing packet I/O exceptions to be ignored.
May 23, 2020
c1f3717
Update PacketProtocol
ipbeegle May 25, 2020
e3208ef
Update pom to target Java 1.8
ipbeegle May 25, 2020
3072587
Update StreamNetInput
ipbeegle May 25, 2020
3c5b1f4
Merge branch 'master' of https://github.com/Steveice10/PacketLib.git
ipbeegle May 25, 2020
f2adf41
Add reset method to StreamNetInput
ipbeegle May 25, 2020
68542b8
Update PacketProtocol
ipbeegle May 25, 2020
ff20c8f
Change StreamNetInput, StreamNetOutput
ipbeegle May 25, 2020
5f73b5a
Merge pull request #21 from ipbeegle/master
May 25, 2020
5291bea
Add flag for printing DNS resolution errors.
May 30, 2020
fd7772a
Improve implementation of flag methods.
May 30, 2020
8eaefa9
Add javadocs to BuiltinFlags.
May 30, 2020
d82b1b6
Change DNS error printing to a debug printing flag.
May 30, 2020
12d2601
Update dnsjava to 3.1.0 and add result to debug output.
May 30, 2020
be70b05
More improvements to flag methods.
May 30, 2020
72bde6a
Fix stack overflow in flag methods.
May 30, 2020
b025025
Call PacketErrorEvent for more I/O errors.
Jun 1, 2020
8dbe3d0
Make sure bad packet data is skipped when errors are suppressed.
Jun 1, 2020
75f0f02
Move priority packet handling to channelRead0.
Jun 1, 2020
bfd0687
Replace dnsjava with netty DNS support.
Jun 1, 2020
d8bfc98
Properly release DNS query resources.
Jun 3, 2020
dc9d37f
Bump version to 1.6
Jun 6, 2020
9a11ced
Bump version to 1.7-SNAPSHOT
Jun 6, 2020
42e417f
Replace session host and port with resolved SRV record, bump version …
Jun 28, 2020
bb12069
Bump version to 1.8-SNAPSHOT.
Jun 28, 2020
ead6afa
Move DnsNameResolver creation into try-catch block.
Nov 21, 2020
a10416b
Bump Netty to 4.1.56.Final
mikroskeem Dec 19, 2020
7b9af65
Add netty-codec-haproxy dependency
mikroskeem Dec 19, 2020
b943453
Resolve remote address eagerly
mikroskeem Dec 19, 2020
a651cb0
Implement HAProxy PROXY protocol support for client
mikroskeem Dec 19, 2020
54f761c
Merge pull request #24 from mikroskeem/feature/haproxy-proxy-protocol…
Dec 19, 2020
30588f7
Add local address binding to Client
VADemon Dec 21, 2020
8320113
Use proper Client constructor
VADemon Dec 23, 2020
1df0255
Local address binding: return bind addresses from Session if connected
VADemon Dec 23, 2020
126b0e6
Use proper @Nullable annotation from spotbugs
VADemon Dec 23, 2020
f37d2ea
Merge pull request #25 from VADemon/custom-local-interface
Dec 23, 2020
09d7774
Default client local address to 0.0.0.0.
Jan 15, 2021
f29aa03
Bump version to 1.8
Jan 15, 2021
87206da
Bump version to 2.0-SNAPSHOT
Jan 15, 2021
19a9b2b
Collapse Client and Server into *ClientSession and ConnectionListener.
Jan 15, 2021
312cff5
Optimize SRV resolving only when required
Camotoy Mar 17, 2021
ac56007
Merge pull request #30 from Camotoy/srvresolvingadjustment
Mar 17, 2021
fa191ed
Release 2.0.
May 13, 2021
b343e25
Bump to snapshot version.
May 13, 2021
14e9871
Update license year.
May 13, 2021
e6ca9ec
Check is epoll available and use it if so
TeksuSiK Aug 15, 2021
e992437
Changew ServerSocketChannel implementation classes to SocketChannel i…
TeksuSiK Aug 15, 2021
5282527
Update dependiences and add io_uring pool
TeksuSiK Aug 15, 2021
d23c3ac
Implement IO_URING async syscalls interface
TeksuSiK Aug 15, 2021
bc42215
Fix mistake in socket channel initialization for Nio
TeksuSiK Aug 15, 2021
09f620e
Add io_uring DatagramChannel to DNS resolver queries
TeksuSiK Aug 15, 2021
d9a277f
Move determine transport method to helper
TeksuSiK Aug 15, 2021
f36884a
Merge pull request #32 from TeksuSiK/epoll
Aug 15, 2021
f750ba1
Add Discord link
Camotoy Oct 5, 2021
ccfb1aa
Fix memory leak by closing De-/Inflater (#36)
RaphiMC Oct 26, 2021
2776c24
Merge in Geyser changes to master (#38)
Camotoy Nov 12, 2021
489979d
Require packets to have a NetInput constructor
Camotoy Nov 13, 2021
e295601
Replace reflection usage with packet factories
Redned235 Nov 13, 2021
98d9d91
Remove deprecations here and any reflection usage
Redned235 Nov 13, 2021
6c0f107
Don't bump version as we are still on snapshot
Redned235 Nov 13, 2021
459e528
Update examples to reflect changes done
Redned235 Nov 13, 2021
37e2fc7
Add open collab repo and deploy on Jenkins
Redned235 Nov 13, 2021
7488f8f
Remove connector referece
Redned235 Nov 13, 2021
d89ca05
Remove pl too
Redned235 Nov 13, 2021
30a14ca
Aaaand am
Redned235 Nov 13, 2021
3fdf9ea
Allow for registering with packet definition directly
Redned235 Nov 13, 2021
b1c8555
Update incoming & outgoing naming to serverbound & clientbound
Redned235 Nov 13, 2021
816c0db
Fix javadoc
Redned235 Nov 13, 2021
ec983f1
Remove final for some packet methods
Redned235 Nov 13, 2021
1188c14
Replace reflection usage with a supplier
Redned235 Nov 14, 2021
2a8d18a
Add an option to read from enum
Camotoy Nov 15, 2021
a61bcb9
Use a constructor parameter to determine clientsideness in packet enc…
Camotoy Nov 24, 2021
67fb81e
Reduce unnecessary checks and only add encryption when enabled
Camotoy Nov 25, 2021
9e38c61
Remove allocations for packet receive and send events
Camotoy Nov 25, 2021
4cb1588
Add option to validate decompression
Camotoy Dec 21, 2021
6c9483e
Release 2.1
Camotoy Dec 21, 2021
50b53e8
Add switch case for KQueue in TcpServer#bindImpl (#42)
TeksuSiK Jan 5, 2022
a09d0fd
Sync the future on wait (#43)
TeksuSiK Jan 5, 2022
4e4d8af
Temp revert "Sync the future on wait (#43)" for snapshot
Camotoy Jan 9, 2022
cc069e6
Bump to 2.2-SNAPSHOT
Camotoy Jan 9, 2022
d908ccc
Sync the future on wait (#43)
TeksuSiK Jan 5, 2022
7ff2c93
Fix Kqueue init (#44)
HookWoods Feb 1, 2022
3a51f53
PacketLib 3.0
Redned235 May 29, 2022
8b4a2aa
Don't rely on this data always being the same here
Redned235 May 30, 2022
dfb471d
Use Fastutil
Camotoy Jun 4, 2022
57342e7
PacketLib 3.0
Redned235 Jun 5, 2022
4fbb472
Bump to 3.0.1-SNAPSHOT
Tim203 Dec 18, 2022
d9b9b1f
Merge pull request #46
valaphee Dec 18, 2022
e21e6c4
Release 3.0.1
Tim203 Dec 18, 2022
910a000
Merge packetlib w/ commit history
Kas-tle Mar 9, 2023
12e3723
Exclude packetlib from javadoc for now
Kas-tle Mar 9, 2023
81131c4
No longer depend on packetlib
Kas-tle Mar 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@ pipeline {
when {
branch "master"
}
pipeline {
agent any
tools {
maven 'Maven 3'
jdk 'Java 8'
}
options {
buildDiscarder(logRotator(artifactNumToKeepStr: '20'))
}
stages {
stage ('Build') {
steps {
sh 'mvn clean package'
}
post {
success {
archiveArtifacts artifacts: 'target/*.jar', excludes: 'target/*-sources.jar', fingerprint: true
}
}
}

stage ('Deploy') {
when {
branch "master"
}

steps {
rtMavenDeployer(
Expand Down Expand Up @@ -50,4 +75,4 @@ pipeline {
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package com.github.steveice10.packetlib.test;

import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectingEvent;
import com.github.steveice10.packetlib.event.session.SessionAdapter;
import com.github.steveice10.packetlib.packet.Packet;

public class ClientSessionListener extends SessionAdapter {
@Override
public void packetReceived(Session session, Packet packet) {
if (packet instanceof PingPacket) {
String id = ((PingPacket) packet).getPingId();

System.out.println("CLIENT Received: " + id);

if (id.equals("hello")) {
session.send(new PingPacket("exit"));
} else if (id.equals("exit")) {
session.disconnect("Finished");
}
}
}

@Override
public void packetSent(Session session, Packet packet) {
if (packet instanceof PingPacket) {
System.out.println("CLIENT Sent: " + ((PingPacket) packet).getPingId());
}
}

@Override
public void connected(ConnectedEvent event) {
System.out.println("CLIENT Connected");

event.getSession().enableEncryption(((TestProtocol) event.getSession().getPacketProtocol()).getEncryption());
event.getSession().send(new PingPacket("hello"));
}

@Override
public void disconnecting(DisconnectingEvent event) {
System.out.println("CLIENT Disconnecting: " + event.getReason());
}

@Override
public void disconnected(DisconnectedEvent event) {
System.out.println("CLIENT Disconnected: " + event.getReason());
}
}
32 changes: 32 additions & 0 deletions example/com/github/steveice10/packetlib/test/PingPacket.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.github.steveice10.packetlib.test;

import com.github.steveice10.packetlib.codec.PacketCodecHelper;
import com.github.steveice10.packetlib.packet.Packet;

import java.io.IOException;

public class PingPacket implements Packet {
private final String id;

public PingPacket(ByteBuf buf, PacketCodecHelper codecHelper) throws IOException {
this.id = codecHelper.readString(buf);
}

public PingPacket(String id) {
this.id = id;
}

public String getPingId() {
return this.id;
}

@Override
public void write(ByteBuf buf, PacketCodecHelper codecHelper) throws IOException {
codecHelper.writeString(buf, this.id);
}

@Override
public boolean isPriority() {
return false;
}
}
31 changes: 31 additions & 0 deletions example/com/github/steveice10/packetlib/test/PingServerTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.github.steveice10.packetlib.test;

import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.tcp.TcpClientSession;
import com.github.steveice10.packetlib.tcp.TcpServer;

import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import java.security.NoSuchAlgorithmException;

public class PingServerTest {
public static void main(String[] args) {
SecretKey key;
try {
KeyGenerator gen = KeyGenerator.getInstance("AES");
gen.init(128);
key = gen.generateKey();
} catch(NoSuchAlgorithmException e) {
System.err.println("AES algorithm not supported, exiting...");
return;
}

Server server = new TcpServer("127.0.0.1", 25565, TestProtocol::new);
server.addListener(new ServerListener(key));
server.bind();

Session client = new TcpClientSession("127.0.0.1", 25565, new TestProtocol(key));
client.connect();
}
}
46 changes: 46 additions & 0 deletions example/com/github/steveice10/packetlib/test/ServerListener.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package com.github.steveice10.packetlib.test;

import com.github.steveice10.packetlib.event.server.ServerAdapter;
import com.github.steveice10.packetlib.event.server.ServerBoundEvent;
import com.github.steveice10.packetlib.event.server.ServerClosedEvent;
import com.github.steveice10.packetlib.event.server.ServerClosingEvent;
import com.github.steveice10.packetlib.event.server.SessionAddedEvent;
import com.github.steveice10.packetlib.event.server.SessionRemovedEvent;

import javax.crypto.SecretKey;

public class ServerListener extends ServerAdapter {
private SecretKey key;

public ServerListener(SecretKey key) {
this.key = key;
}

@Override
public void serverBound(ServerBoundEvent event) {
System.out.println("SERVER Bound: " + event.getServer().getHost() + ":" + event.getServer().getPort());
}

@Override
public void serverClosing(ServerClosingEvent event) {
System.out.println("CLOSING SERVER...");
}

@Override
public void serverClosed(ServerClosedEvent event) {
System.out.println("SERVER CLOSED");
}

@Override
public void sessionAdded(SessionAddedEvent event) {
System.out.println("SERVER Session Added: " + event.getSession().getHost() + ":" + event.getSession().getPort());
((TestProtocol) event.getSession().getPacketProtocol()).setSecretKey(this.key);
event.getSession().enableEncryption(((TestProtocol) event.getSession().getPacketProtocol()).getEncryption());
}

@Override
public void sessionRemoved(SessionRemovedEvent event) {
System.out.println("SERVER Session Removed: " + event.getSession().getHost() + ":" + event.getSession().getPort());
event.getServer().close(false);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.github.steveice10.packetlib.test;

import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.event.session.ConnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectedEvent;
import com.github.steveice10.packetlib.event.session.DisconnectingEvent;
import com.github.steveice10.packetlib.event.session.SessionAdapter;
import com.github.steveice10.packetlib.packet.Packet;

public class ServerSessionListener extends SessionAdapter {
@Override
public void packetReceived(Session session, Packet packet) {
if (packet instanceof PingPacket) {
System.out.println("SERVER Received: " + ((PingPacket) packet).getPingId());
session.send(packet);
}
}

@Override
public void packetSent(Session session, Packet packet) {
if (packet instanceof PingPacket) {
System.out.println("SERVER Sent: " + ((PingPacket) packet).getPingId());
}
}

@Override
public void connected(ConnectedEvent event) {
System.out.println("SERVER Connected");
}

@Override
public void disconnecting(DisconnectingEvent event) {
System.out.println("SERVER Disconnecting: " + event.getReason());
}

@Override
public void disconnected(DisconnectedEvent event) {
System.out.println("SERVER Disconnected: " + event.getReason());
}
}
62 changes: 62 additions & 0 deletions example/com/github/steveice10/packetlib/test/TestProtocol.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package com.github.steveice10.packetlib.test;

import com.github.steveice10.packetlib.Server;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.crypt.AESEncryption;
import com.github.steveice10.packetlib.crypt.PacketEncryption;
import com.github.steveice10.packetlib.packet.DefaultPacketHeader;
import com.github.steveice10.packetlib.packet.PacketHeader;
import com.github.steveice10.packetlib.packet.PacketProtocol;

import javax.crypto.SecretKey;
import java.security.GeneralSecurityException;

public class TestProtocol extends PacketProtocol {
private final PacketHeader header = new DefaultPacketHeader();
private AESEncryption encrypt;

@SuppressWarnings("unused")
public TestProtocol() {
}

public TestProtocol(SecretKey key) {
this.setSecretKey(key);
}

public PacketCodecHelper createHelper() {
return new BasePacketCodecHelper();
}

public void setSecretKey(SecretKey key) {
this.register(0, PingPacket.class, PingPacket::new);
try {
this.encrypt = new AESEncryption(key);
} catch(GeneralSecurityException e) {
e.printStackTrace();
}
}

@Override
public String getSRVRecordPrefix() {
return "_test";
}

@Override
public PacketHeader getPacketHeader() {
return this.header;
}

public PacketEncryption getEncryption() {
return this.encrypt;
}

@Override
public void newClientSession(Session session) {
session.addListener(new ClientSessionListener());
}

@Override
public void newServerSession(Server server, Session session) {
session.addListener(new ServerSessionListener());
}
}
37 changes: 31 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@
<version>1.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.steveice10</groupId>
<artifactId>packetlib</artifactId>
<version>3.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.GeyserMC</groupId>
<artifactId>mcauthlib</artifactId>
Expand Down Expand Up @@ -135,6 +129,37 @@
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.66.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-haproxy</artifactId>
<version>4.1.66.Final</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>io.netty.incubator</groupId>
<artifactId>netty-incubator-transport-native-io_uring</artifactId>
<version>0.0.8.Final</version>
<classifier>linux-x86_64</classifier>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.3.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.nukkitx.fastutil</groupId>
<artifactId>fastutil-int-object-maps</artifactId>
<version>8.5.2</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
Expand Down
Loading