P Kfg

==========================================================

VOLTRA REALMS

Main Plugin Configuration

==========================================================

plugin: name: "Voltra Realms" version: "1.0.0" language: "en" debug: false

==========================================================

WEAPONS

==========================================================

weapons:

voltra: name: "&bVoltra" type: "SWORD" damage: 12 ability: "thunder_strike" cooldown: 5 description:

  • "&7A weapon charged with storm energy."
  • "&eAbility: &bThunder Strike"

crystal: name: "&dCrystal" type: "SWORD" damage: 10 ability: "crystal_burst" cooldown: 6 description:

  • "&7A mysterious crystal weapon."
  • "&eAbility: &dCrystal Burst"

tempest: name: "&9Tempest" type: "AXE" damage: 14 ability: "tempest_wave" cooldown: 8 description:

  • "&7Commands the power of violent winds."
  • "&eAbility: &9Tempest Wave"

timber: name: "&6Timber" type: "AXE" damage: 13 ability: "forest_smash" cooldown: 7 description:

  • "&7A weapon forged from ancient wood."
  • "&eAbility: &6Forest Smash"

nova: name: "&eNova" type: "SWORD" damage: 15 ability: "nova_blast" cooldown: 10 description:

  • "&7Contains the energy of a dying star."
  • "&eAbility: &eNova Blast"

blizzard: name: "&bBlizzard" type: "SWORD" damage: 11 ability: "frost_storm" cooldown: 8 description:

  • "&7Freezes enemies with a deadly storm."
  • "&eAbility: &bFrost Storm"

gamma: name: "&5Gamma" type: "BOW" damage: 16 ability: "gamma_ray" cooldown: 9 description:

  • "&7A weapon filled with unstable energy."
  • "&eAbility: &5Gamma Ray"

==========================================================

SEVEN COMPASSES

==========================================================

compasses:

voltra: name: "&bVoltra Compass" island: "voltra" destination: "voltra_spawn"

crystal: name: "&dCrystal Compass" island: "crystal" destination: "crystal_spawn"

tempest: name: "&9Tempest Compass" island: "tempest" destination: "tempest_spawn"

timber: name: "&6Timber Compass" island: "timber" destination: "timber_spawn"

nova: name: "&eNova Compass" island: "nova" destination: "nova_spawn"

blizzard: name: "&bBlizzard Compass" island: "blizzard" destination: "blizzard_spawn"

gamma: name: "&5Gamma Compass" island: "gamma" destination: "gamma_spawn"

==========================================================

ISLANDS

==========================================================

islands:

voltra: world: "voltra_island" biome: "storm" spawn: "0,100,0"

crystal: world: "crystal_island" biome: "crystal_caves" spawn: "0,100,0"

tempest: world: "tempest_island" biome: "windswept" spawn: "0,110,0"

timber: world: "timber_island" biome: "forest" spawn: "0,100,0"

nova: world: "nova_island" biome: "cosmic" spawn: "0,120,0"

blizzard: world: "blizzard_island" biome: "snow" spawn: "0,110,0"

gamma: world: "gamma_island" biome: "radioactive" spawn: "0,100,0"

==========================================================

PLAYER ABILITIES

==========================================================

abilities:

thunder_strike: cooldown: 5 damage: 18 radius: 3

crystal_burst: cooldown: 7 damage: 16 radius: 4

tempest_wave: cooldown: 8 damage: 20 radius: 6

forest_smash: cooldown: 7 damage: 22 radius: 5

nova_blast: cooldown: 10 damage: 30 radius: 7

frost_storm: cooldown: 8 damage: 18 radius: 6 slow: 4

gamma_ray: cooldown: 9 damage: 28 range: 20

==========================================================

FOUR SPECIAL PLAYER ABILITIES

==========================================================

special-abilities:

dash: cooldown: 8 distance: 8

meteor: cooldown: 20 damage: 30 radius: 6

shadow_step: cooldown: 15 distance: 12

guardian: cooldown: 30 duration: 5 damage-reduction: 50

==========================================================

BOSSES

==========================================================

bosses:

voltra_lord: name: "&bVoltra Lord" hp: 2500 island: "voltra" bar-color: "BLUE" phases: 3 texture: "boss/voltra_lord" abilities:

  • thunder_storm
  • lightning_strike
  • storm_wave

