This commit is contained in:
Michael
2020-06-02 15:14:19 +02:00
parent 9a3af81079
commit 254e7b0362
2 changed files with 4 additions and 4 deletions

View File

@@ -623,14 +623,12 @@ namespace ReallifeGamemode.Server.Managers
}
else
{
if (amount > 0 && amount < 5000)
if (amount > 0 && amount <= 5000)
{
player.SendNotification($"~w~Du hast ~y~{targetname} ~w~ ${amount} gegeben.");
target.SendNotification($"~w~ Du hast von ~y~{playername} ~w~ ${amount}$ erhalten.", true);
target.SendNotification($"~w~ Du hast von ~y~{playername} ~w~ ${amount} erhalten.", true);
target.SetData<int>("pay_amount", amount);
player.SendChatMessage("hallo debug player");
target.SendChatMessage("hallo debug target");
using (var dbContext = new DatabaseContext())
{
target.GetUser(dbContext).Handmoney += amount;