Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion backend-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ plugins {
alias(libs.plugins.shadow)
}

repositories {
maven("https://maven.hytale.com/release")
}

dependencies {
implementation(project(":common"))
compileOnly(files("libs/HytaleServer.jar"))
compileOnly(libs.hytale.server)
}


Expand Down
2 changes: 1 addition & 1 deletion backend-plugin/src/main/resources/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"Website": "https://github.com/xyzeva/hyproxy",
"Main": "ac.eva.hyproxy.plugin.HyProxyBackendPlugin",
"ServerVersion": "*"
"ServerVersion": "2026.03.26-89796e57b"
}
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ allprojects {
}
}

subprojects {
plugins.withId("java") {
configure<JavaPluginExtension> {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
}
}

18 changes: 18 additions & 0 deletions examples/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
plugins {
id("java")
alias(libs.plugins.shadow)
}

dependencies {
implementation(project(":proxy"))
}


tasks.shadowJar {
archiveFileName.set("hyproxy-examples-$version.jar")
mergeServiceFiles()
}

tasks.build {
dependsOn(tasks.shadowJar)
}
18 changes: 18 additions & 0 deletions examples/src/main/java/ac/eva/hyproxy/examples/ExamplePlugin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ac.eva.hyproxy.examples;


import ac.eva.hyproxy.HyProxy;
import ac.eva.hyproxy.event.impl.player.PlayerAuthSuccessEvent;
import ac.eva.hyproxy.examples.commands.TestCommand;
import ac.eva.hyproxy.plugin.HyProxyPlugin;

public class ExamplePlugin implements HyProxyPlugin {

@Override
public void load(HyProxy proxy) {
proxy.getCommandManager().registerCloudAnnotationCommand(new TestCommand());
proxy.getEventBus().subscribe(PlayerAuthSuccessEvent.class, 0, event -> {
System.out.println("Hello: " + event.getPlayer().getUsername());
});
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package ac.eva.hyproxy.examples.commands;

import ac.eva.hyproxy.message.Message;
import ac.eva.hyproxy.player.HyProxyPlayer;
import org.incendo.cloud.annotations.Command;

import java.awt.*;

public class TestCommand {

@Command("example test")
public void testCommand(HyProxyPlayer sender) {
sender.sendMessage(Message.raw("example test").color(Color.GREEN));
}

}
10 changes: 10 additions & 0 deletions examples/src/main/resources/hyproxy-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "test-plugin",
"name": "Test Plugin",
"version": "1.0.0",
"mainClass": "ac.eva.hyproxy.examples.ExamplePlugin",
"description": "Test HyProxy plugin",
"authors": [
"oskarscot"
]
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jose-jwt = "10.6"
tink = "1.20.0"
guava = "33.5.0-jre"
cloud = "2.0.0"
hytale = "2026.03.26-89796e57b"

[plugins]
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
Expand Down Expand Up @@ -48,6 +49,7 @@ nightconfig-toml = { group = "com.electronwill.night-config", name = "toml", ver
jose-jwt = { group = "com.nimbusds", name = "nimbus-jose-jwt", version.ref = "jose-jwt" }
tink = { group = "com.google.crypto.tink", name = "tink", version.ref = "tink" }
guava = { group = "com.google.guava", name = "guava", version.ref = "guava" }
hytale-server = { group = "com.hypixel.hytale", name = "Server", version.ref = "hytale" }

[bundles]
netty = ["netty-codec", "netty-handler", "netty-transport-native-epoll", "netty-transport-native-kqueue", "netty-codec-classes-quic"]
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions proxy/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("java")
`java-library`
alias(libs.plugins.shadow)
}

Expand All @@ -12,7 +12,7 @@ dependencies {
implementation(libs.bundles.netty)
implementation(libs.bundles.log4j)
implementation(libs.bundles.unirest)
implementation(libs.bundles.cloud)
api(libs.bundles.cloud)

implementation(libs.terminalconsoleappender)
implementation(libs.nightconfig.toml)
Expand Down
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ rootProject.name = "hyproxy"

include("proxy")
include("common")
include("backend-plugin")
include("backend-plugin")
include("examples")