Make purpur.lang reloadable with

This commit is contained in:
William Blake Galbreath
2020-04-12 16:39:52 -05:00
parent 3630f35339
commit b6d5b8200e
17 changed files with 172 additions and 138 deletions

View File

@@ -1,4 +1,4 @@
From 1eccc9c002bd9a1aae3dd8b3ebd19c49a43fa455 Mon Sep 17 00:00:00 2001
From 61e33c354ed40f8da623cee42e41e9ff1d7de334 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
Date: Wed, 1 Apr 2020 17:21:42 -0500
Subject: [PATCH] Configurable enchantment max level
@@ -740,7 +740,7 @@ index 4571cdf021..aa3cbd523a 100644
public float a(int i, EnumMonsterType enummonstertype) {
return this.a == 0 ? 1.0F + (float) Math.max(0, i - 1) * 0.5F : (this.a == 1 && enummonstertype == EnumMonsterType.UNDEAD ? (float) i * 2.5F : (this.a == 2 && enummonstertype == EnumMonsterType.ARTHROPOD ? (float) i * 2.5F : 0.0F));
diff --git a/src/main/java/net/pl3x/purpur/PurpurConfig.java b/src/main/java/net/pl3x/purpur/PurpurConfig.java
index 3cc03c9e85..b42b3dfa72 100644
index c55e5c1f27..e09cc77785 100644
--- a/src/main/java/net/pl3x/purpur/PurpurConfig.java
+++ b/src/main/java/net/pl3x/purpur/PurpurConfig.java
@@ -1,6 +1,8 @@
@@ -750,9 +750,9 @@ index 3cc03c9e85..b42b3dfa72 100644
+import net.minecraft.server.Enchantment;
+import net.minecraft.server.IRegistry;
import net.minecraft.server.MinecraftServer;
import net.pl3x.purpur.command.PurpurCommand;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
@@ -197,4 +199,12 @@ public class PurpurConfig {
@@ -198,4 +200,12 @@ public class PurpurConfig {
private static void timingsSettings() {
getString("settings.timings.url", "https://timings.pl3x.net");
}