Check removed
This commit is contained in:
@@ -67,11 +67,6 @@ public class SwearInGuildHandler extends AbstractClientMsgHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Guild.canSwearIn(targetGuild)) {
|
|
||||||
ErrorPopupMsg.sendErrorMsg(player, targetGuild.getGuildState().name() + "cannot be sworn in");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GuildStatusController.isGuildLeader(player.getGuildStatus()) == false) {
|
if (GuildStatusController.isGuildLeader(player.getGuildStatus()) == false) {
|
||||||
ErrorPopupMsg.sendErrorMsg(player, "Your do not have such authority!");
|
ErrorPopupMsg.sendErrorMsg(player, "Your do not have such authority!");
|
||||||
return true;
|
return true;
|
||||||
@@ -82,16 +77,8 @@ public class SwearInGuildHandler extends AbstractClientMsgHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (targetGuild.getGuildState()) {
|
if (targetGuild.getGuildState().equals(GuildState.Errant))
|
||||||
case Petitioner:
|
GuildManager.updateAllGuildBinds(targetGuild, nation.getOwnedCity());
|
||||||
GuildManager.updateAllGuildBinds(targetGuild, nation.getOwnedCity());
|
|
||||||
break;
|
|
||||||
case Protectorate:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
//shouldn't get here.
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
//update Guild state.
|
//update Guild state.
|
||||||
targetGuild.setNation(nation);
|
targetGuild.setNation(nation);
|
||||||
|
|||||||
Reference in New Issue
Block a user