Change Refuse
This commit is contained in:
@@ -233,6 +233,12 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
User user1 = player.GetUser(dbContext);
|
User user1 = player.GetUser(dbContext);
|
||||||
User user2 = target.GetUser(dbContext);
|
User user2 = target.GetUser(dbContext);
|
||||||
|
|
||||||
|
data.setTrashCount(data.getTrashCount() + 1);
|
||||||
|
player.SendNotification("Müllsack: " + data.getTrashCount() + " von " + MAX_BAG + ".");
|
||||||
|
if (target != null)
|
||||||
|
{
|
||||||
|
target.SendNotification("Müllsack: " + data.getTrashCount() + " von " + MAX_BAG + ".");
|
||||||
|
}
|
||||||
|
|
||||||
// player.AddAttachment("binbag", true);
|
// player.AddAttachment("binbag", true);
|
||||||
|
|
||||||
@@ -245,19 +251,14 @@ namespace ReallifeGamemode.Server.Job
|
|||||||
target.TriggerEvent("SERVER:MuellmannZuBase");
|
target.TriggerEvent("SERVER:MuellmannZuBase");
|
||||||
}
|
}
|
||||||
player.TriggerEvent("SERVER:MuellmannZuBase");
|
player.TriggerEvent("SERVER:MuellmannZuBase");
|
||||||
}else if(data.getTrashCount() > MAX_BAG)
|
}
|
||||||
|
else if(data.getTrashCount() > MAX_BAG)
|
||||||
{
|
{
|
||||||
|
data.setTrashCount(MAX_BAG);
|
||||||
ChatService.ErrorMessage((Player)player, "Der Müllwagen ist schon voll.");
|
ChatService.ErrorMessage((Player)player, "Der Müllwagen ist schon voll.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
data.setTrashCount(data.getTrashCount() + 1);
|
|
||||||
player.SendNotification("Müllsack: " + data.getTrashCount() + " von " + MAX_BAG + ".");
|
|
||||||
if (target != null)
|
|
||||||
{
|
|
||||||
target.SendNotification("Müllsack: " + data.getTrashCount() + " von " + MAX_BAG + ".");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (target != null)
|
if (target != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user