Sudagani John goud

and also add sidebar of quest so players can see what to do

๐Ÿ“Ž 1 file 9,892 chars
๐Ÿ“„
pasted-code-1790419918373.txt
txt 634 lines
โ–ถ
Create a complete Minecraft Paper plugin called **ZeroQuests**.

TARGET SERVER:

* Paper 26.2-121
* Java 21
* Gradle
* Standalone plugin
* No external quest plugin required
* Designed for a Survival + Lifesteal + PvP server
* Economy integration should support Vault + any Vault-compatible economy plugin.

MAIN CONCEPT:

Create a complete built-in quest system with **100+ pre-made quests**.

Players should be able to open a Quest GUI and choose quests. Every quest has a difficulty:

๐ŸŸข EASY
๐ŸŸก MEDIUM
๐Ÿ”ด HARD
๐ŸŸฃ EXTREME

The harder the quest, the higher the money reward.

The plugin must come with at least **120 fully configured quests**, so the server owner does not need to manually create quests.

QUEST CATEGORIES:

Create built-in quests across these categories:

1. Mining
2. Farming
3. Woodcutting
4. Fishing
5. Hunting
6. Exploration
7. Combat
8. Crafting
9. Smelting
10. Building
11. Villager
12. Nether
13. End
14. Survival
15. PvP
16. Boss/Challenge
17. Wealth/Economy
18. Collection

QUEST DIFFICULTIES:

EASY:

* Simple beginner tasks
* Reward: low amount of money
* Example reward: $100-$500

MEDIUM:

* Requires more grinding
* Reward: $500-$2,000

HARD:

* Requires significant effort
* Reward: $2,000-$7,500

EXTREME:

* Very difficult challenges
* Reward: $7,500-$25,000+

Make all reward values configurable.

IMPORTANT:
Do NOT randomly generate quests.
The plugin must contain 120+ carefully designed built-in quests.

EXAMPLE QUESTS:

EASY:

1. "First Tree"
   Task:
   Break 16 Oak Logs
   Reward:
   $150

2. "Stone Age"
   Task:
   Mine 64 Stone
   Reward:
   $200

3. "Farmer"
   Task:
   Harvest 32 Wheat
   Reward:
   $250

4. "Getting Started"
   Task:
   Craft a Stone Pickaxe
   Reward:
   $100

5. "Food Supply"
   Task:
   Cook 16 Steak
   Reward:
   $200

MEDIUM:

6. "Iron Miner"
   Task:
   Mine 32 Iron Ore
   Reward:
   $1,000

7. "Diamond Hunter"
   Task:
   Mine 5 Diamonds
   Reward:
   $1,500

8. "Deep Explorer"
   Task:
   Reach Y-level -40
   Reward:
   $1,000

9. "Monster Hunter"
   Task:
   Kill 50 Hostile Mobs
   Reward:
   $1,500

10. "Master Farmer"
    Task:
    Harvest 256 crops
    Reward:
    $1,250

HARD:

11. "Diamond Collector"
    Task:
    Collect 32 Diamonds
    Reward:
    $5,000

12. "Nether Expedition"
    Task:
    Enter the Nether and collect 32 Nether Quartz
    Reward:
    $4,000

13. "Warrior"
    Task:
    Kill 100 hostile mobs
    Reward:
    $5,000

14. "Treasure Hunter"
    Task:
    Find a naturally generated structure
    Reward:
    $4,000

15. "Rich Farmer"
    Task:
    Harvest 1,000 crops
    Reward:
    $6,000

EXTREME:

16. "Dragon Slayer"
    Task:
    Kill the Ender Dragon
    Reward:
    $25,000

17. "Nether Warrior"
    Task:
    Kill 100 Nether mobs
    Reward:
    $15,000

18. "Diamond Empire"
    Task:
    Collect 128 Diamonds
    Reward:
    $20,000

19. "Explorer"
    Task:
    Visit 20 different biomes
    Reward:
    $15,000

20. "Survival Master"
    Task:
    Survive for a configurable amount of playtime
    Reward:
    $20,000

Create many more quests so there are at least 120 total.

QUEST OBJECTIVES:

Support multiple objective types:

* Break blocks
* Place blocks
* Collect items
* Craft items
* Smelt items
* Cook food
* Kill mobs
* Kill specific mobs
* Kill players
* Catch fish
* Breed animals
* Tame animals
* Harvest crops
* Plant crops
* Travel distance
* Visit biomes
* Visit dimensions
* Enter structures
* Obtain achievements/advancements
* Reach specific Y level
* Survive for time
* Obtain specific items
* Trade with villagers
* Use specific blocks
* Complete multiple objectives

