a api for the xEssentials plugin