@@ -52,20 +52,18 @@ message S2CPlotInfo {
5252 repeated PlotPlayer players = 16 ; // The players currently on the plot.
5353}
5454
55- // Sent as a response to a C2SGetTemplate message,
56- // error is true if the player does not have developer permissions on the plot ,
57- // or if the location is not a valid code block position
58- message S2CCodeTemplate {
59- oneof response {
60- string json = 1 ; // The template as a JSON string.
61- bool error = 2 ; // Whether an error occurred while getting the template .
55+ // Sent as a response to a C2SCodeOperation message,
56+ // error is true if the operation failed (see each operation for details) ,
57+ // template is not empty only if a get operation succeeded.
58+ message S2CCodeOperationResult {
59+ oneof result {
60+ bool error = 1 ; // true if the operation failed, false otherwise
61+ string template = 2 ; // The template JSON string, only if a get operation succeeded .
6262 }
6363}
6464
65- // Sent as a response to a C2SPlaceTemplate message,
66- // error is true if the player does not have developer permissions on the plot,
67- // or if the location is not a valid code block position,
68- // or if the template overrides any blocks / exits the plot bounds.
69- message S2CPlaceTemplateResult {
70- bool error = 1 ; // Whether an error occurred while placing the template.
65+ // Sent as a response to a C2SMultiCodeOperations message,
66+ // contains the results of all operations requested.
67+ message S2CMultiCodeOperationsResult {
68+ repeated S2CCodeOperationResult results = 1 ; // The results of all operations requested.
7169}
0 commit comments