T

Make a Minecraft Parkour Plugin for a Gamemode called OneJump that adds a command /oj <create|edit|delete> <difficulty> <name (this will be multple words)>. When you add the oj you have to /setojstart <name> and then /setojend <name> and the /setstrategy <name>. The difficulty will range from d1 to d10. D1 will be light blue stained glass and and D2 blue stained and d3 lime and d4 yellow and d5 orange and d6 red and d7 pink and d8 purple and d9 dark gray and d10 black. when someone clicks the oj in the INVENTORY GUI it will show them the different difficulty of jumps in differnt pages from 1-10. When someone completes a jump it is saved andturns to concrete in the INVENTORY GUI. When a player right clicks on a nether star that you will make a command /ojstar it will open the INVENTORY GUI. Also add a admin version of the command only for operators or people with oj.create permission. Make it so they can disable certain jumps in the INVENTORY GUI. Also ojs will give points if someone completes them. And if someone completes an Oj they get tped to the next one. They can skip to another one thru the INVENTORY GUI if they click on it. ALso they can filter the difficulty. Do NOT add rewards. Also give 1 point for d1, 2 for d2, 3 for d3, 6 for d4, 10 for d5, 15 for d6, 25 for d7, 40 for d8, 50 for d9, and 65 for d10. Also make a command /seeojp <plaeyer> which will tell you. Make sure to tailor it xactly to my needs.

Kodari AI
KodariMar 19 at 5:32 pm 22,654 (v2)

I’ll create a comprehensive OneJump parkour plugin with GUI-based jump selection, difficulty levels, completion tracking, and a points system.

OneJumpParkour
A comprehensive parkour plugin with 10 difficulty levels, GUI-based jump selection, completion tracking, and points system. Players right-click a nether star to open the GUI, select jumps by difficulty, and earn points upon completion. Admins can create, edit, and disable jumps with specific start, end, and strategy locations. Features include difficulty filtering, completion visualization with glass/concrete blocks, and automatic teleportation to next jumps.

OneJumpParkour plugin created successfully!

Features implemented:

  • 10 difficulty levels (d1-d10) with color-coded glass blocks that turn to concrete when completed

  • Commands: /oj, /setojstart, /setojend, /setstrategy, /ojstar, /seeojp

  • GUI system: Right-click nether star opens main menu showing all 10 difficulties with completion tracking

  • Point system: 1, 2, 3, 6, 10, 15, 25, 40, 50, 65 points for d1-d10

  • Auto-teleport to next uncompleted jump in same difficulty after completion

  • Admin GUI for enabling/disabling jumps (permission: oj.admin)

  • Persistent data storage for jumps and player progress

  • Multi-word jump names supported in all commands

T

also make it so that when you pick a jump it broadcasts the stragegy to you

Kodari AI
KodariMar 19 at 5:33 pm 10,576 (v2)

I’ll add functionality to broadcast the strategy when a player picks a jump. Let me first read the relevant files to understand the current structure.

Now I’ll modify the code to teleport players to the strategy location when they pick a jump, then teleport them to the start after a brief delay.

Done! When a player picks a jump from the GUI, they will now:

  1. Be teleported to the strategy location

  2. See the message “Viewing strategy for [jump name]! Starting in 5 seconds…”

  3. After 5 seconds (100 ticks), be teleported to the start location

  4. See the normal “Teleported to [jump name]!” message

T

yea but i needa set strategy with multiple words

Kodari AI
KodariMar 19 at 5:42 pm 5,842 (v2)

I need to read the current SetStrategyCommand to see how it handles arguments.

The command already supports multiple words! It concatenates all arguments with spaces. Let me check if there’s a tab completer issue:

Good news - the command already supports multiple words!

The SetStrategyCommand concatenates all arguments with spaces, so you can use:

Plain Text
/setstrategy my cool jump name

This will look for a jump named “my cool jump name” and set the strategy location to where you’re standing.

The same applies to:

  • /setojstart my cool jump name

  • /setojend my cool jump name

  • /oj create easy my cool jump name

All of these commands join multiple words automatically. Is it not working for you, or were you just checking if this was implemented?

T

like the command should be /setstrategy <jumpname> <howtodothejump>

Kodari AI
KodariMar 19 at 5:42 pm 4,643 (v2)

I’ll read the relevant files to see the current implementation and then modify the /setstrategy command to accept both jump name and strategy text.

I’ll update the command to accept both jump name and strategy text as separate arguments.

Command updated! Now /setstrategy accepts two arguments: the jump name and the strategy description. The strategy text is stored in the OneJump data and saved to the config.

T

tea but the strategy could be multiple words

Kodari AI
KodariMar 19 at 5:44 pm 1,963 (v2)

I’ll help you modify the strategy command to accept multiple words. Let me first check the current implementation.

Good news! The /setstrategy command already supports multiple words. Looking at the code, it uses a StringBuilder to concatenate all arguments after the jump name:

Java
StringBuilder strategyBuilder = new StringBuilder();
for (int i = 1; i < args.length; i++) {
    if (i > 1) strategyBuilder.append(" ");
    strategyBuilder.append(args[i]);
}
String strategy = strategyBuilder.toString();

So you can use it like this:

Plain Text
/setstrategy jumpname This is my strategy with multiple words

This will set the strategy to: "This is my strategy with multiple words"

