File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/tc/oc/occ/idly Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 6
6
import org .bukkit .event .player .AsyncPlayerChatEvent ;
7
7
import org .bukkit .event .player .PlayerJoinEvent ;
8
8
import org .bukkit .event .player .PlayerMoveEvent ;
9
+ import tc .oc .pgm .api .match .event .MatchStartEvent ;
9
10
import tc .oc .pgm .api .party .Competitor ;
10
11
import tc .oc .pgm .events .PlayerPartyChangeEvent ;
11
12
@@ -31,6 +32,11 @@ public void onPlayerPartyChange(PlayerPartyChangeEvent event) {
31
32
}
32
33
}
33
34
35
+ @ EventHandler (priority = EventPriority .MONITOR )
36
+ public void onMatchStart (MatchStartEvent event ) {
37
+ event .getMatch ().getParticipants ().forEach (p -> this .manager .logMovement (p .getBukkit ()));
38
+ }
39
+
34
40
@ EventHandler (priority = EventPriority .MONITOR , ignoreCancelled = true )
35
41
public void onPlayerChatEvent (AsyncPlayerChatEvent event ) {
36
42
if (config .isChatCheck ()) {
You can’t perform that action at this time.
0 commit comments