|
| 1 | +syntax = "proto3"; |
| 2 | +import "clientbound_player.proto"; |
| 3 | +import "data_type.proto"; |
| 4 | + |
| 5 | +option java_package = "com.mcdiamondfire.proto.messages.clientbound.plot"; |
| 6 | +option java_multiple_files = true; |
| 7 | + |
| 8 | +// Sent when the player joins a plot. |
| 9 | +message S2CPlotInfo { |
| 10 | + // Represents a player in a plot. |
| 11 | + message PlotPlayer { |
| 12 | + string user_name = 1; // The name of the player. |
| 13 | + string user_uuid = 2; // The UUID of the player (36 characters including dashes). |
| 14 | + bool is_owner = 3; // Whether the player is the owner of the plot. |
| 15 | + bool is_developer = 4; // Whether the player has developer permissions on the plot. |
| 16 | + bool is_builder = 5; // Whether the player has builder permissions on the plot. |
| 17 | + PlayerMode mode = 6; // The mode the player is in. |
| 18 | + } |
| 19 | + |
| 20 | + // Represents a tag, also known as a category, a plot can have. |
| 21 | + enum PlotTag { |
| 22 | + ARCADE = 0; // One or multiple fast and fun minigames! |
| 23 | + VERSUS = 1; // Compete with other players! |
| 24 | + COMBAT = 2; // Fight your enemies! |
| 25 | + PARKOUR = 3; // Prove your platforming skills! |
| 26 | + ADVENTURE = 4; // Games with many places to explore! |
| 27 | + ROLEPLAY = 5; // Become part of an immersive setting or story! |
| 28 | + STRATEGY = 6; // Plan your next moves to be victorious! |
| 29 | + PUZZLE = 7; // Put your mind to the test! |
| 30 | + TRIVIA = 8; // Try to guess the correct answers! |
| 31 | + RESOURCES = 9; // Games where you collect resources to advance! |
| 32 | + ELIMINATION = 10; // Be the last one standing! |
| 33 | + CREATION = 11; // Games in which you can express your creativity! |
| 34 | + MISCELLANEOUS = 12; // Plots that don't really fit the other categories! |
| 35 | + } |
| 36 | + |
| 37 | + int32 id = 1; // The identifier of the plot. |
| 38 | + string name = 2; // The name of the plot as a serialized component in JSON format. |
| 39 | + string owner_name = 3; // The name of the owner of the plot. |
| 40 | + string owner_uuid = 4; // The UUID of the owner of the plot (36 characters including dashes). |
| 41 | + int32 plot_size = 5; // The size of the plot (1 = Basic, 2 = Large, 3 = Massive, 4 = Mega). |
| 42 | + int32 plot_min_x = 6; // The minimum X coordinate of the plot. |
| 43 | + int32 plot_min_z = 7; // The minimum Z coordinate of the plot. |
| 44 | + double spawn_pos_x = 8; // The spawn X coordinate of the plot. |
| 45 | + double spawn_pos_y = 9; // The spawn Y coordinate of the plot. |
| 46 | + double spawn_pos_z = 10; // The spawn Z coordinate of the plot. |
| 47 | + bool is_owner = 11; // Whether the player is the owner of the plot. |
| 48 | + bool is_developer = 12; // Whether the player has developer permissions on the plot, is an administrator, or is the support member in a session. |
| 49 | + bool is_builder = 13; // Whether the player has builder permissions on the plot, is an administrator, or is the support member in a session. |
| 50 | + repeated PlotTag tags = 14; // The tags of this plot (e.g. "adventure", "combat", ...). |
| 51 | + string handle = 15; // The handle of the plot, or empty if none is set. |
| 52 | + repeated PlotPlayer players = 16; // The players currently on the plot. |
| 53 | +} |
| 54 | + |
| 55 | +message S2CTemplate { |
| 56 | + string json = 1; |
| 57 | +} |
0 commit comments