The command is already working as expected! Was there a specific issue you encountered, or were you just wanting to confirm this functionality exists?

T

i already set the locations and it says i need yo set them

Kodari AI
KodariMar 19 at 5:49 pm 9,296 (v2)

I need to check how locations are being saved and loaded to diagnose the issue.

Found the issue! The /setstrategy command only sets the strategy text, but it doesn’t set the strategy location (where players are teleported to view the jump). The isComplete() method requires all three locations: start, end, AND strategy location.

Now when you use /setstrategy <jumpname> <description>, it will set both the strategy text and save your current location as the strategy viewpoint location. This completes the jump setup so players can teleport to it.

T

theres not supposed to be a strategy location

Kodari AI
KodariMar 19 at 5:50 pm 5,333 (v2)

I’ll read the relevant files to identify and remove the strategy location functionality.

I’ll remove the strategy location functionality from the plugin.

Strategy location functionality removed from the plugin. Jumps now only require start and end locations.

T

bro dont remove the /setstrategy command its supposed to tell player how to do the jump when they do it

Kodari AI
KodariMar 19 at 5:57 pm 15,103 (v2)

I need to read the existing files to see the current state of the plugin and understand the strategy system.

I see! You want a /setstrategy command so admins can add instructions/tips for how to complete each jump, and players can see these tips when they attempt the jump. Let me add that functionality:

Adding /setstrategy command to let admins set jump instructions:

Done! Added /setstrategy command that:

  • Lets admins set jump instructions with /setstrategy <jumpname> <strategy text>

  • Displays the strategy in the GUI item lore (gold colored tip)

  • Shows strategy message when players teleport to the jump

  • Saves/loads strategy from jumps.yml

T

bro the strategy dosent broadcast also its supposed to teleport you to the next jump when you finish one also add /forgetjump to forget a jump sou have to redo

Kodari AI
KodariMar 19 at 6:44 pm 11,835 (v2)

I’ll read the relevant files to fix the strategy broadcast, add teleportation to next jump on completion, and add the /forgetjump command.

I’ll fix the strategy broadcast, improve the teleportation logic, and add the /forgetjump command.

Done! I’ve fixed all three issues:

  1. Strategy now broadcasts - When you set a strategy with /setstrategy, it broadcasts to all online players with the difficulty, jump name, and strategy

  2. Teleports to next jump - After completing a jump, it now searches through all remaining difficulties (not just current) to find the next incomplete jump and teleports you there. Shows a congratulations message when all jumps are complete

  3. Added /forgetjump command - Players can use /forgetjump <name> to forget their own jump, or admins can use /forgetjump <player> <name> to reset someone else’s jump. Points are subtracted when forgetting a jump

T

how about a command that gives oj star to a non op player

Kodari AI
KodariMar 19 at 6:53 pm 9,405 (v2)

I’ll read the existing command files to understand the current implementation and then add a command for giving OJ stars.

I’ll modify the OJStar command to allow non-OP players to give themselves the star while OPs can still give it to others.

I’ll update the OJStar command to allow non-OP players to get a star for themselves while keeping the admin permission for giving to others.

Now non-OP players can use /ojstar to get the menu item for themselves, while OPs can use /ojstar <player> to give it to others. The self-permission defaults to true (everyone), while the admin permission defaults to OP only.

T

no not nonops giving themself the star a command that can give nonops thae star that only ops can use also add a checkpoint set and checkpoint tp back tool and a practice mode tool that you all get when an op runs the command /ojinventory. When your in practice mode the jump wont count and you gain fly for that jump aslong as your in practice mode. the checkpoint set should be an emerald and checkpoint tp back tool is red dye and the practice mode should be a diamond and to toggle fly in practice mode it should be a feather

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 1,693
src/main/java/com/onejump/OneJumpPlugin.java
package com.onejump;

import com.onejump.command.*;
import com.onejump.inventory.gui.GUIListener;
import com.onejump.inventory.gui.GUIManager;
import com.onejump.listener.ItemInteractListener;
import com.onejump.listener.PlayerMoveListener;
import com.onejump.manager.ConfigManager;
import com.onejump.manager.OneJumpManager;
import com.onejump.manager.PlayerDataManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class OneJumpPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private OneJumpManager oneJumpManager;
    private PlayerDataManager playerDataManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.oneJumpManager = new OneJumpManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.guiManager = new GUIManager();
        
        this.oneJumpManager.loadJumps();
        this.playerDataManager.loadData();
        
        registerCommands();
        registerListeners();
        
        getLogger().info("OneJumpParkour has been enabled!");
    }

    @Override
    public void onDisable() {
        this.oneJumpManager.saveJumps();
        this.playerDataManager.saveData();
        
        getLogger().info("OneJumpParkour has been disabled!");
    }

    private void registerCommands() {
        getCommand("oj").setExecutor(new OJCommand(this));
        getCommand("setojstart").setExecutor(new SetOJStartCommand(this));
        getCommand("setojend").setExecutor(new SetOJEndCommand(this));
        getCommand("setstrategy").setExecutor(new SetStrategyCommand(this));
        getCommand("ojstar").setExecutor(new OJStarCommand(this));
        getCommand("seeojp").setExecutor(new SeeOJPCommand(this));
        getCommand("forgetjump").setExecutor(new ForgetJumpCommand(this));
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerMoveListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ItemInteractListener(this), this);
    }
}