toppev / strikepractice-public

StrikePractice bug tracking and some free resources
2 stars 3 forks source link

[Feature Request] Revamp FightStartEvent #12

Closed zhusun890 closed 2 years ago

zhusun890 commented 2 years ago

When a FightStartEvent or it's child events called, it would provide a "Fight" object. When invokes event.getFight().getPlayersInFight(), it will return an empty List. Can you make it returns the real members in the fight?

toppev commented 2 years ago

In some fights/circumstances the start event is called before the players are assigned to the fight. You can wait 1 tick before using that method to get the players.