Lore Rules
This commit is contained in:
1 parent
c1de1f148b
commit
c80b9013d2
7 files changed
+90
-19
No files matched your search
@@ -12,9 +12,7 @@ package engine.net.client.handlers;
|
||||
import engine.Enum;
|
||||
import engine.Enum.GameObjectType;
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.gameManager.ChatManager;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.SessionManager;
|
||||
import engine.gameManager.*;
|
||||
import engine.net.Dispatch;
|
||||
import engine.net.DispatchMessage;
|
||||
import engine.net.client.ClientConnection;
|
||||
@@ -111,7 +109,12 @@ public class InviteToSubHandler extends AbstractClientMsgHandler {
|
||||
sendChat(source, "This Guild can't be subbed.");
|
||||
return true;
|
||||
}
|
||||
|
||||
if(ConfigManager.MB_RULESET.getValue() == "LORE") {
|
||||
if (source.guild.getGuildType().equals(target.guild.getGuildType()) == false){
|
||||
sendChat(source, "You Must Be The Same Charter To Form A Nation.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
//all tests passed, let's send invite.
|
||||
|
||||
if (target.getClientConnection() != null) {
|
||||
|
||||
Reference in new issue
Block a user