Integrate API Into Components
Easily integrate the ER:LC API into your components and plugins!
Last updated
Easily integrate the ER:LC API into your components and plugins!
Last updated
To use the ER:LC API externally by utilizing the ER:LC API Commands plugin, use the 8BiToe's ER:LC Global Variables System (8ERLCGVS).
Easier to understand - Using this system should be easier than learning how to use APIs and formatting their results. Many endpoint results cannot be natively retrieved on Inventor, and this system returns data in a consistent easily-extractable format.
Quick Implementation - When creating your own plugins/components that aren't ER:LC focused, you don't have to waste time learning how to use the API. You can quickly integrate ER:LC features into your plugins/components.
Respects rate-limits - By using 8ERLCGVS, you don't have to worry about rate-limits. The plugin waits until the rate-limit expires, and then executes your actions.
Retrieving last data when rate-limited - When attempting to load data while you are being rate-limited, you will be instead returned the last cached data. All data has an Unix timestamp.
TL:DR - You will save time and headaches :)
Automatic Game Messages
Every 15 Minutes Trigger
Send ER:LC API Request (/command, :h Hello!)
Custom Moderation Integration
Slash Command Trigger
Get Row (Custom database with Discord User ID and Roblox name)
Send ER:LC API Request (/command, :ban RobloxName)
Ban Server Member
Text Reply
A "Check if ER:LC Server API Key is Valid" Custom Block will be made sometime later for integration convenience.
Inventor Library moderators may deny your plugin if it entirely depends on this system. Please make your plugins work without this system, or make your own.
Use the "Send ER:LC API Request" Custom Block to add a Request to the Request Queue.
Use the uuid tracking
Output Variable if you need to track your request.
The plugin checks for Global Variables every minute! (Due to "Global Variable Created" not being a trigger.)
You need to make your systems in a way that check the result every minute instead of immediately expecting a response.
Use the "Receive ER:LC API Response" Custom Block to read the responses of a request.
Returned data is separated by Newlines and |||
. Use string blocks to retrieve these values.
Each separate string is JSON encoded. Use this example to parse the value correctly:
View all available Components on the page.
Bump if you want the "Global Variable Created" trigger added.