|
|
@ -12,16 +12,14 @@ package engine.net.client.handlers; |
|
|
|
import engine.Enum.GuildHistoryType; |
|
|
|
import engine.Enum.GuildHistoryType; |
|
|
|
import engine.exception.MsgSendException; |
|
|
|
import engine.exception.MsgSendException; |
|
|
|
import engine.gameManager.ChatManager; |
|
|
|
import engine.gameManager.ChatManager; |
|
|
|
|
|
|
|
import engine.gameManager.GroupManager; |
|
|
|
import engine.gameManager.SessionManager; |
|
|
|
import engine.gameManager.SessionManager; |
|
|
|
import engine.net.Dispatch; |
|
|
|
import engine.net.Dispatch; |
|
|
|
import engine.net.DispatchMessage; |
|
|
|
import engine.net.DispatchMessage; |
|
|
|
import engine.net.client.ClientConnection; |
|
|
|
import engine.net.client.ClientConnection; |
|
|
|
import engine.net.client.msg.ClientNetMsg; |
|
|
|
import engine.net.client.msg.ClientNetMsg; |
|
|
|
import engine.net.client.msg.guild.LeaveGuildMsg; |
|
|
|
import engine.net.client.msg.guild.LeaveGuildMsg; |
|
|
|
import engine.objects.Guild; |
|
|
|
import engine.objects.*; |
|
|
|
import engine.objects.GuildStatusController; |
|
|
|
|
|
|
|
import engine.objects.Mine; |
|
|
|
|
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class LeaveGuildHandler extends AbstractClientMsgHandler { |
|
|
|
public class LeaveGuildHandler extends AbstractClientMsgHandler { |
|
|
|
|
|
|
|
|
|
|
@ -61,6 +59,9 @@ public class LeaveGuildHandler extends AbstractClientMsgHandler { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(GroupManager.getGroup(playerCharacter) != null) |
|
|
|
|
|
|
|
GroupManager.removeFromGroups(playerCharacter); |
|
|
|
|
|
|
|
|
|
|
|
// Send left guild message to rest of guild
|
|
|
|
// Send left guild message to rest of guild
|
|
|
|
ChatManager.chatGuildInfo(oldGuild, playerCharacter.getFirstName() + " has left the guild."); |
|
|
|
ChatManager.chatGuildInfo(oldGuild, playerCharacter.getFirstName() + " has left the guild."); |
|
|
|
|
|
|
|
|
|
|
|