Fixed /givemoney
This commit is contained in:
@@ -1280,7 +1280,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
|
|
||||||
using (var dbContext = new DatabaseContext())
|
using (var dbContext = new DatabaseContext())
|
||||||
{
|
{
|
||||||
amount = +target.GetUser().GetUserBankAccount(dbContext).Balance;
|
target.GetUser().GetUserBankAccount(dbContext).Balance += amount;
|
||||||
dbContext.SaveChanges();
|
dbContext.SaveChanges();
|
||||||
}
|
}
|
||||||
player.SendChatMessage("~b~[ADMIN]~s~ Du hast " + target.Name + " ~g~$" + amount + "~s~ gegeben.");
|
player.SendChatMessage("~b~[ADMIN]~s~ Du hast " + target.Name + " ~g~$" + amount + "~s~ gegeben.");
|
||||||
|
|||||||
Reference in New Issue
Block a user