Skip to content

Commit

Permalink
Fix team serialization including pgm team (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablete1234 authored Jul 3, 2024
1 parent 7f23f5f commit 4661fd4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package rip.bolt.ingame.api.definitions;

import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.pgm.events.EventsPlugin;
import dev.pgm.events.team.TournamentTeam;
import javax.annotation.Nullable;
Expand All @@ -9,6 +10,7 @@ public interface BoltTournamentTeam extends TournamentTeam {

Integer getTeamId();

@JsonIgnore
default @Nullable Team getPgmTeam() {
return EventsPlugin.get().getTeamManager().fromTournamentTeam(this).orElse(null);
}
Expand Down

0 comments on commit 4661fd4

Please sign in to comment.