diff --git a/src/engine/net/client/handlers/BanishUnbanishHandler.java b/src/engine/net/client/handlers/BanishUnbanishHandler.java index e2a88482..497c88b9 100644 --- a/src/engine/net/client/handlers/BanishUnbanishHandler.java +++ b/src/engine/net/client/handlers/BanishUnbanishHandler.java @@ -14,6 +14,7 @@ import engine.Enum.GuildHistoryType; import engine.exception.MsgSendException; import engine.gameManager.ChatManager; import engine.gameManager.DbManager; +import engine.gameManager.GroupManager; import engine.gameManager.SessionManager; import engine.net.Dispatch; import engine.net.DispatchMessage; @@ -116,6 +117,8 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler { GuildListMsg guildListMsg = new GuildListMsg(guild); dispatch = Dispatch.borrow(source, guildListMsg); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY); + if(GroupManager.getGroup(target) != null) + GroupManager.removeFromGroups(PlayerCharacter.getFromCache(target)); } else { ErrorPopupMsg.sendErrorPopup(source, 103); // You may not banish this char }