crystal_guardian: name: "&dCrystal Guardian" hp: 2200 island: "crystal" bar-color: "PURPLE" phases: 3 texture: "boss/crystal_guardian" abilities:

  • crystal_shards
  • crystal_wall
  • crystal_burst

tempest_king: name: "&9Tempest King" hp: 2800 island: "tempest" bar-color: "BLUE" phases: 3 texture: "boss/tempest_king" abilities:

  • tornado
  • wind_blast
  • storm_call

timber_titan: name: "&6Timber Titan" hp: 3000 island: "timber" bar-color: "GREEN" phases: 3 texture: "boss/timber_titan" abilities:

  • ground_smash
  • root_attack
  • forest_call

nova_overlord: name: "&eNova Overlord" hp: 3500 island: "nova" bar-color: "YELLOW" phases: 3 texture: "boss/nova_overlord" abilities:

  • nova_blast
  • starfall
  • solar_wave

blizzard_queen: name: "&bBlizzard Queen" hp: 2700 island: "blizzard" bar-color: "WHITE" phases: 3 texture: "boss/blizzard_queen" abilities:

  • ice_storm
  • freeze
  • blizzard

gamma_beast: name: "&5Gamma Beast" hp: 4000 island: "gamma" bar-color: "PURPLE" phases: 3 texture: "boss/gamma_beast" abilities:

  • gamma_ray
  • radiation_wave
  • gamma_explosion

==========================================================

BOSS PHASES

==========================================================

boss-phases:

phase-1: health: 100 damage-multiplier: 1.0 speed: 1.0

phase-2: health: 60 damage-multiplier: 1.25 speed: 1.15

phase-3: health: 30 damage-multiplier: 1.5 speed: 1.3 enraged: true

==========================================================

BOSS BARS

==========================================================

boss-bars: enabled: true title: "&c{boss} &7| &f{health}/{max_health}" range: 50 update-ticks: 5 show-during-combat: true hide-after-death: true

==========================================================

BOSS ABILITIES

==========================================================

boss-abilities:

thunder_storm: cooldown: 8 damage: 20 radius: 8

lightning_strike: cooldown: 5 damage: 25

storm_wave: cooldown: 12 damage: 30 radius: 10

crystal_shards: cooldown: 6 damage: 18

crystal_wall: cooldown: 12 duration: 5

crystal_burst: cooldown: 10 damage: 35 radius: 6

tornado: cooldown: 10 damage: 22 radius: 8

wind_blast: cooldown: 6 damage: 18

storm_call: cooldown: 15 damage: 35

ground_smash: cooldown: 8 damage: 28 radius: 7

root_attack: cooldown: 10 damage: 20 duration: 5

forest_call: cooldown: 18 minions: 3

nova_blast: cooldown: 8 damage: 35 radius: 7

starfall: cooldown: 12 damage: 30 radius: 10

solar_wave: cooldown: 18 damage: 45

ice_storm: cooldown: 10 damage: 25 radius: 8

freeze: cooldown: 8 duration: 4

blizzard: cooldown: 20 damage: 40 radius: 12

gamma_ray: cooldown: 7 damage: 30 range: 25

radiation_wave: cooldown: 12 damage: 35 radius: 8

gamma_explosion: cooldown: 20 damage: 50 radius: 10

==========================================================

BOSS REWARDS

==========================================================

rewards:

enabled: true

voltra_lord: experience: 500 items:

  • "VOLTRA"

crystal_guardian: experience: 500 items:

  • "CRYSTAL"

tempest_king: experience: 600 items:

  • "TEMPEST"

timber_titan: experience: 600 items:

  • "TIMBER"

nova_overlord: experience: 750 items:

  • "NOVA"

blizzard_queen: experience: 750 items:

  • "BLIZZARD"

gamma_beast: experience: 1000 items:

  • "GAMMA"

==========================================================

RESOURCE PACK

==========================================================

resource-pack: enabled: true url: "YOUR_RESOURCE_PACK_URL" required: false

textures: weapons: true compasses: true bosses: true

models: voltra: "weapons/voltra" crystal: "weapons/crystal" tempest: "weapons/tempest" timber: "weapons/timber" nova: "weapons/nova" blizzard: "weapons/blizzard" gamma: "weapons/gamma"

==========================================================

PORTALS

==========================================================

portals: enabled: true activation-item: "COMPASS" particles: true sounds: true

