Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 9e199e8

Browse files
committed
1.13.1
1 parent 281eedc commit 9e199e8

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

build.gradle

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,17 @@ repositories {
4848
name 'ess-repo'
4949
url 'http://repo.ess3.net/content/groups/essentials'
5050
}
51-
52-
maven {
53-
name 'nu-langchecker'
54-
url 'https://raw.githubusercontent.com/Librazy/NyaaUtilsLangChecker/maven-repo'
55-
}
56-
57-
maven {
58-
url 'https://raw.github.com/MascusJeoraly/LanguageUtils/mvn-repo/'
59-
}
6051
}
6152

6253
dependencies {
63-
compile 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT'
64-
compile('cat.nyaa:nyaacore:6.1-SNAPSHOT') {
54+
compile 'org.spigotmc:spigot-api:1.13.1-R0.1-SNAPSHOT'
55+
compile('cat.nyaa:nyaacore:6.2-SNAPSHOT') {
6556
transitive = false
6657
}
6758
compile files('lib/LocketteProAPI.jar')
6859
compile files('lib/EssentialsX-2.0.1-468.jar')
6960
compile 'com.sk89q.worldedit:worldedit-bukkit:6.1.5'
7061
compile 'org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
71-
compile('com.meowj:LangUtils:1.9') {
72-
transitive = false
73-
}
7462
}
7563

7664
String nyaaCoreLangDir = System.getenv("NYAACORE_LANG_DIR")

src/main/java/cat/nyaa/nyaautils/enchant/EnchantCommands.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import cat.nyaa.nyaacore.utils.LocaleUtils;
88
import cat.nyaa.nyaautils.I18n;
99
import cat.nyaa.nyaautils.NyaaUtils;
10-
import com.meowj.langutils.lang.convert.EnumEnchantment;
1110
import net.md_5.bungee.api.chat.ClickEvent;
1211
import org.bukkit.Material;
1312
import org.bukkit.NamespacedKey;
@@ -251,11 +250,7 @@ public void commandEnchantDefault(CommandSender sender, Arguments args) {
251250
private void printEnchant(Player p, Enchantment[] enchantments) {
252251
for (Enchantment e : enchantments) {
253252
Message msg = new Message(e.getKey().getKey() + ": ");
254-
if (EnumEnchantment.get(e) != null) {
255-
msg.append(LocaleUtils.getNameComponent(e));
256-
} else {
257-
msg.append(e.getKey().getKey());
258-
}
253+
msg.append(LocaleUtils.getNameComponent(e));
259254
msg.append(" " + I18n.format("user.enchant.max_level", plugin.cfg.enchantMaxLevel.get(e)));
260255
msg.inner.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/nu enchant " + e.getKey().getKey()));
261256
p.spigot().sendMessage(msg.inner);

0 commit comments

Comments
 (0)