müllsack meldung wenn 20 erreicht
This commit is contained in:
@@ -237,11 +237,22 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
user1 = player.GetUser(dbContext);
|
user1 = player.GetUser(dbContext);
|
||||||
user2 = target.GetUser(dbContext);
|
user2 = target.GetUser(dbContext);
|
||||||
user1.trashcount += 1;
|
user1.trashcount += 1;
|
||||||
|
|
||||||
|
if (user1.trashcount == 20)
|
||||||
|
{
|
||||||
|
player.SendChatMessage("~y~Dies ist dein 20ter Müllsack.");
|
||||||
|
}
|
||||||
|
|
||||||
player.SendNotification("Müllsack: " + user1.trashcount + " von 20.");
|
player.SendNotification("Müllsack: " + user1.trashcount + " von 20.");
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
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)
|
||||||
|
{
|
||||||
|
target.SendChatMessage("~y~Dies ist dein 20ter Müllsack.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dbContext.SaveChanges();
|
dbContext.SaveChanges();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user