This commit is contained in:
2020-08-05 20:56:41 +02:00
parent 1a9eafffe7
commit 788e7745f8

View File

@@ -249,10 +249,13 @@ namespace ReallifeGamemode.Server.Job
target.SendNotification("Müllsack: " + user2.trashcount + " von 20."); target.SendNotification("Müllsack: " + user2.trashcount + " von 20.");
user2.trashcount += 1; user2.trashcount += 1;
if (user1.trashcount == 20) if (user2.trashcount == 20)
{ {
target.SendChatMessage("~y~Dies ist dein 20ter Müllsack."); target.SendChatMessage("~y~Dies ist dein 20ter Müllsack.");
} }
}if (user1.trashcount == 20)
{
player.SendChatMessage("~y~Dies ist dein 20ter Müllsack.");
} }
dbContext.SaveChanges(); dbContext.SaveChanges();
} }