Closed plhappylemonpl closed 1 year ago
1) Thanks for detailed issue especially for config and logs.
2) By default mod will [try to] send messages in language of your Minecraft client.
Polish should be supported: https://github.com/NikitaCartes/EasyAuth/blob/fabric-1.20/src/main/resources/data/easyauth/lang/pl_pl.json
3) You can disable this behavior by setting enableServerSideTranslation
to false. Message will be sent as they presented in config.
Bonus: You may want to enable online-mode
in server.properties
so premium player can log in without password.
Hello,
It's working! Thank you for your assistance. If possible, I recommend adding a message for premium players in the style of: "You have been automatically logged in as a premium player." Such a message would surely be helpful to some extent, especially for players who might occasionally be less familiar.
Best regards,
Versions
Hello,
I would like to address an issue related to server configuration. Unfortunately, I have encountered difficulties with the proper functioning of custom translations.
The situation is as follows: A friend of mine encouraged me to set up a Minecraft server based on the Fabric platform. Because several of my friends do not have premium Minecraft accounts, I decided to implement a login system on the server. After searching through numerous forums, I eventually came across information on Reddit regarding your mod called EasyAuth. I installed it and noticed that it also supports players with premium accounts. I was quite pleased with this prospect.
Consequently, I decided to add the mod to the "mods" folder on the server. After completing this step, I started the server, and during the initial login, I was prompted for a password. This wasn't an issue for me as I use a premium Minecraft account. I entered the command /register XYZ XYZ and then logged in with those credentials. Everything seemed to work fine, but the messages that appeared during login were in English.
As someone who strives for perfection, I decided to translate these messages into Polish. So, I entered the mod folder and noticed that a new file named "config.json" had been created. I inputted the appropriate translations for the message lines and executed the command /auth reload. Unfortunately, despite my efforts, the messages still remained in English. Perhaps I am doing something wrong, so I decided to restart the server, but the result was still the same.
I wondered if the issue might lie within the configuration file, so I attempted to change it. I removed the folder named "levelDBStore" for testing purposes, as I suspected that the configuration might be loaded once from the JSON file and then from the database. Unfortunately, this also didn't yield the expected results, and the messages continued to be in English.
As a result, I have decided to report this issue as a bug. I want to emphasize that despite my attempts to change the language in the configuration file, I have not observed any improvement. Below, I am providing a snippet of console logs that could be helpful in diagnosing the problem.
Additional context config.json
{ "main": { "allowEntityInteract": false, "maxLoginTries": 1, "kickTime": 120, "enableGlobalPassword": false, "globalPassword": null, "tryPortalRescue": true, "minPasswordChars": 4, "maxPasswordChars": -1, "usernameRegex": "^[a-zA-Z0-9_]{3,16}$", "sessionTimeoutTime": 3600, "spawnOnJoin": false, "databaseType": "", "MySQLHost": "localhost", "MySQLUser": "root", "MySQLPassword": "", "MySQLDatabase": "easyauth", "MySQLTableName": "easyauth", "MongoDBConnectionString": "mongodb://username:password@host:port/?options", "MongoDBDatabase": "easyauth", "premiumAutologin": true, "floodgateAutologin": false, "forcedOfflinePlayers": [], "hideUnauthenticatedPLayersFromPlayerList": false }, "worldSpawn": { "dimension": "minecraft:overworld", "x": 0.0, "y": 64.0, "z": 0.0, "yaw": 0.0, "pitch": 0.0 }, "lang": { "enterPassword": "§6Musisz wprowadzic swoje haslo!", "enterNewPassword": "§4Musisz podac nowe haslo!", "wrongPassword": "§4Nieprawidlowe haslo!", "matchPassword": "§6Hasla musza byc identyczne!", "passwordUpdated": "§aTwoje haslo zostalo pomyslnie zaktualizowane!", "loginRequired": "§cMusisz uwierzytelnic sie!\n§6Uzyj /login lub /l do uwierzytelnienia!", "loginTriesExceeded": "§4Zbyt wiele prob logowania. Poczekaj kilka minut i sprobuj ponownie.", "globalPasswordSet": "§aGlobalne haslo zostalo pomyslnie ustawione!", "cannotChangePassword": "§cNie mozesz zmienic hasla!", "cannotUnregister": "§cNie mozesz anulowac rejestracji tego konta!", "notAuthenticated": "§cNie jestes uwierzytelniony!\n§6Sprobuj /login, /l lub /register.", "alreadyAuthenticated": "§6Juz jestes uwierzytelniony.", "successfullyAuthenticated": "§aJestes teraz uwierzytelniony.", "successfulLogout": "§aWylogowano pomyslnie.", "timeExpired": "§cCzas na uwierzytelnienie wygasl.", "registerRequired": "§6Wpisz /register \u003chaslo\u003e \u003chaslo\u003e, aby aktywowac to konto.", "alreadyRegistered": "§6Ta nazwa konta jest juz zarejestrowana!", "registerSuccess": "§aJestes teraz uwierzytelniony.", "userdataDeleted": "§aDane uzytkownika usuniete.", "userdataUpdated": "§aDane uzytkownika zaktualizowane.", "accountDeleted": "§aTwoje konto zostalo pomyslnie usuniete!", "configurationReloaded": "§aPlik konfiguracji zostal pomyslnie przeladowany.", "maxPasswordChars": "§6Haslo moze miec maksymalnie %d znakow!", "minPasswordChars": "§6Haslo musi miec co najmniej %d znakow!", "disallowedUsername": "§6Niedozwolone znaki w nazwie uzytkownika! Dozwolony wzorzec znakow: %s", "playerAlreadyOnline": "§cGracz %s jest juz online!", "worldSpawnSet": "§aSpawn dla logowania zostal pomyslnie ustawiony.", "corruptedPlayerData": "§cTwoje dane sa prawdopodobnie uszkodzone. Skontaktuj sie z administratorem.", "userNotRegistered": "§cTen gracz nie jest zarejestrowany!", "cannotLogout": "§cNie mozesz sie wylogowac!", "offlineUuid": "UUID offline dla %s to %s", "registeredPlayers": "Lista zarejestrowanych graczy:", "addToForcedOffline": "Gracz zostal pomyslnie dodany do listy forcedOfflinePlayers" }, "experimental": { "preventAnotherLocationKick": true, "playerInvulnerable": true, "playerInvisible": true, "allowChat": false, "allowCommands": false, "allowedCommands": [], "allowMovement": false, "allowBlockUse": false, "allowBlockPunch": false, "allowItemDrop": false, "allowItemMoving": false, "allowItemUse": false, "allowEntityPunch": false, "debugMode": false, "useBCryptLibrary": false, "forcedOfflineUuids": false, "useSimpleAuthDatabase": false, "teleportationTimeoutInMs": 5, "enableAliases": true, "enableServerSideTranslation": true, "resetLoginAttemptsTime": 120, "floodgateLoaded": false, "floodgateBypassUsernameRegex": false, "verifiedOnlinePlayer": [], "skipAllAuthChecks": false } }
Additional context Consol log
C:\Users\LemoN\Downloads\serverfabric>java -Xmx2G -jar fabric-server-launch.jar nogui Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture [16:34:26] [main/INFO]: Loading Minecraft 1.20.1 with Fabric Loader 0.14.22 [16:34:27] [main/INFO]: Loading 57 mods: