sagarggracy-svg

The file has all features and the core for the plugin i need for my smp so can you please make it. Also make different texure packs for my different types of boomerang

๐Ÿ“Ž 1 file 3,066 chars
๐Ÿ“„
pasted-code-1787804698535.txt
txt 64 lines
โ–ถ
Here is the complete feature map for your **Boomerang SMP**โ€”built entirely around core gameplay rules, server configs, and native plugin settings without needing custom Skript coding.

---

### Core Concept & Game Loop

* **Boomerang-Centric Combat:** Standard swords and axes are heavily nerfed or disabled. Combat revolves around throwing and upgrading your Soulbound Boomerang.
* **Instant Starter Gear:** Every player receives a Tier 1 Wooden Boomerang the moment they join the server.
* **Soulbound Security:** Boomerangs cannot be dropped, placed in chests, traded, or lost on death.
* **Digital Economy:** Money is stored as a digital currency directly tied to player profiles.

---

### Boomerang Tier Progression

| Tier | Item Name | Target Range | Return Speed | Special Effect |
| --- | --- | --- | --- | --- |
| **Tier 1** | Wooden Boomerang | 8 blocks | Standard (1.5s) | Basic single-target damage |
| **Tier 2** | Iron Boomerang | 12 blocks | Fast (1.0s) | Pierces through up to 2 targets |
| **Tier 3** | Diamond Boomerang | 16 blocks | Rapid (0.8s) | Lifesteal (heals user on hit) + Fire Impact |
| **Tier 4** | Netherite Sovereign | 24 blocks | Instant (0.5s) | AoE Shockwave knockback on impact |

---

### Digital Money & Economy System

```
Kill Mobs/Players โž” Gain Digital Coins โž” Spend at Spawn Villagers โž” Buy Building Materials & Supplies

```

* **Earning Digital Money:**
* **Mob Bounties:** Killing hostile mobs instantly deposits digital coins into your balance.
* **Player Bounties:** Eliminating an enemy player awards a bonus cash reward plus a percentage of the victim's digital balance.


* **Loot Merchants (Spawn NPCs):** Players can exchange physical mob drops (Rotten Flesh, Bones, Gunpowder, Blaze Rods) directly for digital coins.
* **Block Merchants (Spawn NPCs):** Dedicated Spawn villagers accept digital payments for building materials like Quartz, Terracotta, Glass, and Obsidian.
* **Peer-to-Peer Transfers:** Players can instantly send digital funds to allies anywhere on the map.

---

### PvP & Death Rules

* **Digital Cash Penalty:** Dying in PvP causes a **10% deduction** from your digital balance, which is awarded directly to your killer.
* **Respawn Protection:** When you die, your active Boomerang tier stays equipped in your main hand upon respawning.
* **Safe Zone vs. Warzone:** Spawn is protected from PvP. Step into the outer Warzone to engage in high-risk battles where player kill rewards are doubled.

---

### Command Guide

**Player Commands:**

* `/bal` or `/balance` โ€” Displays your current digital balance.
* `/pay  ` โ€” Transfers digital funds to another online player.
* `/binfo` โ€” Checks your current Boomerang Tier and stats.

**Admin Commands (`op`):**

* `/eco give  ` โ€” Adds digital funds to a player's balance.
* `/eco set  ` โ€” Sets a player's digital balance to a specific amount.
* `/eco reset ` โ€” Resets a player's digital balance to zero.
* `/ei give  ` โ€” Manually awards a specific Boomerang tier to a player.
Kodari AI
KodariAug 27 at 4:35 am 3
BoomerangSMPCore
Core plugin for a boomerang-centric SMP server. Implements a four-tier soulbound boomerang system with distinct textures per tier, digital currency economy with mob/player bounties, PvP death penalties, and safe zone protection. Features GUI-based merchants for trading mob drops and buying building materials, peer-to-peer payments, and comprehensive player/admin commands for balance and boomerang management. Includes automatic starter gear on join and respawn protection to keep equipped boomerangs.
  1. Create the Boomerang SMP plugin core: progression, soulbound throwing, combat/death rules, economy, bounties, commands, and shops.

  2. Add the inventory GUI framework used by the shop.

  3. Add a resource-pack source with distinct custom-model variants for all four boomerang tiers and configurable delivery on join.