MULTI-OBJECTIVE QUESTS:

Some quests should require multiple tasks.

Example:

"Nether Expedition"

Objectives:
โœ“ Enter the Nether
โœ“ Collect 32 Nether Quartz
โœ“ Kill 10 Blazes

Reward:
$5,000

The GUI should display progress for every objective.

QUEST GUI:

Create a beautiful inventory GUI.

Main menu:

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
QUESTS
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐ŸŸข Easy Quests
๐ŸŸก Medium Quests
๐Ÿ”ด Hard Quests
๐ŸŸฃ Extreme Quests
๐Ÿ“– Completed Quests
โญ Daily Quests
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Players can click a difficulty to view available quests.

QUEST ITEM:

Each quest should display:

Quest Name
Difficulty
Description
Objectives
Current Progress
Reward
Status
Time Limit if applicable

Example:

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
โš” MONSTER HUNTER
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Difficulty: HARD

Objectives:
Kill Hostile Mobs

Progress:
37 / 100

Reward:
$5,000

Status:
IN PROGRESS

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

When completed:

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
โœ“ QUEST COMPLETED
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

MONSTER HUNTER

Reward:
+$5,000

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

Give the player a title/action-bar message and sound effect.

QUEST TRACKING:

Players should have:

/quests

Open quest GUI.

/quests active

Show active quests.

/quests completed

Show completed quests.

/quests progress

Show current progress.

/quests abandon 

Abandon a quest if allowed.

/quests reload

Reload configuration.

ADMIN COMMANDS:

/quests admin give  
/quests admin reset  
/quests admin complete  
/quests admin resetall 
/quests admin list
/quests reload

PERMISSIONS:

zeroquests.use
zeroquests.admin
zeroquests.reload

QUEST LIMIT:

Configurable maximum number of simultaneously active quests.

Default:
3 active quests.

Players should be able to select which quests they want to work on.

COMPLETED QUESTS:

By default, a quest can only be completed once.

Store completed quests permanently using UUID-based player data.

Example:

player UUID
โ”œโ”€โ”€ completed quests
โ”œโ”€โ”€ active quests
โ”œโ”€โ”€ progress
โ””โ”€โ”€ statistics

Add configuration:

quests:
allow-repeat: false

If enabled, allow quests to be repeated after a cooldown.

ECONOMY:

Use Vault for money rewards.

Example:

Easy:
$100-$500

Medium:
$500-$2,000

Hard:
$2,000-$7,500

Extreme:
$7,500-$25,000

Make every quest's reward configurable individually.

When a player completes a quest:

1. Verify all objectives.
2. Mark quest completed.
3. Give money through Vault.
4. Send completion message.
5. Play completion sound.
6. Show particles.
7. Update GUI.
8. Save player data.

ANTI-EXPLOIT:

Prevent players from abusing quests.

Examples:

* Do not count items obtained from creative mode.
* Do not count blocks broken in prohibited worlds.
* Prevent duplicate counting from plugin-generated events.
* Prevent players from repeatedly exploiting entity kills.
* Add configurable world whitelist/blacklist.
* Do not reward a quest twice.
* Validate objectives server-side.
* Save progress safely.

QUEST PROGRESS:

Progress must update automatically when the player performs the required action.

Example:

Quest:
Mine 100 Iron Ore

Player mines:
1 Iron Ore

GUI updates:

1 / 100

After 50:

50 / 100

After 100:

โœ“ COMPLETE

Do not require the player to manually claim the reward unless configured.

DAILY QUESTS:

Also add 10+ daily quests.

Daily quests reset automatically every 24 hours.

Examples:

* Kill 25 Zombies
* Mine 32 Iron
* Harvest 128 crops
* Fish 10 fish
* Travel 2,000 blocks
* Collect 5 Diamonds

Daily rewards should be configurable.

WEEKLY QUESTS:

Add 10+ weekly quests.

Examples:

* Kill 250 mobs
* Mine 128 ores
* Earn $10,000
* Travel 20,000 blocks
* Kill 10 players
* Collect 32 diamonds

CONFIGURATION:

Create a detailed config.yml.

Example:

economy:
enabled: true
easy:
min: 100
max: 500
medium:
min: 500
max: 2000
hard:
min: 2000
max: 7500
extreme:
min: 7500
max: 25000

quest-settings:
max-active: 3
allow-repeat: false
daily-enabled: true
weekly-enabled: true

world-settings:
blacklist:
- creative
- lobby

GUI:

Use colored glass panes for decoration.

Use different colors for difficulties:

EASY = GREEN
MEDIUM = YELLOW
HARD = RED
EXTREME = PURPLE

