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

Commit

Permalink
update to vault api 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cyilin committed Oct 17, 2018
1 parent 2900cd7 commit c0376e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ repositories {
}

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

compileJava {
options.compilerArgs += ["-Xplugin:NyaaUtilsLangAnnotationProcessor"]
options.compilerArgs += ["-Xplugin:NyaaUtilsLangAnnotationProcessor", "-Xlint:deprecation"]
if (nyaaCoreLangDir != null) {
options.compilerArgs += ["-ALANG_DIR_ADDITIONAL_PATH=" + nyaaCoreLangDir]
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/cat/nyaa/nyaabank/I18n.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public I18n(NyaaBank plugin, String lang) {
}

public static String format(@LangKey String key, Object... args) {
return instance.get(key, args);
return instance.getFormatted(key, args);
}
}

0 comments on commit c0376e2

Please sign in to comment.