-
Notifications
You must be signed in to change notification settings - Fork 64
TCPShield v2.5 #38
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
TCPShield v2.5 #38
Conversation
…0 in conjunction with @mikroskreem's PROXY v2 PR. !It's not yet working properly!
This reverts commit d3dd1d7.
…0 in conjunction with @mikroskreem's PROXY v2 PR. !It's not yet working properly!
…plementations because these informations aren't available at this state yet
Adds Fabric support (huge, huge thanks to @Draylar)
|
Pending until Floodgate 2.0 is released |
|
Hey,
Patch which takes it all together and makes it compileable on current floodgate snapshot: diff --git a/build.gradle b/build.gradle
index be900c4..423b3ac 100644
--- a/build.gradle
+++ b/build.gradle
@@ -44,6 +44,12 @@ repositories {
maven {
url = 'https://maven.fabricmc.net/'
}
+ maven {
+ url = 'https://repo.opencollab.dev/maven-snapshots'
+ }
+ maven {
+ url = 'https://repo.opencollab.dev/maven-releases'
+ }
flatDir {
dirs '/libs'
}
@@ -55,7 +61,7 @@ dependencies {
compileOnly group: 'com.comphenix.protocol', name: 'ProtocolLib', version: '4.4.0'
// Paper
- compileOnly group: 'com.destroystokyo.paper', name: 'paper-api', version: '1.16.5-R0.1-20210227.144841-85'
+ compileOnly group: 'com.destroystokyo.paper', name: 'paper-api', version: '1.16.5-R0.1-SNAPSHOT'
// BungeeCord
compileOnly group: 'net.md-5', name: 'bungeecord-api', version: '1.14-SNAPSHOT'
@@ -72,7 +78,7 @@ dependencies {
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.geyser:floodgate-spigot:2.0'
+ compileOnly 'org.geysermc.floodgate:spigot:2.0-SNAPSHOT'
}
test {
@@ -167,4 +173,4 @@ void updateJson() {
}
}
-build.dependsOn updateVersion
\ No newline at end of file
+build.dependsOn updateVersion |
|
|
||
| return new ConfigData(onlyAllowProxyConnections, debugMode); | ||
| } catch (Exception e) { | ||
| throw new TCPShieldInitializationException("Couldn't load config in config/tclshield.yml!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo tclshield - could probably use path extracted from configLocation
|
Floodgate can just reference the API module |
This PR adds support for Geyser, Fabric and Paper without ProtocolLib and removes the illegal access message in some cases.
Geyser
Geyser support only targets Floodgate 2.0 (still in beta).
Huge, huge thanks to the whole GeyserMC team and specifically Tim203 for their incredible support on this journey.
Native Paper
Native paper support depends on a PR only merged recently so it only supports Paper 1.16 build #503 or higher.
Illegal Access
The illegal access message is removed in cases where it isn't needed. The
finalfield is now queried lazily (when it's needed).Fabric
see #40