Skip to content

About

ImageFrame Extension for Moderating Images on Discord

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ImageFrameMDE

ImageFrame Moderation on Discord Extension: let Discord moderators approve player images before they show up in your Minecraft world.

Ask DeepWiki License: MIT

ImageFrame lets players load any image from a URL onto maps and item frames. On a public server, that means anyone can put anything on your walls. ImageFrameMDE closes that gap: every new image URL is held back and sent to a Discord channel, where moderators approve or reject it with one click. Only approved images ever load in-game.

How it works

Player runs /imageframe create art <url> 2 2
        │
        ▼
ImageFrameMDE intercepts the command
        │
        ├── URL host not whitelisted ─────► blocked
        ├── URL already rejected ─────────► blocked
        ├── URL already approved ─────────► command runs normally
        └── URL never seen before
                │
                ▼
        Request posted to Discord (with image preview + Approve / Reject buttons)
                │
                ├── Approve ─► URL saved as approved, player's command is re-run
                └── Reject ──► URL saved as rejected; if it was approved earlier,
                               the created map is deleted

Decisions are stored per URL, so an image only needs to be moderated once for the whole server.

Features

  • Intercepts /imageframe create, overlay and refresh commands that include an image URL
  • Discord moderation messages with image preview and one-click Approve / Reject
  • Reversible decisions: rejecting a previously approved image deletes the map in-game
  • URL host whitelist (Discord CDN and Minecraft textures by default)
  • Per-player limit on pending requests
  • Customisable player messages with & colour codes
  • SQLite storage, so no external database is needed

Requirements

Requirement Version
Server Paper / Spigot 1.21.11
Java 21
ImageFrame 1.8.7.4 or newer
Discord A bot token and a text channel the bot can post in

Installation

  1. Download the latest jar from Releases. Pick the newest versioned release (for example v1.1). If you want the very latest changes, the Latest Snapshot pre-release is rebuilt on every commit to main, but it may be less stable.
  2. Put it in your server's plugins/ folder, next to ImageFrame.
  3. Start the server once to generate plugins/ImageFrameMDE/config.yml.
  4. Fill in your Discord bot token and moderation channel ID.
  5. Restart the server.

Setting up the Discord bot

  1. Create an application at the Discord Developer Portal and add a bot.
  2. Copy the bot token into discord.token.
  3. Invite the bot to your server with permission to View Channel, Send Messages and Embed Links in the moderation channel.
  4. Enable Developer Mode in Discord, right-click the channel, Copy Channel ID, and paste it into discord.channel-id.

Configuration

discord:
  token: TOKEN
  channel-id: 1234567890123456789

moderation:
  max-pending-requests-per-player: 3

  # Only URLs starting with one of these are accepted
  image-url-whitelist:
    - "https://cdn.discordapp.com"
    - "https://media.discordapp.net"
    - "https://textures.minecraft.net"

messages:
  request:
    submitted: "&eYour image request was sent for moderation."
    already_pending: "&6This image is already awaiting moderation. Please wait."
    limit_reached: "&cYou have too many pending moderation requests."
    invalid_usage: "&cInvalid Usage"
  url:
    rejected: "&cThis image URL has been rejected by moderators."
  moderation:
    approved: "&aYour image request has been approved by a moderator."
    rejected: "&cYour image request was rejected by a moderator."
    not_whitelisted: "&cYour url type isn't whitelisted. Use a discord url."

Commands & permissions

Command Permission Default Description
/mdereload imageframemde.reload op Reload the configuration file

Data storage

Everything lives in plugins/ImageFrameMDE/database.db (SQLite):

  • urls: the final moderation decision for each image URL (keyed by its SHA-256 hash).
  • requests: moderation request history. Finished requests older than 30 days are cleaned up on startup.

Known limitations

These are tracked as issues, and help is welcome:

  • Some CDNs let the file behind a URL change, so a previously approved URL can later serve a different image.
  • If a request is approved while the player is offline, their command isn't re-run and they aren't notified.

See the open issues for the full list.

Contributing

Contributions are very welcome! Start with CONTRIBUTING.md, and look for issues labelled good first issue. See SECURITY.md for reporting security problems.

Built with

License

MIT © 2026 iSoham

About

ImageFrame Extension for Moderating Images on Discord

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages