Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

6 Screenshots

  • 1,405
  • 61
  • 11.93 kB

depends on

Works with

About Sign Upload API

Allow players to upload sign art to Imgur including optional integration to Server Rewards and Discord Core. SAVE YOUR ART! 

 

DEPENDS ON http://umod.org/plugins/imgur-api

 

About

This plug-in allows players with the appropriate permission level the ability to upload the art of an in-game sign they are looking at to Imgur.

The plug-in may optionally be integrated with DiscordCore, to DM the player the Imgur link or post to a channel, and/or ServerRewards, to deduct a configurable amount of RP from the player's balance. To prevent players from spamming the functionality, a configurable cooldown is included.

This plug-in is NOT a copy of Sign Artist, which allows players to download pictures from a web address to the server's file storage. SignUploadAPI delivers the opposite functionality: giving players a way to upload pictures from the server's file storage to a web address on Imgur.

Photographs also work! If a Photo Frame is selected and it contains a Photo, the photo file itself will be exported.

 

Configuration

Quote

The settings and options can be configured in the SignUploadAPI file under the config directory. The use of a JSON editor or validation site such as jsonlint.com is recommended to avoid formatting issues and syntax errors.

{
  "Chat Command": "uploadsign",
  "Use Discord Core": false,
  "Discord Channel to Upload to": "",
  "Use Server Rewards": false,
  "Cost to Upload": 20,
  "Cooldown Between Uploads (seconds)": 30.0
}
  • Use Discord Core: Upon enabling this, if DiscordCore is successfully loaded players who have linked their Discord accounts with their Steam accounts on the server will receive a DM including the picture. This does not post to a channel on it's own.
  • Discord Channel to Upload to: DiscordCore will post the file to the specified channel on your Discord server if not left empty.
  • Cost to Upload: This is the amount of RP which is deducted upon an upload attempt to Imgur if Use Server Rewards is set to true.

 

Permissions

Quote

This plugin uses Oxide's permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.

  • signuploadapi.use Allows the player or group to use the plugin.
  • signuploadapi.free Allows the player or group to use the plugin free of charge.

 

Chat Commands

While the command is configurable, by default it is set to /uploadsign

  • /uploadsign "Title of Image(Optional)"

 

Developer API

On any sign successfully being uploaded to Imgur, the following hook is called.

void OnSignUploaded(string url, string title, ulong playerID)

 

image.pngimage.pngimage.png

image.png.dc8e148d507113895cd1135358626964.pngimage.png.76585318bb6d6b10844e55af349de8de.png


User Feedback

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

8,119 files sold to 713 customers and $118,353 of payments processed this year!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.