The initial source set is created. Iโ€™m correcting one scheduler type mismatch before finishing so the generated project remains compilable.Created the Boomerang SMP plugin with:

  • Four boomerang tiers: Wooden, Iron, Diamond, Netherite Sovereign

  • Throwing, range limits, return timing, damage, piercing, lifesteal, fire impact, and shockwave effects

  • Soulbound protection against dropping, chest storage, and trading

  • Starter boomerang on join and preservation after death

  • Digital economy with /bal, /pay, /eco, and mob/player bounties

  • Safe-zone PvP protection and warzone reward multiplier

  • Disabled or nerfed sword/axe combat

  • /binfo, /ei give, and /shop commands

  • Spawn villagers open the merchant GUI inside the safe zone

  • Configurable mob rewards, shop prices, combat settings, and resource-pack URL

  • Inventory GUI framework for merchant interactions

  • Resource-pack source under resourcepack/ with distinct custom-model variants for each tier using model data 1001โ€“1004

To use the models, zip the contents of resourcepack/, host the ZIP publicly, and set its direct download URL in:

YAML
resource-pack:
  url: 'https://example.com/boomerang-pack.zip'
Kodari can make mistakes. Review important code before using.
Files
resourcepack
src
build.gradle
settings.gradle
Code
31 1,353
src/main/java/com/kodari/boomerangsmp/BoomerangSMPPlugin.java
package com.kodari.boomerangsmp;

import com.kodari.boomerangsmp.command.BoomerangCommand;
import com.kodari.boomerangsmp.economy.EconomyManager;
import com.kodari.boomerangsmp.gui.GUIListener;
import com.kodari.boomerangsmp.gui.GUIManager;
import com.kodari.boomerangsmp.item.BoomerangItemFactory;
import com.kodari.boomerangsmp.listener.BountyListener;
import com.kodari.boomerangsmp.listener.GameplayListener;
import com.kodari.boomerangsmp.player.PlayerDataStore;
import com.kodari.boomerangsmp.shop.ShopManager;
import com.kodari.boomerangsmp.zone.ZoneManager;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class BoomerangSMPPlugin extends JavaPlugin {
    private PlayerDataStore playerDataStore;
    private EconomyManager economyManager;
    private BoomerangItemFactory itemFactory;
    private ZoneManager zoneManager;
    private BoomerangManager boomerangManager;
    private GUIManager guiManager;
    private ShopManager shopManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.playerDataStore = new PlayerDataStore(this);
        this.economyManager = new EconomyManager(playerDataStore);
        this.itemFactory = new BoomerangItemFactory(this);
        this.zoneManager = new ZoneManager(this);
        this.boomerangManager = new BoomerangManager(this, itemFactory, playerDataStore);
        this.guiManager = new GUIManager();
        this.shopManager = new ShopManager(this, economyManager, guiManager);

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new GameplayListener(this), this);
        Bukkit.getPluginManager().registerEvents(new BountyListener(this), this);

        BoomerangCommand command = new BoomerangCommand(this);
        registerCommand("bal", command);
        registerCommand("pay", command);
        registerCommand("binfo", command);
        registerCommand("eco", command);
        registerCommand("ei", command);
        registerCommand("shop", command);
    }

    private void registerCommand(String name, BoomerangCommand command) {
        if (getCommand(name) != null) {
            getCommand(name).setExecutor(command);
            getCommand(name).setTabCompleter(command);
        }
    }

    @Override
    public void onDisable() {
        if (playerDataStore != null) {
            playerDataStore.saveAll();
        }
    }

    public NamespacedKey projectileKey() {
        return new NamespacedKey(this, "boomerang-projectile");
    }

    public PlayerDataStore playerDataStore() {
        return playerDataStore;
    }

    public EconomyManager economyManager() {
        return economyManager;
    }

    public BoomerangItemFactory itemFactory() {
        return itemFactory;
    }

    public ZoneManager zoneManager() {
        return zoneManager;
    }

    public BoomerangManager boomerangManager() {
        return boomerangManager;
    }

    public ShopManager shopManager() {
        return shopManager;
    }
}