You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Requests to get the template for the code block at the given location,
8
8
// requires the player to have developer permissions on the plot,
9
-
// and the location being a valid code block position.
10
-
// An S2CCodeTemplate packet will be sent as a response.
11
-
messageC2SGetTemplate {
12
-
Locationlocation=1; // The location of the code block to get the template of.
9
+
// and the location being a valid line starter.
10
+
messageGetByLocationOperation {
11
+
Locationlocation=1; // The location of the code block to get the template for.
12
+
}
13
+
14
+
// Requests to get the template for the code block with the given line starter type and action name,
15
+
// requires the player to have developer permissions on the plot,
16
+
// and that the code block exists.
17
+
messageGetByBlockOperation {
18
+
LineStarterTypetype=1; // The type of line starter of the code block to get the template for.
19
+
stringaction=2; // The sign action name of the code block to get the template for.
13
20
}
14
21
15
22
// Requests to place a template at the given location,
16
23
// requires the player to have developer permissions on the plot,
17
-
// the location being a valid code block position,
24
+
// the location being a valid line starter,
18
25
// and that the template will not override any blocks nor exit the plot bounds.
19
-
// An S2CPlaceTemplateResult packet will be sent as a response.
20
-
messageC2SPlaceTemplate {
21
-
Locationlocation=1; // The location of the code block to place the template at.
22
-
oneoftemplate {
23
-
stringjson=2; // The template JSON string.
24
-
stringdata=3; // The template code data.
26
+
messagePlaceOperation {
27
+
Locationlocation=1; // The location to place the template at.
28
+
Templatetemplate=2; // The template to place.
29
+
}
30
+
31
+
// Requests to delete the code block at the given location,
32
+
// requires the player to have developer permissions on the plot,
33
+
// and the location being a valid line starter.
34
+
messageDeleteByLocationOperation {
35
+
Locationlocation=1; // The location of the code block to delete.
36
+
}
37
+
38
+
// Requests to delete the code block with the given line starter type and action name,
39
+
// requires the player to have developer permissions on the plot,
40
+
// and that the code block exists.
41
+
messageDeleteByBlockOperation {
42
+
LineStarterTypetype=1; // The type of line starter of the code block to delete.
43
+
stringaction=2; // The sign action name of the code block to delete.
44
+
}
45
+
46
+
// Requests to replace the code block at the given location with the given template,
47
+
// requires the player to have developer permissions on the plot,
48
+
// the location being a valid line starter,
49
+
// and that the template will not override any blocks nor exit the plot bounds (except for the blocks being replaced).
50
+
messageReplaceByLocationOperation {
51
+
Locationlocation=1; // The location of the code block to replace.
52
+
Templatetemplate=2; // The template to replace the code block with.
53
+
}
54
+
55
+
// Requests to replace the code block with the given line starter type and action name with the given template,
56
+
// requires the player to have developer permissions on the plot,
57
+
// and that the code block exists,
58
+
// and that the template will not override any blocks nor exit the plot bounds (except for the blocks being replaced).
59
+
messageReplaceByBlockOperation {
60
+
LineStarterTypetype=1; // The type of line starter of the code block to replace.
61
+
stringaction=2; // The sign action name of the code block to replace.
62
+
Templatetemplate=3; // The template to replace the code block with.
63
+
}
64
+
65
+
// Requests a code operation.
66
+
// An S2CCodeOperationResult packet will be sent as a response, the relevant field will be set depending on the operation requested.
67
+
messageC2SCodeOperation {
68
+
oneofoperation {
69
+
GetByLocationOperationget_by_location=1; // The operation to get the template for the code block at the given location.
70
+
GetByBlockOperationget_by_block=2; // The operation to get the template for the code block with the given line starter type and action name.
71
+
PlaceOperationplace=3; // The operation to place a template at the given location.
72
+
DeleteByLocationOperationdelete_by_location=4; // The operation to delete the code block at the given location.
73
+
DeleteByBlockOperationdelete_by_block=5; // The operation to delete the code block with the given line starter type and action name.
74
+
ReplaceByLocationOperationreplace_by_location=6; // The operation to replace the code block at the given location with the given template.
75
+
ReplaceByBlockOperationreplace_by_block=7; // The operation to replace the code block with the given line starter type and action name with the given template.
25
76
}
26
77
}
78
+
79
+
// Requests multiple code operations in one packet.
80
+
// An S2CMultiCodeOperationResult packet will be sent as a response, containing the results of all operations requested.
81
+
messageC2SMultiCodeOperations {
82
+
repeatedC2SCodeOperationoperations=1; // The operations to perform.
0 commit comments