mirror of
https://github.com/edgegamers/Gangs.git
synced 2025-12-05 20:40:30 -08:00
Merge pull request #104 from edgegamers/dev
Join and Leave PrintToChatAll bug fixes
This commit is contained in:
@@ -127,7 +127,9 @@ public class JoinCommand(IServiceProvider provider) : ICommand {
|
||||
|
||||
await players.UpdatePlayer(player);
|
||||
if (chatPerk != null) await chatPerk.SendGangChat(player, gang, "joined.");
|
||||
|
||||
await Server.NextFrameAsync(() =>
|
||||
Server.PrintToChatAll(localizer.Get(MSG.GANG_PLAYER_JOINED,
|
||||
player.Name ?? player.Steam.ToString(), gang.Name));
|
||||
player.Name ?? player.Steam.ToString(), gang.Name)));
|
||||
}
|
||||
}
|
||||
@@ -35,8 +35,11 @@ public class LeaveCommand(IServiceProvider provider)
|
||||
player.GangRank = null;
|
||||
|
||||
await Players.UpdatePlayer(player);
|
||||
Server.PrintToChatAll(Locale.Get(MSG.COMMAND_LEAVE_LEFT,
|
||||
player.Name ?? player.Steam.ToString(), gang.Name));
|
||||
|
||||
await Server.NextFrameAsync(() =>
|
||||
Server.PrintToChatAll(Locale.Get(MSG.COMMAND_LEAVE_LEFT,
|
||||
player.Name ?? player.Steam.ToString(), gang.Name)));
|
||||
|
||||
return CommandResult.SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user