Merge
This commit is contained in:
@@ -660,7 +660,19 @@ namespace reallife_gamemode.Server.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
SaveManager.SaveGotoPoint(player, description);
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
Entities.GotoPoint p = dbContext.GotoPoints.FirstOrDefault(x => x.Description == description);
|
||||
if(p == null)
|
||||
{
|
||||
SaveManager.SaveGotoPoint(player, description);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SendChatMessage("Einen Goto-Punkt mit dieser Bezeichnung gibt es schon!");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user