why r u switching prayers using the config? can't you just set(PrayerButton prayer, boolean activate) use that to like activate your prayer?
second you can't really read it to my knowledge(that would be effective for lms) but you can do like if(inmage) {pray mage} since you can just hard code what lms gear there is since it never really has anything new.
and for checking another prayer I am pretty sure you can do I think
getPlayers().getPrayer();
altho not 100% I would test that out. I guess