|
|
@ -12,7 +12,9 @@ package engine.net.client.handlers; |
|
|
|
import engine.Enum; |
|
|
|
import engine.Enum; |
|
|
|
import engine.Enum.GameObjectType; |
|
|
|
import engine.Enum.GameObjectType; |
|
|
|
import engine.exception.MsgSendException; |
|
|
|
import engine.exception.MsgSendException; |
|
|
|
|
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
import engine.gameManager.GroupManager; |
|
|
|
import engine.gameManager.GroupManager; |
|
|
|
|
|
|
|
import engine.gameManager.GuildManager; |
|
|
|
import engine.gameManager.SessionManager; |
|
|
|
import engine.gameManager.SessionManager; |
|
|
|
import engine.net.Dispatch; |
|
|
|
import engine.net.Dispatch; |
|
|
|
import engine.net.DispatchMessage; |
|
|
|
import engine.net.DispatchMessage; |
|
|
@ -21,6 +23,7 @@ import engine.net.client.msg.ClientNetMsg; |
|
|
|
import engine.net.client.msg.group.GroupInviteMsg; |
|
|
|
import engine.net.client.msg.group.GroupInviteMsg; |
|
|
|
import engine.net.client.msg.group.GroupUpdateMsg; |
|
|
|
import engine.net.client.msg.group.GroupUpdateMsg; |
|
|
|
import engine.objects.Group; |
|
|
|
import engine.objects.Group; |
|
|
|
|
|
|
|
import engine.objects.Guild; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
|
|
|
|
|
|
|
|
public class GroupInviteHandler extends AbstractClientMsgHandler { |
|
|
|
public class GroupInviteHandler extends AbstractClientMsgHandler { |
|
|
@ -103,7 +106,15 @@ public class GroupInviteHandler extends AbstractClientMsgHandler { |
|
|
|
if (target.isIgnoringPlayer(source)) |
|
|
|
if (target.isIgnoringPlayer(source)) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(ConfigManager.MB_RULESET.getValue() == "LORE") { |
|
|
|
|
|
|
|
if(source.guild.equals(Guild.getErrantGuild())) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (source.guild.getGuildType() != null) { |
|
|
|
|
|
|
|
if (source.guild.getGuildType().equals(target.guild.getGuildType()) == false) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// dont block invites to people already in a group and
|
|
|
|
// dont block invites to people already in a group and
|
|
|
|
// dont check for pending invites, the client does it
|
|
|
|
// dont check for pending invites, the client does it
|
|
|
|
// Send invite message to target
|
|
|
|
// Send invite message to target
|
|
|
|