Skip to content

Commit

Permalink
Add team chat
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Jun 25, 2024
1 parent a47ee4d commit b15f2a7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import xyz.nucleoid.plasmid.game.GameCloseReason;
import xyz.nucleoid.plasmid.game.GameSpace;
import xyz.nucleoid.plasmid.game.common.GlobalWidgets;
import xyz.nucleoid.plasmid.game.common.team.TeamChat;
import xyz.nucleoid.plasmid.game.common.team.TeamManager;
import xyz.nucleoid.plasmid.game.common.team.TeamSelectionLobby;
import xyz.nucleoid.plasmid.game.event.GameActivityEvents;
Expand Down Expand Up @@ -94,6 +95,10 @@ public static void open(GameSpace gameSpace, ServerWorld world, TeamSelectionLob
TeamManager teamManager = TeamManager.addTo(activity);
GlobalWidgets widgets = GlobalWidgets.addTo(activity);

if (config.getTeams().isPresent()) {
TeamChat.addTo(activity, teamManager);
}

BeaconBreakersActivePhase active = new BeaconBreakersActivePhase(gameSpace, world, teamSelection, teamManager, widgets, map, config);

activity.allow(GameRuleType.BLOCK_DROPS);
Expand Down

0 comments on commit b15f2a7

Please sign in to comment.