gruppe kosten
This commit is contained in:
@@ -57,6 +57,13 @@ namespace ReallifeGamemode.Server.Managers
|
||||
u.Group = group;
|
||||
u.GroupRank = GroupRank.OWNER;
|
||||
|
||||
if (player.GetUser(dbContext).BankAccount.Balance < 50000)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Du hast nicht genug Geld");
|
||||
return;
|
||||
}
|
||||
|
||||
player.GetUser(dbContext).BankAccount.Balance -= 50000;
|
||||
dbContext.SaveChanges();
|
||||
|
||||
ChatService.BroadcastGroup($"Die Gruppe \"{name}\" wurde erfolgreich erstellt.", group);
|
||||
|
||||
Reference in New Issue
Block a user