Add Extra (Play/AddToMapRotation) Buttons in mod.io for Pavlov maps/mods with RCON integration

Add a extra buttons

As of 2023-06-17. See the latest version.

Author
UnderPL
Ratings
0 0 0
Version
0.1
Created
2023-06-17
Updated
2023-06-17
Size
5.79 KB
License
N/A
Applies to

Add Extra Buttons in mod.io for Pavlov maps/mods with RCON integration

This userscript adds extra buttons to the mod.io page for Pavlov maps and mods, making it easier for users to quickly interact with maps and mods using RCON (Remote Console) commands. The script uses the pavlovrcon.com API to send the requests.

Features:

Adds a "Play" button for instantly switching to a selected map using RCON commands.

Adds an "Add to map rotation" button for adding the selected map to map rotation using RCON commands.

Provides a dropdown menu to choose between various game modes (e.g. SND, TDM, DM, etc.).

Note: Using the RCON functionality requires a valid connection to the pavlovrcon.com API (connect to your server in pavlovrcon.com before using the buttons)