From 1a9eafffe792bf89ce02ac2b6f30770c2cbcf8dc Mon Sep 17 00:00:00 2001 From: balbo Date: Wed, 5 Aug 2020 20:48:12 +0200 Subject: [PATCH] =?UTF-8?q?m=C3=BCllsack=20meldung=20wenn=2020=20erreicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReallifeGamemode.Server/Job/RefuseCollectorJob.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs b/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs index aacd4607..0a576878 100644 --- a/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs +++ b/ReallifeGamemode.Server/Job/RefuseCollectorJob.cs @@ -237,11 +237,22 @@ namespace ReallifeGamemode.Server.Job user1 = player.GetUser(dbContext); user2 = target.GetUser(dbContext); user1.trashcount += 1; + + if (user1.trashcount == 20) + { + player.SendChatMessage("~y~Dies ist dein 20ter Müllsack."); + } + player.SendNotification("Müllsack: " + user1.trashcount + " von 20."); if (target != null) { target.SendNotification("Müllsack: " + user2.trashcount + " von 20."); user2.trashcount += 1; + + if (user1.trashcount == 20) + { + target.SendChatMessage("~y~Dies ist dein 20ter Müllsack."); + } } dbContext.SaveChanges(); }