rackyrb

make me a plugin using, glowingentities https://github.com/lucas-santoro/serverxray , protocolib (paper) where it highlights the ored like ancient_debris or diamond ore (the plugin MUST be called r-xray) and I want it to be customisable like diamond_ore = blue or radius = 100

Kodari AI
KodariFeb 7 at 8:31 am 8,395 (v2)

I’ll create a server-side X-ray plugin using GlowingEntities and ProtocolLib to highlight ores with customizable colors and radius.

RXray
A server-side X-ray plugin that highlights configured ores using glowing effects via ProtocolLib and GlowingEntities. Players can see through walls to spot ores like diamonds and ancient debris within a configurable radius. Each ore type can have custom glow colors and detection ranges, providing a customizable ore detection system for survival servers.

Plugin created! RXray highlights ores using ProtocolLib with invisible glowing shulkers. Configure ore colors (BLUE, RED, GREEN, etc.) and radius in config.yml. Use /rxray toggle to enable/disable, /rxray reload to refresh config, and /rxray info for current settings.

rackyrb

is it paper

Kodari AI
KodariFeb 7 at 8:35 am 2,463 (v2)

Yes, it’s Paper.

The plugin uses io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT as its API dependency. It’s targeting Minecraft 1.21 with Paper.

rackyrb

No config.yml? No plugin.yml?

Kodari AI
KodariFeb 7 at 8:36 am 2,181 (v2)

Both files exist in the project! Let me read them to show you what’s configured:

Yes, both files exist!

config.yml (62 lines):

  • Radius: 100 blocks

  • Update interval: 20 ticks

  • Comprehensive ore list with colors (diamond=BLUE, ancient_debris=RED, emerald=GREEN, etc.)

plugin.yml (22 lines):

  • Depends: ProtocolLib

  • Soft-depends: GlowingEntities

  • Command: /rxray (alias: /xray)

  • Permissions: rxray.admin (op) and rxray.use (default true)

Both are fully configured and ready. Were you expecting something different, or did you want to modify them?

rackyrb

how do I import

Kodari AI
KodariFeb 7 at 8:36 am 871 (v2)

I need more details to help you with importing. Could you clarify what you’re trying to import?

For example:

  • A dependency (like Vault, PlaceholderAPI, etc.) → I’ll add it to build.gradle and plugin.yml

  • A specific class in your code → I’ll add the import statement

  • XSeries utilities (XMaterial, XSound, etc.) → I’ll show you the correct import

  • A library like HikariCP or Jedis → I’ll add it to manifest.kod and build.gradle

What are you trying to import?

rackyrb

no like download it then put it in

Kodari AI
KodariFeb 7 at 8:36 am 899 (v2)

I don’t have context from your previous message. Could you clarify what you’d like me to download and integrate into the RXray plugin?

For example:

  • A specific library or dependency?

  • Configuration from an external source?

  • Code from documentation?

  • A feature from another project?

Please specify what you need added and where I should get it from.

rackyrb

is the files placed correctly?

Kodari AI
KodariFeb 7 at 8:38 am 3,869 (v2)

Looking at your project structure, I need to verify the package declarations match the file paths. Let me check:

Yes, all files are placed correctly! ✓

Verification:

  • ✓ Package com.rxray matches path src/main/java/com/rxray/

  • ✓ Package com.rxray.command matches path src/main/java/com/rxray/command/

  • ✓ Package com.rxray.manager matches path src/main/java/com/rxray/manager/

  • ✓ plugin.yml main class com.rxray.RXray points to correct file

  • ✓ Resources (config.yml, plugin.yml) in src/main/resources/

  • ✓ Build files (build.gradle, manifest.kod) at root

This is a properly structured Gradle-based Minecraft plugin. All package declarations align with directory structure, which means it will compile and run without path-related issues.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
9 593
src/main/java/com/rxray/RXray.java
package com.rxray;

import com.rxray.manager.ConfigManager;
import com.rxray.manager.HighlightManager;
import com.rxray.command.RXrayCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class RXray extends JavaPlugin {
    private ConfigManager configManager;
    private HighlightManager highlightManager;

    @Override
    public void onEnable() {
        if (!getServer().getPluginManager().isPluginEnabled("ProtocolLib")) {
            getLogger().severe("ProtocolLib not found! Please install ProtocolLib.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.highlightManager = new HighlightManager(this);
        
        getCommand("rxray").setExecutor(new RXrayCommand(this));
        
        getLogger().info("RXray has been enabled!");
    }

    @Override
    public void onDisable() {
        if (highlightManager != null) {
            highlightManager.shutdown();
        }
        getLogger().info("RXray has been disabled!");
    }

    public void reload() {
        reloadConfig();
        configManager.reload();
        if (highlightManager != null) {
            highlightManager.shutdown();
        }
        highlightManager = new HighlightManager(this);
    }
}