Skip to content

Commit ba7cb71

Browse files
committed
feat: move player info to its own message
1 parent 52784cd commit ba7cb71

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎src/main/proto/clientbound/clientbound_server.proto‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ message S2CHandshakeResponse {
2020
}
2121
message Success {
2222
ServerInfo server_info = 1; // The server info.
23-
PlayerInfo player_info = 2; // The player's info.
2423
}
2524
oneof result {
2625
Error error = 1; // The error that occurred, if any.
2726
Success success = 2; // The server and player info, if the connection was successful.
2827
}
2928
}
3029

30+
message S2CPlayerInfo {
31+
PlayerCurrency currency = 1; // The player's currency information.
32+
PlayerPermissions permissions = 2; // The player's permissions.
33+
}
34+
3135
// Sent when the player joins the server.
3236
message S2CServerBooster {
3337
// Represents an active booster.

‎src/main/proto/common/common_player.proto‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ syntax = "proto3";
33
option java_package = "com.mcdiamondfire.modapi.messages.common";
44
option java_multiple_files = true;
55

6-
// Represents general information about the player.
7-
message PlayerInfo {
8-
PlayerCurrency currency = 1; // The player's currency information.
9-
PlayerPermissions permissions = 2; // The player's permissions.
10-
}
11-
126
// Represents the player's currency information.
137
message PlayerCurrency {
148
// Represents an unclaimed ticket bundle.

0 commit comments

Comments
 (0)