API for the stonegaterealm plugins