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

Commit c0376e2

Browse files
committed
update to vault api 1.7
1 parent 2900cd7 commit c0376e2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ repositories {
3434
}
3535

3636
dependencies {
37-
compile 'net.milkbowl.vault:VaultAPI:1.6'
37+
compile ('net.milkbowl.vault:VaultAPI:1.7') {
38+
transitive = false
39+
}
3840
api 'org.spigotmc:spigot-api:1.13.1-R0.1-SNAPSHOT'
3941
api 'cat.nyaa:nyaacore:6.2-SNAPSHOT'
4042
compileOnly 'org.librazy:NyaaUtilsLangChecker:2.0-SNAPSHOT'
@@ -43,7 +45,7 @@ dependencies {
4345
String nyaaCoreLangDir = System.getenv("NYAACORE_LANG_DIR")
4446

4547
compileJava {
46-
options.compilerArgs += ["-Xplugin:NyaaUtilsLangAnnotationProcessor"]
48+
options.compilerArgs += ["-Xplugin:NyaaUtilsLangAnnotationProcessor", "-Xlint:deprecation"]
4749
if (nyaaCoreLangDir != null) {
4850
options.compilerArgs += ["-ALANG_DIR_ADDITIONAL_PATH=" + nyaaCoreLangDir]
4951
}

src/main/java/cat/nyaa/nyaabank/I18n.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public I18n(NyaaBank plugin, String lang) {
2727
}
2828

2929
public static String format(@LangKey String key, Object... args) {
30-
return instance.get(key, args);
30+
return instance.getFormatted(key, args);
3131
}
3232
}

0 commit comments

Comments
 (0)