Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a way to get the user's IP address by sending a web request and extracting the result.
How to use the extension
This extension gets the user's public IP address via a web request to ipify.
Instructions (how to use it)
Actions
IP_Adress::GetIP
to fetch the IP.Conditions
IP Adress is ready
to check if the IP has been retrieved.Failed to get the user's IP Adress
to check if the action has failed.Expressions
IP_Adress::Adress()
to get the parsed IP as a string.IP_Adress::Error()
to get the error message if an error occurred.Example:
When combined with a database system such as Firebase Realtime Database, this extension can be used to implement IP-based bans. This allows developers to prevent users from rejoining a multiplayer lobby after engaging in fraudulent or disruptive behavior, ensuring a safer and more secure gameplay environment.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
IPRetrieverExample.zip
Extension file
IPRetrieverExtension.zip
Extension by @ReaverZx
You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type
!update
, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!