File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/net/thenextlvl/gopaint Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2828import org .bukkit .plugin .java .JavaPlugin ;
2929import org .jspecify .annotations .NullMarked ;
3030
31+ import java .nio .file .Files ;
3132import java .nio .file .Path ;
3233import java .util .List ;
3334import java .util .Locale ;
@@ -70,6 +71,16 @@ public GoPaintPlugin() {
7071 @ Override
7172 public void onLoad () {
7273 versionChecker .checkVersion ();
74+ warnTranslationChanges ();
75+ }
76+
77+ private void warnTranslationChanges () {
78+ if (!Files .isRegularFile (translations .resolve ("messages.properties" ))
79+ && !Files .isRegularFile (translations .resolve ("messages_german.properties" ))) return ;
80+ getComponentLogger ().warn ("The translations for goPaintAdvanced had major backwards incompatible changes" );
81+ getComponentLogger ().warn ("For this reason the 'messages' files got renamed to 'gopaint'" );
82+ getComponentLogger ().warn ("If you made changes to your translations before, you have to do them again in the new 'gopaint' files" );
83+ getComponentLogger ().warn ("This message will go away once you have deleted the old 'messages' files from '{}'" , translations );
7384 }
7485
7586 @ Override
You can’t perform that action at this time.
0 commit comments