File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,23 @@ message S2CPlotInfo {
5959// error is true if the operation failed (see each operation for details),
6060// template is not empty only if a get operation succeeded.
6161message S2CCodeOperationResult {
62+ enum Error {
63+ NONE = 0 ; // No error, the operation succeeded.
64+ NO_PERMISSION = 1 ; // The player does not have developer permissions on the plot.
65+ NO_LOCATION = 2 ; // No location was provided for an operation that requires one.
66+ INVALID_LOCATION = 3 ; // The provided location is not within the code region of the plot or is an invalid code block position.
67+ NO_ACTION = 4 ; // No action was provided for an operation that requires one.
68+ ACTION_NOT_FOUND = 5 ; // The provided action or line starter was not found on the plot.
69+ NO_LOCATION_OR_TEMPLATE = 6 ; // Either a location or a template were not provided for an operation that requires both.
70+ INVALID_LOCATION_OR_TEMPLATE = 7 ; // The provided location is invalid or the provided template is not a valid code template.
71+ TEMPLATE_NOT_FIT = 8 ; // The provided template does not fit in the code region at the provided location.
72+ INVALID_TEMPLATE = 10 ; // The provided template is not a valid code template.
73+ INTERNAL_ERROR = 9 ; // An internal error occurred while performing the operation.
74+ NO_OPERATION = 11 ; // No operation was provided.
75+ }
76+
6277 oneof result {
63- bool error = 1 ; // true if the operation failed, false otherwise
78+ Error error = 1 ; // true if the operation failed, false otherwise
6479 string template = 2 ; // The template JSON string, only if a get operation succeeded.
6580 }
6681}
You can’t perform that action at this time.
0 commit comments