Everneth / EMI-RP

0 stars 0 forks source link

Guild Invite test bug #4

Closed TptMike closed 5 years ago

TptMike commented 5 years ago
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.