Skip to content
Merged
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
31 changes: 25 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
/*
* Copyright (c) 2026 Alya Client.
*
* Alya Client is a free, open-source Minecraft hacked client.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer

plugins {
java
id("com.gradleup.shadow") version "9.4.0"
id("com.gradleup.shadow") version "9.4.1"
}

group = "dev.thoq"
Expand Down Expand Up @@ -110,11 +130,10 @@ dependencies {
}
implementation("org.luaj:luaj-jse:3.0.1")
implementation("org.yaml:snakeyaml:2.2")
compileOnly("com.viaversion:viaversion-api:4.9.0")
implementation("com.viaversion:viabackwards:4.9.2")
implementation("com.viaversion:viarewind-common:3.0.6")
implementation("com.viaversion:viaversion:4.9.3")
implementation("com.viaversion:viaversion-bungee:4.9.3")
compileOnly("com.viaversion:viaversion-api:5.3.0")
implementation("com.viaversion:viabackwards:5.3.0")
implementation("com.viaversion:viarewind-common:4.0.6")
implementation("com.viaversion:viaversion:5.3.0")
}

configurations.all {
Expand Down
20 changes: 20 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
#
# Copyright (c) 2026 Alya Client.
#
# Alya Client is a free, open-source Minecraft hacked client.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

org.gradle.configuration-cache=false
22 changes: 21 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
#
# Copyright (c) 2026 Alya Client.
#
# Alya Client is a free, open-source Minecraft hacked client.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
24 changes: 13 additions & 11 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions jars/run_config/Start (macOS).run.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
<!--
~ Copyright (c) 2026 Alya Client.
~
~ Alya Client is a free, open-source Minecraft hacked client.
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along
~ with this program; if not, write to the Free Software Foundation, Inc.,
~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-->

<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Start (macOS)" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="start.Main" />
Expand Down
20 changes: 20 additions & 0 deletions jars/run_config/Start.run.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
<!--
~ Copyright (c) 2026 Alya Client.
~
~ Alya Client is a free, open-source Minecraft hacked client.
~
~ This program is free software; you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation; either version 2 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along
~ with this program; if not, write to the Free Software Foundation, Inc.,
~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-->

<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Start" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="start.Main" />
Expand Down
22 changes: 22 additions & 0 deletions jars/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash

#
# Copyright (c) 2026 Alya Client.
#
# Alya Client is a free, open-source Minecraft hacked client.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

set -euo pipefail

# Hey you!
Expand All @@ -25,6 +45,8 @@ $JDK_PATH "-XX:HeapDumpPath=$SCRIPT_DIR/Alya.heapdump" \
"-Dminecraft.launcher.brand=minecraft-launcher" \
"-Dminecraft.launcher.version=3.2.13" \
"-Dio.netty.transport.noNative=true" \
--enable-native-access=ALL-UNNAMED \
--sun-misc-unsafe-memory-access=allow \
"-Dminecraft.client.jar=$SCRIPT_DIR/Alya.jar" \
$EXTRA_FLAGS -cp "$CP" -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC \
-XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M \
Expand Down
20 changes: 20 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash

#
# Copyright (c) 2026 Alya Client.
#
# Alya Client is a free, open-source Minecraft hacked client.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

set -euo pipefail

./gradlew shadowJar
20 changes: 20 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/bash

#
# Copyright (c) 2026 Alya Client.
#
# Alya Client is a free, open-source Minecraft hacked client.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

OS_FLAGS=""
if [[ "$OSTYPE" == "darwin"* ]]; then
OS_FLAGS="-XstartOnFirstThread"
Expand Down
20 changes: 20 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Copyright (c) 2026 Alya Client.
*
* Alya Client is a free, open-source Minecraft hacked client.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

rootProject.name = "Alya"

val useLocalLwjglBridge = false
Expand Down
Loading
Loading