Browse Source

being banished form guild will remove you from any groups

lakebane-master
fatboy 7 months ago
parent
commit
7c2915928d
  1. 3
      src/engine/net/client/handlers/BanishUnbanishHandler.java

3
src/engine/net/client/handlers/BanishUnbanishHandler.java

@ -14,6 +14,7 @@ import engine.Enum.GuildHistoryType; @@ -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 { @@ -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
}

Loading…
Cancel
Save