v8px.

make me a plugin that when you do /reveal, it pops up a picture on the screen for that person that used the command, and it can be changed

Kodari AI
KodariMay 14 at 12:52 am 5,272 (v2)

I’ll create a plugin that displays a configurable image on a player’s screen when they use the /reveal command.

ImageReveal
A plugin that displays configurable images on players' screens using the /reveal command. Images are loaded from URLs and rendered on Minecraft map items shown in a GUI. Perfect for revealing secrets, displaying announcements, or showing custom artwork. Admins can change the image URL in the config, and the image is cached for performance. Includes permission support and customizable GUI titles.

I’ll create a system that loads an image from a URL, renders it onto a Minecraft map, and displays it in a GUI to the player.

Done! I’ve created ImageReveal, a plugin that displays configurable images on players’ screens.

Features:

  • /reveal command shows the configured image to the player

  • /reveal reload reloads the config (requires imagereveal.reload permission)

  • Images are loaded from URLs and rendered on Minecraft map items

  • Images are displayed in a centered GUI inventory

  • Automatic caching to avoid re-downloading images

  • Full permission support

  • Customizable GUI title with color code support

How it works:

  1. Player uses /reveal

  2. Plugin downloads the image from the configured URL (async)

  3. Image is resized to 128x128 pixels to fit on a map

  4. A custom MapRenderer draws the image onto a Minecraft map

  5. The map is displayed in a GUI for the player to view

To change the image: Edit config.yml and update the image-url field, then use /reveal reload to apply changes.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
plugin.yml
Code
7 286
src/main/java/com/example/imagereveal/ImageReveal.java
package com.example.imagereveal;

import com.example.imagereveal.commands.RevealCommand;
import com.example.imagereveal.managers.ImageManager;
import org.bukkit.plugin.java.JavaPlugin;

public class ImageReveal extends JavaPlugin {
    
    private ImageManager imageManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.imageManager = new ImageManager(this);
        
        getCommand("reveal").setExecutor(new RevealCommand(this, imageManager));
        
        getLogger().info("ImageReveal has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (imageManager != null) {
            imageManager.clearCache();
        }
        getLogger().info("ImageReveal has been disabled!");
    }
    
    public void reloadPluginConfig() {
        reloadConfig();
        imageManager.clearCache();
        getLogger().info("Configuration reloaded!");
    }
}