portal-open-time: 10 teleport-delay: 3

worlds: voltra: "voltra_island" crystal: "crystal_island" tempest: "tempest_island" timber: "timber_island" nova: "nova_island" blizzard: "blizzard_island" gamma: "gamma_island"

==========================================================

GENERAL SETTINGS

==========================================================

gameplay: keep-inventory: false teleport-on-death: true return-world: "world" particles: true sounds: true

messages: prefix: "&8[&bVoltra Realms&8] " portal: "&aOpening the &e{island} &aportal..." teleport: "&aTeleporting to &e{island}&a!" boss-spawn: "&c⚔ {boss} has appeared!" boss-death: "&a☠ {boss} has been defeated!" cooldown: "&cAbility cooldown: &e{time}s" no-permission: "&cYou don't have permission."

Kodari AI
KodariSep 25 at 3:19 pm 1
VoltraRealms
An immersive island-hopping adventure plugin featuring seven unique themed islands, each with its own boss, weapon, and compass. Players wield powerful weapons with special abilities like Thunder Strike and Nova Blast, navigate between islands using compass-activated portals, and battle formidable bosses with multi-phase combat and health bars. The plugin includes four special player abilities (Dash, Meteor, Shadow Step, Guardian), custom resource pack support, and a GUI-based shop system for managing weapons and items.

I’ll build the Voltra Realms plugin with configurable weapons, island compasses, player abilities, boss encounters, commands, and the supplied gameplay settings.

  1. Set up the Gradle project and plugin metadata.

  2. Add the complete default configuration.

  3. Implement item, teleport, ability, boss, and command behavior.

Created the Voltra Realms plugin with the supplied configuration, Gradle setup, and plugin metadata. It includes /vr give, /vr travel, /vr ability, /vr boss, and /vr reload, plus custom weapons, island compasses, cooldowns, boss phases, boss bars, and rewards.

Island worlds must be loaded on the server for travel and boss spawning to work. The configured resource pack is sent to players when its URL is set to a real URL.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 1,056
src/main/java/com/voltrarealms/VoltraRealmsPlugin.java
package com.voltrarealms;

import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.NamespacedKey;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;

