From 7c2915928d3245d9fbed365d1b47e900ee69a5fc Mon Sep 17 00:00:00 2001 From: fatboy Date: Thu, 18 Apr 2024 13:24:06 -0500 Subject: [PATCH] being banished form guild will remove you from any groups --- src/engine/net/client/handlers/BanishUnbanishHandler.java | 3 +++ 1 file changed, 3 insertions(+) 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 }