36 lines
593 B
Protocol Buffer
36 lines
593 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package patchbukkit.events;
|
|
|
|
import "patchbukkit/common/types.proto";
|
|
import "patchbukkit/events/player_events.proto";
|
|
|
|
option java_multiple_files = true;
|
|
option java_package = "patchbukkit.events";
|
|
|
|
message Event {
|
|
oneof data {
|
|
PlayerJoinEvent player_join = 1;
|
|
}
|
|
}
|
|
|
|
message RegisterEventRequest {
|
|
string event_type = 1;
|
|
string plugin_name = 2;
|
|
int32 priority = 3;
|
|
bool blocking = 4;
|
|
}
|
|
|
|
message CallEventRequest {
|
|
Event event = 1;
|
|
}
|
|
|
|
message CallEventResponse {
|
|
bool handled = 1;
|
|
}
|
|
|
|
message FireEventResponse {
|
|
bool cancelled = 1;
|
|
Event data = 2;
|
|
}
|