ammunation logs
This commit is contained in:
@@ -130,6 +130,7 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
player.SendNotification("Du hast nicht genügend Geld bei dir");
|
player.SendNotification("Du hast nicht genügend Geld bei dir");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
logger.LogInformation("Player {0} bought a {1} in ammunation", user.Name, weaponmodel);
|
||||||
user.Handmoney -= price;
|
user.Handmoney -= price;
|
||||||
dbContext.SaveChanges();
|
dbContext.SaveChanges();
|
||||||
player.GiveWeapon(NAPI.Util.WeaponNameToModel(weaponmodel), ammo);
|
player.GiveWeapon(NAPI.Util.WeaponNameToModel(weaponmodel), ammo);
|
||||||
|
|||||||
Reference in New Issue
Block a user