Project cleanup pre merge.
This commit is contained in:
1 parent
134b651df8
commit
9bbdef224d
747 files changed
+99704
-101200
No files matched your search
@@ -54,31 +54,30 @@ public class DismissGuildHandler extends AbstractClientMsgHandler {
|
||||
toDismiss = (Guild) DbManager.getObject(GameObjectType.Guild, dismissMsg.getGuildID());
|
||||
|
||||
if (toDismiss == null) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "A Serious error has occured. Please post details for to ensure transaction integrity");
|
||||
ErrorPopupMsg.sendErrorMsg(player, "A Serious error has occured. Please post details for to ensure transaction integrity");
|
||||
return true;
|
||||
}
|
||||
|
||||
nation = player.getGuild();
|
||||
|
||||
if (nation == null) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Nothing to disband, your guild is not a nation!");
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Nothing to disband, your guild is not a nation!");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!nation.getSubGuildList().contains(toDismiss)) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "You do not have authority to dismiss this guild!");
|
||||
ErrorPopupMsg.sendErrorMsg(player, "You do not have authority to dismiss this guild!");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (GuildStatusController.isGuildLeader(player.getGuildStatus()) == false) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Only a guild leader can dismiss a subguild!");
|
||||
ErrorPopupMsg.sendErrorMsg(player, "Only a guild leader can dismiss a subguild!");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Restriction on active bane desubbing
|
||||
|
||||
if (Bane.getBaneByAttackerGuild(toDismiss) != null)
|
||||
{
|
||||
if (Bane.getBaneByAttackerGuild(toDismiss) != null) {
|
||||
ErrorPopupMsg.sendErrorMsg(player, "You may not dismiss subguild with active bane!");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user