Skip to content

Commit 41ff3f4

Browse files
committed
(2.5.6) re-introduce PreLoginEvent
1 parent cfbd6ff commit 41ff3f4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ plugins {
2626
// --
2727
// Variables
2828
// --
29-
version = '2.5.5'
29+
version = '2.5.6'
3030
group = 'net.tcpshield.tcpshield'
3131
archivesBaseName = 'TCPShield'
3232

@@ -109,7 +109,7 @@ dependencies {
109109
// Testing
110110
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0-M1'
111111
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0-M1'
112-
compileOnly 'org.geysermc.floodgate:api:2.0-SNAPSHOT'
112+
compileOnly 'org.geysermc.floodgate:api:2.1.1-SNAPSHOT'
113113
}
114114

115115
processResources {

src/main/java/net/tcpshield/tcpshield/velocity/handler/VelocityHandshakeHandler.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public VelocityHandshakeHandler(TCPShieldPlugin plugin) {
2323
// Turns out this event sometimes passes erroneous hostnames
2424
// which have the null bytes terminated as FML data which causes
2525
// issues with the verification process.
26-
// @Subscribe(order = PostOrder.FIRST)
27-
// public void onPreLogin(PreLoginEvent e) {
28-
// InboundConnection connection = e.getConnection();
29-
// handleEvent(connection, "onPreLogin");
30-
// }
26+
@Subscribe(order = PostOrder.FIRST)
27+
public void onPreLogin(PreLoginEvent e) {
28+
InboundConnection connection = e.getConnection();
29+
handleEvent(connection, "onPreLogin");
30+
}
3131

3232
@Subscribe(order = PostOrder.FIRST)
3333
public void onHandshake(ConnectionHandshakeEvent e) {

src/main/resources/bungee.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: TCPShield
2-
version: 2.5.5
2+
version: 2.5.6
33
main: net.tcpshield.tcpshield.bungee.TCPShieldBungee
44
author: https://tcpshield.com
55
softdepends:

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: TCPShield
2-
version: 2.5.5
2+
version: 2.5.6
33
main: net.tcpshield.tcpshield.bukkit.TCPShieldBukkit
44
softdepend:
55
- ProtocolLib

src/main/resources/velocity-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "tcpshield",
33
"name": "TCPShield",
4-
"version": "2.5.5",
4+
"version": "2.5.6",
55
"description": "TCPShield IP parsing capabilities for Velocity",
66
"authors": [
77
"TCPShield"

0 commit comments

Comments
 (0)