Refactored out method
This commit is contained in:
@@ -72,15 +72,8 @@ public class SwearInGuildHandler extends AbstractClientMsgHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (protectorate.guildState.equals(GuildState.Petitioner) == false) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "This guild has already sworn fealty!");
|
||||
if (protectorate.guildState.equals(GuildState.Petitioner) == false)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!Guild.canSwearIn(protectorate)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, protectorate.guildState.name() + "cannot be sworn in");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (GuildStatusController.isGuildLeader(player.getGuildStatus()) == false) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Your do not have such authority!");
|
||||
|
||||
Reference in New Issue
Block a user