if(isGuilded(invitee))
{
sender.sendMessage("Cannot invite " + player.getName() + " to the guild. They must leave their current guild first.");
}
else if(officer.getInt("rank_id") > 1)
{
sender.sendMessage("Cannot invite " + player.getName() + " to the guild. You aren't an officer you jackwang...");
}
This should test if the player is not guilded and the officer has appropriate rank, not test separately. ;-;
also fix rank test.
This should test if the player is not guilded and the officer has appropriate rank, not test separately. ;-; also fix rank test.