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

Commit 9632774

Browse files
committed
[skip ci] fix compiler plugin part of langchecker
1 parent b2c6680 commit 9632774

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ dependencies {
6868
String nyaaCoreLangDir = System.getenv("NYAACORE_LANG_DIR")
6969

7070
compileJava {
71-
options.compilerArgs += ["-Xlint:deprecation", "-Xlint:unchecked"]
71+
options.compilerArgs += ["-Xplugin:NyaaUtilsLangAnnotationProcessor", "-Xlint:deprecation", "-Xlint:unchecked"]
7272
if (nyaaCoreLangDir != null) {
7373
options.compilerArgs += ["-ALANG_DIR_ADDITIONAL_PATH=" + nyaaCoreLangDir]
7474
}

src/main/java/cat/nyaa/HamsterEcoHelper/quest/QuestWizard.java

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import org.bukkit.event.player.PlayerChatEvent;
1414
import org.bukkit.inventory.ItemStack;
1515
import org.bukkit.scheduler.BukkitRunnable;
16+
import org.librazy.nyaautils_lang_checker.LangKey;
17+
import org.librazy.nyaautils_lang_checker.LangKeyType;
1618

1719
import java.time.Duration;
1820
import java.time.ZonedDateTime;
@@ -54,6 +56,7 @@ public void run() {
5456
}
5557
}
5658

59+
@LangKey(type = LangKeyType.SUFFIX)
5760
enum State {
5861
WAITING_NAME,
5962
WAITING_DESCRIPTION,

0 commit comments

Comments
 (0)