public final class VoltraRealmsPlugin extends JavaPlugin implements CommandExecutor {
    private NamespacedKey weaponKey;
    private NamespacedKey compassKey;
    private RealmListener realmListener;
    private BossManager bossManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        weaponKey = new NamespacedKey(this, "weapon");
        compassKey = new NamespacedKey(this, "island_compass");
        realmListener = new RealmListener(this);
        bossManager = new BossManager(this);
        Bukkit.getPluginManager().registerEvents(realmListener, this);
        Bukkit.getPluginManager().registerEvents(bossManager, this);
        getCommand("voltrarealms").setExecutor(this);
    }

    @Override
    public void onDisable() {
        if (bossManager != null) {
            bossManager.shutdown();
        }
    }

    public NamespacedKey getWeaponKey() {
        return weaponKey;
    }

    public NamespacedKey getCompassKey() {
        return compassKey;
    }

    public RealmListener getRealmListener() {
        return realmListener;
    }

    public Location getIslandSpawn(String islandId) {
        String path = "islands." + islandId.toLowerCase(Locale.ROOT);
        String worldName = getConfig().getString(path + ".world");
        World world = worldName == null ? null : Bukkit.getWorld(worldName);
        if (world == null) {
            return null;
        }
        String[] coordinates = getConfig().getString(path + ".spawn", "0,100,0").split(",");
        try {
            double x = Double.parseDouble(coordinates[0].trim());
            double y = Double.parseDouble(coordinates[1].trim());
            double z = Double.parseDouble(coordinates[2].trim());
            return new Location(world, x, y, z);
        } catch (RuntimeException exception) {
            return world.getSpawnLocation();
        }
    }

    public ItemStack createWeapon(String weaponId) {
        String id = weaponId.toLowerCase(Locale.ROOT);
        String path = "weapons." + id;
        if (!getConfig().isConfigurationSection(path)) {
            return null;
        }
        String type = getConfig().getString(path + ".type", "SWORD").toUpperCase(Locale.ROOT);
        String materialName = switch (type) {
            case "AXE" -> "DIAMOND_AXE";
            case "BOW" -> "BOW";
            default -> "DIAMOND_SWORD";
        };
        ItemStack item = XMaterial.matchXMaterial(materialName).map(XMaterial::parseItem).orElse(null);
        if (item == null) {
            return null;
        }
        ItemMeta meta = item.getItemMeta();
        meta.setDisplayName(color(getConfig().getString(path + ".name", id)));
        List<String> lore = new ArrayList<>();
        for (String line : getConfig().getStringList(path + ".description")) {
            lore.add(color(line));
        }
        meta.setLore(lore);
        meta.getPersistentDataContainer().set(weaponKey, PersistentDataType.STRING, id);
        item.setItemMeta(meta);
        return item;
    }

    public ItemStack createCompass(String compassId) {
        String id = compassId.toLowerCase(Locale.ROOT);
        String path = "compasses." + id;
        if (!getConfig().isConfigurationSection(path)) {
            return null;
        }
        ItemStack item = XMaterial.matchXMaterial("COMPASS").map(XMaterial::parseItem).orElse(null);
        if (item == null) {
            return null;
        }
        ItemMeta meta = item.getItemMeta();
        meta.setDisplayName(color(getConfig().getString(path + ".name", id + " compass")));
        meta.setLore(List.of(color("&7Right-click to travel to this island.")));
        meta.getPersistentDataContainer().set(compassKey, PersistentDataType.STRING,
                getConfig().getString(path + ".island", id));
        item.setItemMeta(meta);
        return item;
    }

    public void teleportToIsland(Player player, String islandId) {
        if (!getConfig().getBoolean("portals.enabled", true)) {
            return;
        }
        String id = islandId.toLowerCase(Locale.ROOT);
        String displayName = getConfig().getString("islands." + id + ".world", id);
        String opening = getConfig().getString("messages.portal", "&aOpening the &e{island} &aportal...")
                .replace("{island}", displayName);
        player.sendMessage(message(opening));
        long delay = Math.max(0L, getConfig().getLong("portals.teleport-delay", 3L)) * 20L;
        Bukkit.getScheduler().runTaskLater(this, () -> {
            if (!player.isOnline()) {
                return;
            }
            Location destination = getIslandSpawn(id);
            if (destination == null) {
                player.sendMessage(message("&cThat island world is not loaded."));
                return;
            }
            player.teleport(destination);
            player.sendMessage(message(getConfig().getString("messages.teleport", "&aTeleporting to &e{island}&a!")
                    .replace("{island}", displayName)));
        }, delay);
    }

    public String message(String text) {
        return color(getConfig().getString("messages.prefix", "") + text);
    }

    public static String color(String text) {
        return ChatColor.translateAlternateColorCodes('&', text == null ? "" : text);
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length == 0) {
            sender.sendMessage(message("&bCommands: &f/vr give <player> <weapon|compass> <id>, /vr travel <island>, /vr ability <id>, /vr boss <id>, /vr reload"));
            return true;
        }
        switch (args[0].toLowerCase(Locale.ROOT)) {
            case "give" -> handleGive(sender, args);
            case "travel" -> {
                if (!(sender instanceof Player player) || args.length < 2) {
                    sender.sendMessage(message("&cUsage: /vr travel <island> (players only)"));
                    return true;
                }
                teleportToIsland(player, args[1]);
            }
            case "ability" -> {
                if (!(sender instanceof Player player) || args.length < 2) {
                    sender.sendMessage(message("&cUsage: /vr ability <dash|meteor|shadow_step|guardian> (players only)"));
                    return true;
                }
                realmListener.useSpecialAbility(player, args[1].toLowerCase(Locale.ROOT));
            }
            case "boss" -> {
                if (!hasAdminPermission(sender)) return true;
                if (args.length < 2 || !bossManager.spawnBoss(args[1].toLowerCase(Locale.ROOT))) {
                    sender.sendMessage(message("&cUsage: /vr boss <configured-boss-id>"));
                }
            }
            case "reload" -> {
                if (!hasAdminPermission(sender)) return true;
                reloadConfig();
                sender.sendMessage(message("&aConfiguration reloaded."));
            }
            default -> sender.sendMessage(message("&cUnknown subcommand. Use /vr for help."));
        }
        return true;
    }

    private void handleGive(CommandSender sender, String[] args) {
        if (!hasAdminPermission(sender)) return;
        if (args.length < 4) {
            sender.sendMessage(message("&cUsage: /vr give <player> <weapon|compass> <id>"));
            return;