forked from Pumpkin-MC/Pumpkin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevent.wit
More file actions
34 lines (29 loc) · 660 Bytes
/
Copy pathevent.wit
File metadata and controls
34 lines (29 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
interface event {
use player.{player};
use text.{text-component};
enum event-priority {
highest,
high,
normal,
low,
lowest,
}
record player-join-event-data {
player: player,
join-message: text-component,
cancelled: bool
}
record player-leave-event-data {
player: player,
leave-message: text-component,
cancelled: bool
}
enum event-type {
player-join-event,
player-leave-event,
}
variant event {
player-join-event(player-join-event-data),
player-leave-event(player-leave-event-data),
}
}