console language

This commit is contained in:
Oth3r 2024-10-01 14:49:15 -05:00
commit c088247b36
2 changed files with 4 additions and 2 deletions

View file

@ -99,7 +99,7 @@ public class Events {
ServerPlayNetworking.send(context.player(),new SitPayloads.ResponsePayload(SitPayloads.ResponsePayload.VERSION)); ServerPlayNetworking.send(context.player(),new SitPayloads.ResponsePayload(SitPayloads.ResponsePayload.VERSION));
// log the receiving of the packet from the player // log the receiving of the packet from the player
Data.LOGGER.info("Received custom sitting settings from {}!", context.player().getName().getString()); Data.LOGGER.info(Utl.lang("sit!.console.player_settings",context.player().getName().getString()).getString());
}))); })));
} }
@ -109,7 +109,7 @@ public class Events {
// only update when needed // only update when needed
if (!Data.isSupportedServer()) { if (!Data.isSupportedServer()) {
Data.setSupportedServer(true); Data.setSupportedServer(true);
Data.LOGGER.info("Connected to Sit! server! packet: {}", payload.value()); Data.LOGGER.info(Utl.lang("sit!.console.connected",payload.value()).getString());
} }
})); }));
} }

View file

@ -99,4 +99,6 @@
"gui.button.revert": "Revert Changes", "gui.button.revert": "Revert Changes",
"gui.button.save": "Save and Close", "gui.button.save": "Save and Close",
"gui.button.website": "Website" "gui.button.website": "Website"
"sit!.console.connected": "Connected to Sit! server: %s",
"sit!.console.player_settings": "Received custom sitting settings from %s!",
} }