Skip to content

Commit

Permalink
Support 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BoomEaro committed Mar 26, 2023
1 parent 36c40a6 commit e44d318
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public abstract class DefaultTranslateManager implements TranslateManager {

private List<LangType> enabledLanguages = new ArrayList<>();

private static final String TRANSLATION_FILE_URL = "http://resources.download.minecraft.net/%s/%s";
private static final String TRANSLATION_FILE_URL = "https://resources.download.minecraft.net/%s/%s";

public DefaultTranslateManager(String version, JavaPlugin javaPlugin) {
this.version = version;
Expand Down
4 changes: 0 additions & 4 deletions NMS/1_19_R2/build.gradle

This file was deleted.

4 changes: 4 additions & 0 deletions NMS/1_19_R3/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies {
compileOnly project(":Common")
compileOnly 'org.spigotmc:spigot:1.19.4-R0.1-SNAPSHOT'
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.google.common.base.Preconditions;
import org.bukkit.block.Biome;
import org.bukkit.craftbukkit.v1_19_R2.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_19_R3.inventory.CraftItemStack;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.EntityType;
import org.bukkit.inventory.ItemStack;
Expand All @@ -15,10 +15,10 @@
import net.minecraft.world.item.ItemSplashPotion;
import net.minecraft.world.item.alchemy.PotionUtil;

public class Translate1_19_R2 extends JsonTranslateManager {
public class Translate1_19_R3 extends JsonTranslateManager {

public Translate1_19_R2(JavaPlugin javaPlugin) {
super("1.19.3", javaPlugin);
public Translate1_19_R3(JavaPlugin javaPlugin) {
super("1.19.4", javaPlugin);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion Plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
compileOnly project(":NMS:1_16_R3")
compileOnly project(":NMS:1_17_R1")
compileOnly project(":NMS:1_18_R2")
compileOnly project(":NMS:1_19_R2")
compileOnly project(":NMS:1_19_R3")
}

processResources {
Expand Down
4 changes: 2 additions & 2 deletions Plugin/src/main/java/ru/boomearo/langhelper/LangHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import ru.boomearo.langhelper.versions.Translate1_16_R3;
import ru.boomearo.langhelper.versions.Translate1_17_R1;
import ru.boomearo.langhelper.versions.Translate1_18_R2;
import ru.boomearo.langhelper.versions.Translate1_19_R2;
import ru.boomearo.langhelper.versions.Translate1_19_R3;
import ru.boomearo.langhelper.versions.TranslateManager;
import ru.boomearo.langhelper.versions.exceptions.LangException;
import ru.boomearo.langhelper.versions.exceptions.LangParseException;
Expand All @@ -38,7 +38,7 @@ public class LangHelper extends JavaPlugin {
Translate1_16_R3.class,
Translate1_17_R1.class,
Translate1_18_R2.class,
Translate1_19_R2.class
Translate1_19_R3.class
);

@Override
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LangHelper - это простой API плагин, который позвол
1.16.5,
1.17.1,
1.18.2,
1.19.3
1.19.4

Плагин поддерживает все языки которые поддерживает сам Minecraft.
При первом включении, плагин скачает с сервера Mojang поддерживаемые языки в папку LangHelper/languages/'версия'/
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies {
api project(":NMS:1_16_R3")
api project(":NMS:1_17_R1")
api project(":NMS:1_18_R2")
api project(":NMS:1_19_R2")
api project(":NMS:1_19_R3")
}

shadowJar {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rootProject.name = 'LangHelper'

include ':Common', ':Plugin', ':NMS:1_12_R1', ':NMS:1_13_R2', ':NMS:1_14_R1', ':NMS:1_15_R1', ':NMS:1_16_R3', ':NMS:1_17_R1', ':NMS:1_18_R2', ':NMS:1_19_R2'
include ':Common', ':Plugin', ':NMS:1_12_R1', ':NMS:1_13_R2', ':NMS:1_14_R1', ':NMS:1_15_R1', ':NMS:1_16_R3', ':NMS:1_17_R1', ':NMS:1_18_R2', ':NMS:1_19_R3'

0 comments on commit e44d318

Please sign in to comment.