File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Plugin/src/main/java/dev/lrxh/neptune/profile/listener Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77import dev .lrxh .neptune .feature .hotbar .HotbarService ;
88import dev .lrxh .neptune .game .kit .Kit ;
99import dev .lrxh .neptune .game .match .Match ;
10+ import dev .lrxh .neptune .game .match .impl .participant .DeathCause ;
1011import dev .lrxh .neptune .game .match .impl .participant .Participant ;
1112import dev .lrxh .neptune .profile .ProfileService ;
1213import dev .lrxh .neptune .profile .data .ProfileState ;
@@ -82,8 +83,7 @@ public void onQuit(PlayerQuitEvent event) {
8283 if (participant == null )
8384 return ;
8485 match .onLeave (match .getParticipant (player ), true );
85- MatchParticipantDeathEvent deathEvent = new MatchParticipantDeathEvent (match , participant ,
86- participant .getDeathCause ().getMessage ().getString ());
86+ MatchParticipantDeathEvent deathEvent = new MatchParticipantDeathEvent (match , participant , DeathCause .DISCONNECT .getMessage ().toString ());
8787 Bukkit .getPluginManager ().callEvent (deathEvent );
8888 }
8989 }
You can’t perform that action at this time.
0 commit comments