From 6113d94bdb6477dd91de4bcd0a7e4bf9c1bdc4f6 Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 9 May 2019 21:41:49 +0200 Subject: [PATCH] fix group uninvite --- ReallifeGamemode.Server/Managers/InteractionManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Managers/InteractionManager.cs b/ReallifeGamemode.Server/Managers/InteractionManager.cs index 4604ccf3..b89ca884 100644 --- a/ReallifeGamemode.Server/Managers/InteractionManager.cs +++ b/ReallifeGamemode.Server/Managers/InteractionManager.cs @@ -240,8 +240,8 @@ namespace ReallifeGamemode.Server.Managers using (var dbContext = new DatabaseContext()) { - target.GetUser(dbContext).FactionRankId = null; - target.GetUser(dbContext).FactionId = null; + targetUser.Group = null; + targetUser.GroupRank = GroupRank.NONE; player.SendChatMessage("!{02FCFF}Du hast " + target.Name + " aus der Gruppe geworfen."); target.SendChatMessage("!{02FCFF}Du wurdest von " + player.Name + " aus der Gruppe geworfen.");