FTBTeamsEvents.playerJoinedParty(event => {
const player = event.player;
const teamName = event.currentTeam.name;
if (teamName === 'Magic') {
event.server.tell(`${player.username} has joined the Magic team! Unlocking magic recipes.`);
event.remove({ mod: 'create' });
} else if (teamName === 'Tech') {
event.server.tell(`${player.username} has joined the Tech team! Unlocking tech recipes.`);
event.remove({mod: 'ars_nouveau' });
}
});