Use Minecraft-compatible color codes.

QUEST DATA:

Store quest definitions in configuration files so server owners can edit them.

Example:

quests:
mining_001:
name: "&aFirst Miner"
difficulty: EASY
objectives:
- type: BREAK
material: STONE
amount: 32
reward: 150

mining_002:
name: "&eIron Hunter"
difficulty: MEDIUM
objectives:
- type: BREAK
material: IRON_ORE
amount: 32
reward: 1000

Make all 120+ quests available in these files by default.

PERFORMANCE:

The plugin must be optimized for survival servers.

Do NOT constantly scan every player every tick.

Use Bukkit/Paper events whenever possible.

Avoid unnecessary repeating tasks.

Cache active quest data.

Save player data safely.

Cancel tasks when players disconnect.

The plugin should be suitable for a server with many players.

COMPATIBILITY:

Paper 26.2-121
Java 21
Vault
Any Vault-compatible economy plugin

Do not require EssentialsX unless absolutely necessary.

FINAL REQUIREMENT:

Provide the COMPLETE plugin project.

Include:

* Full Java source code
* All classes
* build.gradle
* settings.gradle
* gradle.properties
* plugin.yml
* config.yml
* Built-in 120+ quests
* GUI system
* Economy system
* Quest tracking
* Progress system
* Daily quests
* Weekly quests
* Admin commands
* Permissions
* Player data storage
* Anti-exploit protection

DO NOT provide pseudocode.
DO NOT leave TODOs.
DO NOT omit classes.
DO NOT say "implement this yourself".
Everything must be fully implemented and compilable for Paper 26.2-121.
Kodari AI
KodariSep 26 at 11:01 am 2
ZeroQuests
A complete standalone quest system plugin for Paper servers with 120+ built-in quests across 18 categories. Features a GUI-based quest selection menu with color-coded difficulty tiers (Easy, Medium, Hard, Extreme), multi-objective quest tracking, daily and weekly rotating quests, Vault economy integration for money rewards, and a persistent player data system. Includes comprehensive quest progress tracking with automatic updates, a sidebar quest tracker showing active objectives and progress, admin commands for quest management, anti-exploit protections, and fully configurable quest definitions stored in YAML files. Players can track up to 3 active quests simultaneously, view progress in real-time, and receive rewards automatically upon completion with visual and audio feedback.
  1. Create the Gradle/Paper project metadata and configurable quest definitions, including 120+ built-in quests.

  2. Implement quest models, persistence, event-driven progress/rewards, GUI, commands, and the live quest sidebar.

  3. Register permissions, listeners, Vault integration, and default configuration.

Created the ZeroQuests Paper plugin project with 147 configured quests, including daily and weekly challenges. It includes the quest GUI, live player sidebar, event-driven progress tracking, UUID-based YAML storage, Vault rewards, repeat and active-quest settings, world filters, and player/admin commands.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
17 1,095
src/main/java/com/zeroquests/ZeroQuestsPlugin.java
package com.zeroquests;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class ZeroQuestsPlugin extends JavaPlugin {
    private QuestManager questManager;
    private QuestSidebar sidebar;
    private QuestGui gui;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        if (!new java.io.File(getDataFolder(), "quests.yml").exists()) saveResource("quests.yml", false);
        questManager = new QuestManager(this);
        sidebar = new QuestSidebar(this);
        gui = new QuestGui(this);
        Bukkit.getPluginManager().registerEvents(new QuestListener(this), this);
        Bukkit.getPluginManager().registerEvents(gui, this);
        getCommand("quests").setExecutor(new QuestCommand(this));
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                questManager.record(player, "SURVIVE", "MINUTES", 1);
                sidebar.update(player);
            }
        }, 1200L, 1200L);
        for (Player player : Bukkit.getOnlinePlayers()) {
            questManager.data(player);
            sidebar.update(player);
        }
        getLogger().info("ZeroQuests enabled with " + questManager.quests().size() + " quests.");
    }

    @Override
    public void onDisable() {
        if (questManager != null) questManager.saveAll();
        if (sidebar != null) for (Player player : Bukkit.getOnlinePlayers()) sidebar.restore(player);
    }

    public String message(String key) {
        return ChatColor.translateAlternateColorCodes('&', getConfig().getString("messages.prefix", "&8[&bZeroQuests&8] &r")
                + getConfig().getString("messages." + key, "&cMissing message: " + key));
    }

    public QuestManager getQuestManager() { return questManager; }
    public QuestSidebar getSidebar() { return sidebar; }
    public QuestGui getGui() { return gui; }
}