mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
added a logger to receiving settings from the player
This commit is contained in:
parent
1d08ee6775
commit
c562fcf12e
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class Sit implements ModInitializer {
|
|||
ServerPlayNetworking.registerGlobalReceiver(CustomPayloads.SettingsPayload.ID,((payload, context) -> server.execute(() -> {
|
||||
Type hashMapToken = new TypeToken<HashMap<String, Object>>() {}.getType();
|
||||
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
|
||||
|
||||
LOGGER.info(String.format("Received custom sitting settings from %s.",context.player().getName().getString()));
|
||||
playerSettings.put(context.player(),gson.fromJson(payload.value(),hashMapToken));
|
||||
})));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue