fix setmoney
This commit is contained in:
@@ -2536,7 +2536,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
target.GetUser().BankAccount.Balance = amount;
|
||||
target.GetUser(dbContext).BankAccount.Balance = amount;
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
ChatService.SendMessage(player, "~b~[ADMIN]~s~ Du hast das Geld von " + target.Name + " auf ~g~$" + amount + "~s~ gesetzt.");
|
||||
|
||||
Reference in New Issue
Block a user