Skip to content

Commit

Permalink
Add release name
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Oct 25, 2022
1 parent 4145c11 commit 548b3c0
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 28 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,34 @@ A Bukkit server implementation utilizing Mixin.

![Actions](https://img.shields.io/github/workflow/status/IzzelAliz/Arclight/Java%20CI%20with%20Gradle?style=flat-square) ![GitHub](https://img.shields.io/github/license/IzzelAliz/Arclight?style=flat-square)

| Minecraft | Forge | Status | Build |
|:---------:|:-------:| :---: |:------------------------------------------------------------------------------------------------------------------------------------------------------:|
| 1.19.x | 43.1.3 | ACTIVE | [![1.19 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-19?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-19) |
| 1.18.x | 40.1.80 | ACTIVE | [![1.18 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-18?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-18) |
| 1.17.x | 37.1.0 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.17/1.0.2) | [![1.17 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-17?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-17) |
| 1.16.x | 36.2.39 | ACTIVE | [![1.16 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-16?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-16) |
| 1.15.x | 31.2.48 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.15/1.0.19) | [![1.15 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-15?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-15) |
| 1.14.x | 28.2.0 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.0.6) | [![1.14 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight) |
| Release | Forge | Status | Build |
|:-------------:|:-------:|:------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:|
| Horn (1.19.x) | 43.1.3 | ACTIVE | [![1.19 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-19?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-19) |
| 1.18.x | 40.1.80 | LTS | [![1.18 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-18?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-18) |
| 1.16.x | 36.2.39 | LTS | [![1.16 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-16?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-16) |

**Legacy versions**:

<details>

| Release | Forge | Status | Build |
|:-------:|:-------:|:------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------:|
| 1.17.x | 37.1.0 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.17/1.0.2) | [![1.17 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-17?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-17) |
| 1.15.x | 31.2.48 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.15/1.0.19) | [![1.15 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight-15?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight-15) |
| 1.14.x | 28.2.0 | [LEGACY](https://github.com/IzzelAliz/Arclight/releases/tag/1.0.6) | [![1.14 Status](https://img.shields.io/appveyor/build/IzzelAliz/arclight?style=flat-square)](https://ci.appveyor.com/project/IzzelAliz/arclight) |

* Legacy version still accepts pull requests.

</details>

![](.github/arclightlogo.jpg)

## Installing

* Download the jar from [release page](https://github.com/IzzelAliz/Arclight/releases) or build server. (see the table
above)
* Launch with command `java -jar arclight-forge-<mc>-<version>.jar nogui`. The `nogui` argument will disable the server control panel.
* Launch with command `java -jar arclight-forge-<mc>-<version>.jar nogui`. The `nogui` argument will disable the server
control panel.

## Support

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.common.collect.ImmutableList;
import com.mojang.datafixers.DataFixer;
import com.mojang.serialization.DynamicOps;
import io.izzel.arclight.api.ArclightVersion;
import io.izzel.arclight.common.bridge.core.command.ICommandSourceBridge;
import io.izzel.arclight.common.bridge.core.server.MinecraftServerBridge;
import io.izzel.arclight.common.bridge.core.world.WorldBridge;
Expand Down Expand Up @@ -548,7 +549,7 @@ public CompletableFuture<Void> reloadResources(Collection<String> p_129862_) {
@DontObfuscate
@Overwrite
public String getServerModName() {
return BrandingControl.getServerBranding() + " arclight";
return BrandingControl.getServerBranding() + " arclight/" + ArclightVersion.current().getReleaseName();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import io.izzel.arclight.api.ArclightVersion;
import io.izzel.arclight.api.EnumHelper;
import io.izzel.arclight.api.Unsafe;
import io.izzel.arclight.common.bridge.bukkit.EntityTypeBridge;
Expand Down Expand Up @@ -94,6 +95,7 @@ public class BukkitRegistry {
private static final BiMap<ResourceLocation, Statistic> STATS = HashBiMap.create(Unsafe.getStatic(CraftStatistic.class, "statistics"));

public static void registerAll() {
CrashReportCallables.registerCrashCallable("Arclight Release", ArclightVersion.current()::getReleaseName);
CrashReportCallables.registerCrashCallable("Arclight", new CraftCrashReport());
loadMaterials();
loadPotions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,20 @@ protected void dirtyHacks() throws Exception {
var cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
node.accept(cw);
byte[] bytes = cw.toByteArray();
Unsafe.defineClass("com.mojang.brigadier.tree.CommandNode", bytes, 0, bytes.length, IModLocator.class.getClassLoader() /* MC-BOOTSTRAP */ , getClass().getProtectionDomain());
Unsafe.defineClass("com.mojang.brigadier.tree.CommandNode", bytes, 0, bytes.length, IModLocator.class.getClassLoader() /* MC-BOOTSTRAP */, getClass().getProtectionDomain());
}
}

protected void setupMod() throws Exception {
ArclightVersion.setVersion(ArclightVersion.v1_19_R1);
ArclightVersion.setVersion(ArclightVersion.HORN);
try (InputStream stream = getClass().getModule().getResourceAsStream("/META-INF/MANIFEST.MF")) {
Manifest manifest = new Manifest(stream);
Attributes attributes = manifest.getMainAttributes();
String version = attributes.getValue(Attributes.Name.IMPLEMENTATION_VERSION);
extract(getClass().getModule().getResourceAsStream("/common.jar"), version);
String buildTime = attributes.getValue("Implementation-Timestamp");
LogManager.getLogger("Arclight").info(ArclightLocale.getInstance().get("logo"), version, buildTime);
LogManager.getLogger("Arclight").info(ArclightLocale.getInstance().get("logo"),
ArclightLocale.getInstance().get("release-name." + ArclightVersion.current().getReleaseName()), version, buildTime);
}
}

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ allprojects {
agpVersion = '1.23'
minecraftVersion = '1.19.2'
forgeVersion = '43.1.3'
apiVersion = '1.4.0'
toolsVersion = '1.3.+'
apiVersion = '1.5.0'
toolsVersion = '1.3.0'
mixinVersion = '0.8.5'
gitHash = getGitHash()
}
Expand Down
15 changes: 7 additions & 8 deletions i18n-config/src/main/resources/META-INF/i18n/en_us.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ logo = [
" §1/_/ |§9/_/ §3\\__§6/_§e/_/§6\\_ /_//_/ /"
" §1 §9 §3 §6 §e §6/__/ \\/"
""
" §aVersion {}"
" §aVersion {} / {}"
" §aBuild Date {}"
""
]
# Translate the word in parenthesis only.
# If there's same Chinese word with same meaning in your language(i.e. Kanji in Japanese), then remove the parenthesis.
release-name {
Horn = "角 (Horn)"
}
java {
deprecated = [
"You are running an outdated Java version"
Expand Down Expand Up @@ -82,12 +87,6 @@ comments {
locale.comment = "Language/I18n settings"
optimization {
comment = "Optimization related settings"
disable-data-fixer.comment = [
"Disable the DataFixerUpper system which is used for level data upgrading"
"This can hopefully speedup startup and world load and reduce memory usage of 80-200mb"
"Arclight and its developers are not reponsible for any data loss or corruption"
"DO NOT USE IN PRODUCTION!"
]
goal-selector-update-interval.comment = [
"Interval in ticks to update the goal selector"
"Higher values costs less resources"
Expand All @@ -105,7 +104,7 @@ comments {
async-catcher.dump.comment = "Dump stack trace information in debug.log"
compatibility {
symlink-world.comment = [
"Create symbol links to mod dimension folder that matches Bukkit format"
"Create symbol links to mod dimension folder that matches Bukkit world name"
"Enable this could improve plugin compotibility"
"Changing this on production server will cause changes to mod world names"
" and cause data loss on plugins relying world names"
Expand Down
2 changes: 1 addition & 1 deletion i18n-config/src/main/resources/META-INF/i18n/es_es.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ logo = [
" §1/_/ |§9/_/ §3\\__§6/_§e/_/§6\\_ /_//_/ /"
" §1 §9 §3 §6 §e §6/__/ \\/"
""
" §aVersión {}"
" §aVersión {} / {}"
" §aFecha de compilación {}"
""
]
Expand Down
2 changes: 1 addition & 1 deletion i18n-config/src/main/resources/META-INF/i18n/fr_fr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ logo = [
" §1/_/ |§9/_/ §3\\__§6/_§e/_/§6\\_ /_//_/ /"
" §1 §9 §3 §6 §e §6/__/ \\/"
""
" §aVersion {}"
" §aVersion {} / {}"
" §aDate du Build {}"
""
]
Expand Down
2 changes: 1 addition & 1 deletion i18n-config/src/main/resources/META-INF/i18n/ko_kr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ logo = [
" §1/_/ |§9/_/ §3\\__§6/_§e/_/§6\\_ /_//_/ /"
" §1 §9 §3 §6 §e §6/__/ \\/"
""
" §a버전: {}"
" §a버전: {} / {}"
" §a빌드 날짜: {}"
""
]
Expand Down
2 changes: 1 addition & 1 deletion i18n-config/src/main/resources/META-INF/i18n/ru_ru.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ logo = [
" §1/_/ |§9/_/ §3\\__§6/_§e/_/§6\\_ /_//_/ /"
" §1 §9 §3 §6 §e §6/__/ \\/"
""
" §aВерсия {}"
" §aВерсия {} / {}"
" §aДата сборки {}"
""
]
Expand Down
5 changes: 4 additions & 1 deletion i18n-config/src/main/resources/META-INF/i18n/zh_cn.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ logo = [
" §1/_/ |§9/_/ §3\\__§6/_§e/_/§6\\_ /_//_/ /"
" §1 §9 §3 §6 §e §6/__/ \\/"
""
" §a运行版本 {}"
" §a运行版本 {} / {}"
" §a构建日期 {}"
""
]
release-name {
Horn = "角"
}
java {
deprecated = [
"您正在使用过时的 Java 版本"
Expand Down

0 comments on commit 548b3c0

Please sign in to comment.