Skip to content

Commit

Permalink
(2.5.6) re-introduce PreLoginEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanKeir committed Feb 2, 2022
1 parent cfbd6ff commit 41ff3f4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ plugins {
// --
// Variables
// --
version = '2.5.5'
version = '2.5.6'
group = 'net.tcpshield.tcpshield'
archivesBaseName = 'TCPShield'

Expand Down Expand Up @@ -109,7 +109,7 @@ dependencies {
// Testing
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.7.0-M1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0-M1'
compileOnly 'org.geysermc.floodgate:api:2.0-SNAPSHOT'
compileOnly 'org.geysermc.floodgate:api:2.1.1-SNAPSHOT'
}

processResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public VelocityHandshakeHandler(TCPShieldPlugin plugin) {
// Turns out this event sometimes passes erroneous hostnames
// which have the null bytes terminated as FML data which causes
// issues with the verification process.
// @Subscribe(order = PostOrder.FIRST)
// public void onPreLogin(PreLoginEvent e) {
// InboundConnection connection = e.getConnection();
// handleEvent(connection, "onPreLogin");
// }
@Subscribe(order = PostOrder.FIRST)
public void onPreLogin(PreLoginEvent e) {
InboundConnection connection = e.getConnection();
handleEvent(connection, "onPreLogin");
}

@Subscribe(order = PostOrder.FIRST)
public void onHandshake(ConnectionHandshakeEvent e) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/bungee.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: TCPShield
version: 2.5.5
version: 2.5.6
main: net.tcpshield.tcpshield.bungee.TCPShieldBungee
author: https://tcpshield.com
softdepends:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: TCPShield
version: 2.5.5
version: 2.5.6
main: net.tcpshield.tcpshield.bukkit.TCPShieldBukkit
softdepend:
- ProtocolLib
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/velocity-plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "tcpshield",
"name": "TCPShield",
"version": "2.5.5",
"version": "2.5.6",
"description": "TCPShield IP parsing capabilities for Velocity",
"authors": [
"TCPShield"
Expand Down

0 comments on commit 41ff3f4

Please sign in to comment.