Skip to content

RailTypes/PolytoriaServerIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PolytoriaServerIP

Fetches the IP info of Polytoria servers.

The script will automatically create a NetworkEvent in ScriptService on server startup, which can be invoked by clients to fetch server IP information. An example script can be found in the demo folder.

Config

Configuration can be found by opening the script and changing the constants.

Name (Type) Description
URL (string) The URL to send the HTTP request to (must return JSON). Uses IPinfo's JSONP API by default.
SEND_OPTIONS ({string}) The information that should be sent to the client. The array can contain any key returned by URL.
START_DELAY (number) The duration to wait before attempting to send HTTP requests.
RETRY_DELAY (number) The duration to wait before retrying a failed HTTP request.
DISABLE_IN_CREATOR (number) Whether or not this script will run during local playtesting. Enabled by default for privacy reasons.

About

Fetches the IP info of Polytoria servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages