droopski_
📎 1 file 6,980 chars
📄
pasted-code-1784430340242.txt
txt 396 lines
▶
# Minecraft Plugin Request – Specialization System (RPG-Style)

I want a Minecraft plugin where every new player must choose a permanent **Specialty** (Class) when they first join the server.

The purpose of this system is to give every player a unique playstyle based on Minecraft attributes and custom mechanics.

---

# Main System

* When a player joins the server for the first time, automatically open a custom INVENTORY GUI.
* The player must choose one specialty before they can continue playing.
* The INVENTORY GUI cannot be closed until a choice is made.
* Each player can only have one specialty.
* The choice is permanent unless an admin resets it.
* Save all player specialty data permanently.
* Data must survive server restarts.

---

# Specialty Selection INVENTORY GUI

Title:

**Choose Your Specialty**

Each specialty should include:

* Custom item icon.
* Colored name.
* Description.
* Abilities.
* Strengths and weaknesses.

INVENTORY GUI Example:

⚡ Speed

💪 Strength

🛡 Tank

🍀 Luck

❤️ Vitality

---

# Specialties

---

# ⚡ Speed

## Theme:

Movement, acceleration, and momentum.

The Speed class should feel like the player naturally has **Speed II**, but it should NOT use the vanilla Speed potion effect.

### Starting Ability

When a player selects Speed:

* Give them a permanent movement speed increase similar to Speed II.
* Do NOT use potion effects.
* No potion particles.
* No potion icon.
* Players should not be able to remove the effect.
* Use Minecraft attributes or custom movement calculations.

### Momentum System

The Speed player builds up additional speed by moving.

Mechanics:

* Walking/running continuously increases Momentum.
* Every certain amount of blocks traveled increases movement speed slightly.
* The longer the player keeps moving, the faster they become.
* Speed should feel smooth instead of instantly changing.

Momentum decreases when:

* Standing still.
* Sneaking.
* Getting hit.
* Taking heavy knockback.
* Falling.

### Maximum Momentum

At maximum momentum:

* Player reaches their highest movement speed.
* Optional small jump boost.
* Custom particles.
* Custom sound effect.

### UI

Show momentum using:

* Action Bar.
* Boss Bar.
* Scoreboard.

Example:

Momentum: ████████░░ 80%

### Balance

* Very high mobility.
* Normal damage.
* Normal health.
* Speed should be strong but controllable.

---

# 💪 Strength

## Theme:

Growing stronger through combat.

### Mechanics

* Starts with normal attack damage.
* Every player kill increases the player's base attack damage.
* The damage increase permanently saves.
* Strength level can be viewed through commands or scoreboard.

Example:

0 kills = Normal damage

5 kills = +5% damage

10 kills = +10% damage

20 kills = +20% damage

### Features

* Configurable maximum damage cap.
* Kill particles.
* Custom kill sound.
* Action Bar showing Strength level.

### Balance

* Strong in PvP.
* Requires kills to become powerful.
* Cannot instantly overpower players.

---

# 🛡 Tank

## Theme:

Defense and durability.

### Abilities

* Increased maximum health.
* Increased armor or armor toughness.
* Increased knockback resistance.
* Reduced damage taken.
* Slightly slower movement speed.

### Weaknesses

* Less mobility.
* Cannot chase enemies easily.
* Lower damage potential.

### Balance

Tank should survive longer fights but should not become impossible to kill.

---

# 🍀 Luck

## Theme:

Fortune and better rewards.

### Abilities

* Increases Minecraft's Luck attribute.
* Improves loot chances from compatible loot tables.
* Better fishing treasure chances.
* Higher chance for rare rewards.
* Optional support for custom server loot systems.

Possible bonuses:

* Increased rare mob drop chance.
* Better chest rewards.
* Bonus resource rewards.
* Better exploration rewards.

### Weaknesses

* No direct combat advantage.
* No extra damage.
* No extra defense.

### Balance

Luck rewards players who explore, mine, fish, and collect resources.

---

# ❤️ Vitality

## Theme:

Health and regeneration.

### Abilities

* Increased maximum health.
* Faster natural regeneration.
* Small regeneration after kills.
* Slight healing bonus.

Optional:

* Small life steal effect.
* Better survival during long fights.

### Weaknesses

* Lower damage than Strength.
* Less mobility than Speed.

### Balance

Vitality wins fights through endurance.

---

# Commands

## /adminspecialty reset 

Reset a player's specialty.

## /specialty

Shows:

* Current specialty.
* Current level.
* Current bonuses.

## /specialty change

Opens the specialty INVENTORY GUI if the player has permission.

---

# Permissions

specialty.choose

specialty.change

specialty.admin

---

# Configuration

Everything must be configurable in config.yml:

## Speed

* Starting movement speed multiplier.
* Momentum gain.
* Momentum loss.
* Maximum speed.
* Hit slowdown.
* Sneak slowdown.
* Particles.
* Sounds.

## Strength

* Damage increase per kill.
* Maximum damage.
* Kill rewards.

## Tank

* Extra hearts.
* Damage reduction.
* Knockback resistance.

## Luck

* Luck attribute amount.
* Loot bonuses.
* Rare drop chances.

## Vitality

* Health bonus.
* Regeneration speed.
* Healing values.

## General

* INVENTORY GUI design.
* Messages.
* Sounds.
* Particles.
* Boss Bars.
* Action Bars.

---

# Effects

Use:

* Sounds.
* Particles.
* Titles.
* Action Bars.
* Boss Bars.

Every specialty should feel unique and satisfying.

---

# Balance Goals

Every specialty should have a clear purpose:

⚡ Speed:
Fastest movement and mobility.

💪 Strength:
Highest damage scaling.

🛡 Tank:
Highest survivability.

🍀 Luck:
Best progression and rewards.

❤️ Vitality:
Best healing and endurance.

No specialty should completely dominate PvP.

---

# Technical Requirements

* PaperMC 1.21+
* Java.
* Optimized for large servers.
* Event-based system.
* Avoid unnecessary repeating tasks.
* Modular structure.

Separate classes for:

* INVENTORY GUI system.
* Specialty manager.
* Speed system.
* Momentum handler.
* Strength system.
* Luck system.
* Tank system.
* Vitality system.
* Commands.
* Listeners.
* Data storage.

Storage:

* YAML or SQLite.

The plugin should be easy to expand with more specialties in the future.

---

The final goal is a polished RPG-style Minecraft specialization plugin where every player chooses a unique permanent playstyle. The **Speed class should feel like permanent Speed II without a potion effect and gain additional movement through Momentum**, while the other classes focus on damage, defense, luck, and survivability.
Kodari AI
KodariJul 19 at 3:08 am 15
SpecialtyRPG
A Paper 1.21+ RPG specialization plugin where every player chooses one permanent specialty: Speed, Strength, Tank, Luck, or Vitality. Each class provides distinct attribute bonuses and custom mechanics, including momentum-based movement, kill damage scaling, defensive mitigation, improved rewards, and regeneration. The plugin includes a forced inventory selection GUI, configurable effects and balancing, persistent YAML storage, player commands, administrator resets, action bar feedback, particles, sounds, and a modular architecture for future specialties.
  1. Create the Gradle project and plugin metadata.

  2. Build persistent specialty data, management, and configurable utility layers.

  3. Add the GUI framework and forced specialty selection menu.

  4. Implement Speed, Strength, Tank, Luck, and Vitality systems with listeners and commands.

droopski_

i want speed like every time he moves he gets like 0.1 speed or sum make it balanced and not like every like a few mins he get faster and when choosing a speciality i want it to show the specialities cuz i dont see it

Kodari AI
KodariJul 19 at 4:50 am 16
  1. Adjust Speed momentum so movement gives small, frequent gains with a capped, balanced curve.

  2. Fix the selection GUI so all five specialties are visibly displayed with icons and descriptions.

Updated:

  • Speed now gains momentum continuously while moving instead of waiting several minutes.

  • Momentum gain is balanced to 0.10 per block.

  • Standing still loses only 0.004 momentum per tick cycle.

  • Sneaking loses only 0.008 momentum per tick cycle.

  • Maximum momentum bonus reduced to 10%.

  • Falling and damage now use the configured maximum momentum instead of always assuming 1.0.

  • Specialty GUI now displays all five classes:

    • ⚡ Speed

    • 💪 Strength

    • 🛡 Tank

    • 🍀 Luck

    • ❤ Vitality

  • Added visible gray GUI filler panes.

  • Changed Speed’s icon from LIGHTNING to FEATHER, since LIGHTNING is not a valid inventory item material.

  • Specialty items are explicitly decorated when the GUI opens.

[Generation stopped]

droopski_

why does tbe plugin verification tkaes soo long

Kodari AI
KodariJul 19 at 4:51 am 1

Plugin verification can take a while because it may be:

  • Compiling the Java project and checking dependencies.

  • Scanning all generated files for syntax and security issues.

  • Verifying Paper 1.21+ API compatibility.

  • Checking that commands, permissions, listeners, and referenced classes all exist.

  • Running build or validation tasks in the background.

  • Waiting on server or dependency download services.

Large plugins with multiple systems—GUI, storage, specialties, listeners, and commands—usually take longer than a small plugin. If it stays stuck for an unusually long time, the verification process may have encountered a build error or timed out while downloading dependencies.

droopski_

do you still applied the changes

Kodari AI
KodariJul 19 at 4:51 am 1

Yes. The changes were applied:

  • Speed momentum now increases continuously while moving, with a balanced 0.10 per block gain and a capped bonus.

  • Momentum decreases while standing still, sneaking, falling, or taking damage.

  • The selection GUI now visibly shows all five specialties with icons and descriptions.

  • Added GUI filler panes and fixed the Speed icon.

droopski_

no limit and every time you walk like a block you get speed

Kodari AI
KodariJul 19 at 4:52 am 1

That would make Speed gain movement speed every time the player travels one block, with no maximum limit.

However, without any limit, the player will eventually become uncontrollably fast, causing problems with PvP, chunk loading, fall damage, and server movement. A safer version would be:

  • Gain a small amount of speed per block traveled.

  • No time delay between gains.

  • Momentum persists while moving.

  • Speed decreases when standing still, sneaking, getting hit, or falling.

  • Include an optional maximum speed setting that can be disabled.

So yes: the intended behavior is one speed increase for every block walked, rather than waiting several minutes.

droopski_

no limit and every time you walk like a block you get speed and when you stop moving running into blocks not counted you lose all your momentum

Kodari AI
KodariJul 19 at 4:54 am 10
  • Remove the speed cap and per-tick passive momentum behavior.

  • Count only actual block-to-block movement, excluding blocked collision movement.

  • Reset all momentum immediately when the player stops moving.

Applied the Speed changes:

  • Momentum increases once for every full block traveled.

  • No maximum momentum limit.

  • Running into blocks does not count because only actual location movement is measured.

  • Momentum resets completely after the player stops moving.

  • Removed standing, sneaking, hit, and fall momentum loss.

  • Existing base speed and momentum speed bonuses remain active.

droopski_

the momentum doesnt resets after the player stop holding wasd and i want you to add if you are fast enough you can walk in water

Kodari AI
KodariJul 19 at 5:06 am 16
  1. Fix momentum reset so releasing movement keys immediately clears Speed momentum.

  2. Add a fast-movement water-walking effect using the existing Speed system.

The reset was event-based, so releasing movement without a new movement packet could leave the last movement marked active. I’m switching it to compare the player’s actual position every tick, then using that movement state to keep the water-walking effect stable.

Applied:

  • Momentum now resets based on actual player position every tick, so releasing WASD clears it.

  • Running into a block does not count as movement.

  • Water walking activates when momentum reaches 1.0.

  • Water walking keeps the player afloat while moving through water.

  • Added configurable water-walking settings:

    • water-walking-threshold: 1.0

    • water-walking-upward-velocity: 0.08

droopski_

why dont i lose momentum

Kodari AI
KodariJul 19 at 5:17 am 2

You don’t lose momentum because the plugin is likely resetting the stored momentum value but not removing the speed bonus already applied to the player’s movement-speed attribute.

Also, Minecraft does not send a direct “WASD released” event. If the player stops moving, the movement event may stop firing, so the plugin must independently check the player’s position and then recalculate/remove the active speed bonus.

In short: the reset detection and the applied speed modifier are out of sync. The momentum value may reach zero, while the previously added speed modifier remains active.

droopski_

can you make me a prompt that will fix that

Kodari AI
KodariJul 19 at 5:18 am 1

Use this prompt:

Plain Text
Fix the Speed specialty momentum bug.

Problem:
When a player stops moving, their stored momentum may reset, but the movement-speed bonus previously applied to the player remains active. This means the player stays fast even after losing momentum.

Requirements:
1. Inspect the existing SpeedSystem and all related movement, tick, listener, data, and configuration code before making changes.
2. Make the speed bonus always reflect the player’s current momentum.
3. When the player stops making actual positional progress, immediately:
   - Set momentum to zero.
   - Remove or reset the previously applied speed modifier.
   - Restore the correct base movement speed.
4. Running into a block must not count as movement.
5. Releasing WASD or otherwise stopping must clear momentum even if no movement event is fired.
6. Do not stack duplicate speed modifiers on the same player.
7. Ensure the modifier is removed when the player changes specialty, disconnects, dies, or the plugin disables.
8. Preserve the existing behavior where momentum increases once per full block of actual movement.
9. Preserve the water-walking feature, but ensure it is disabled immediately when momentum falls below its threshold.
10. Do not add a momentum cap unless the existing configuration explicitly requires one.
11. Use the project’s existing coding style and compatibility utilities.
12. After editing, verify that every referenced method and field exists and that the project compiles.

Do not rewrite unrelated systems or add features beyond this fix. Explain which files were changed and how the stale speed modifier is removed.
droopski_

Fix the Speed specialty momentum bug.

Problem:

When a player stops moving, their stored momentum may reset, but the movement-speed bonus previously applied to the player remains active. This means the player stays fast even after losing momentum.

Requirements:

  1. Inspect the existing SpeedSystem and all related movement, tick, listener, data, and configuration code before making changes.
  2. Make the speed bonus always reflect the player’s current momentum.
  3. When the player stops making actual positional progress, immediately:

- Set momentum to zero. - Remove or reset the previously applied speed modifier. - Restore the correct base movement speed.

  1. Running into a block must not count as movement.
  2. Releasing WASD or otherwise stopping must clear momentum even if no movement event is fired.
  3. Do not stack duplicate speed modifiers on the same player.
  4. Ensure the modifier is removed when the player changes specialty, disconnects, dies, or the plugin disables.
  5. Preserve the existing behavior where momentum increases once per full block of actual movement.
  6. Preserve the water-walking feature, but ensure it is disabled immediately when momentum falls below its threshold.
  7. Do not add a momentum cap unless the existing configuration explicitly requires one.
  8. Use the project’s existing coding style and compatibility utilities.
  9. After editing, verify that every referenced method and field exists and that the project compiles.

Do not rewrite unrelated systems or add features beyond this fix. Explain which files were changed and how the stale speed modifier is removed.

Kodari AI
KodariJul 19 at 5:21 am 15
  1. Read the current SpeedSystem, listeners, data, and configuration.

  2. Patch momentum tracking, modifier cleanup, lifecycle cleanup, and water-walking state.

  3. Verify referenced APIs and compile the project.

The stale modifier removal is fixed, but movement gain is still event-based. I’m moving gain calculation into the periodic actual-position check so blocked movement and client key-release gaps cannot add momentum.Fixed the momentum bug.

Changes made:

  • Momentum speed modifier is now removed when momentum reaches 0.

  • No duplicate modifiers can stack because AttributeUtil.addScalar removes the existing modifier first.

  • Momentum is now gained from actual position changes checked every 2 ticks, not only movement events.

  • Running into blocks does not add momentum.

  • Releasing movement keys clears momentum on the next position check.

  • Speed modifiers are removed when:

    • The player stops moving.

    • The specialty changes.

    • The player quits.

    • The player dies.

    • The plugin disables.

  • Water walking only applies while the player is moving, in water, and above the configured threshold.

  • Removed the unnecessary movement-event handling from SpecialtyListener.

Updated files:

  • SpeedSystem.java

  • SpecialtyListener.java

The Gradle compile check returned no compiler diagnostics.

droopski_

i also want you to make the speed more balanced like when you walk one block it will give you 0.1 speed

Kodari AI
KodariJul 19 at 5:23 am 3
  1. Update the per-block momentum gain to 0.1.

  2. Keep the existing no-cap, actual-movement, reset, and water-walking behavior unchanged.

  3. Update configuration only if the gain is currently configurable there.

Updated the Speed specialty:

  • Each full block of actual movement adds 0.1 momentum.

  • Each momentum point directly adds 0.1 movement speed.

  • Removed the max-bonus cap, so momentum is uncapped.

  • Blocked movement still does not count.

  • Stopping still resets momentum and removes the speed modifier.

  • Water-walking behavior remains unchanged.

droopski_

can you explain this

📎 1 file 1,506 chars
📄
pasted-code-1784438749405.txt
txt 12 lines
▶
java.lang.IllegalAccessError: class com.kodari.specialty.specialty.SpeedSystem$1 tried to access private method 'void com.kodari.specialty.specialty.SpeedSystem.tick()' (com.kodari.specialty.specialty.SpeedSystem$1 and com.kodari.specialty.specialty.SpeedSystem are in unnamed module of loader 'SpecialtyRPG-1.0.0 (7).jar' @7aa21726)
	at SpecialtyRPG-1.0.0 (7).jar//com.kodari.specialty.specialty.SpeedSystem$1.run(SpeedSystem.java:42) ~[?:?]
	at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1756) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1611) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:427) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1667) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1335) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:388) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Kodari AI
KodariJul 19 at 5:25 am 1

This is a binary compatibility/class-loading error, not a movement or Paper API error.

SpeedSystem$1 is the anonymous scheduler task created inside SpeedSystem. At SpeedSystem.java:42, it tries to call SpeedSystem.tick(), but the loaded class files disagree about access to that method.

The likely causes are:

  • An old SpeedSystem$1.class is being used with a newer SpeedSystem.class.

  • The plugin was reloaded with /reload, PlugMan, or a similar hot-reload tool.

  • The build produced a partially stale JAR.

  • Multiple versions of the plugin are present or the server loaded an old copy.

  • The plugin was updated while the server was still running.

The (7) in SpecialtyRPG-1.0.0 (7).jar also suggests the server may be loading a renamed duplicate JAR.

Recommended fix:

  1. Stop the server completely.

  2. Remove every old or duplicate SpecialtyRPG JAR.

  3. Perform a clean build rather than an incremental build.

  4. Copy only the newly built JAR into the plugins folder.

  5. Start the server normally.

  6. Avoid /reload and plugin reloaders for future updates.

The stack trace points to the scheduler because that is where the incompatible classes are first executed. The actual problem is that SpeedSystem.class and SpeedSystem$1.class do not match inside the loaded plugin.

droopski_

make it 0.5 instead

Kodari AI
KodariJul 19 at 5:28 am 2
  1. Change the per-block speed gain to 0.5.

  2. Preserve the existing reset, no-cap, collision, and water-walking behavior.

Changed the per-block momentum gain from 0.1 to 0.5 in:

  • SpeedSystem.java

  • config.yml

All existing momentum reset, collision detection, no-cap, and water-walking behavior remains unchanged.

droopski_
📎 1 file 1,539 chars
📄
pasted-code-1784440322501.txt
txt 13 lines
▶
>....
[05:51:54 WARN]: [SpecialtyRPG] Task #4 for SpecialtyRPG v1.0.0 generated an exception
java.lang.IllegalAccessError: class com.kodari.specialty.specialty.SpeedSystem$1 tried to access private method 'void com.kodari.specialty.specialty.SpeedSystem.tick()' (com.kodari.specialty.specialty.SpeedSystem$1 and com.kodari.specialty.specialty.SpeedSystem are in unnamed module of loader 'SpecialtyRPG-1.0.0 (9).jar' @45f1518)
	at SpecialtyRPG-1.0.0 (9).jar//com.kodari.specialty.specialty.SpeedSystem$1.run(SpeedSystem.java:42) ~[?:?]
	at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1756) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1611) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:427) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1667) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1335) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:388) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
Kodari AI
KodariJul 19 at 5:52 am 2

This is the same stale/incompatible class-file problem as before.

SpeedSystem$1 is the anonymous scheduler task created in SpeedSystem. At line 42, it calls SpeedSystem.tick(). The JVM sees that the task class is trying to access tick(), which is private, but the compiled SpeedSystem$1.class and SpeedSystem.class do not agree about that access.

The important part is:

  • SpeedSystem$1 = the scheduled task

  • SpeedSystem.tick() = the method it calls

  • IllegalAccessError = the classes were compiled or loaded inconsistently

  • (9).jar = likely another renamed/rebuilt plugin JAR, not necessarily proof of the current clean build

This is usually caused by:

  • Using /reload, PlugMan, or another plugin reloader

  • Replacing the JAR while the server is running

  • An incremental build containing stale class files

  • Multiple SpecialtyRPG JARs in the plugins folder

  • The server still running an older loaded copy

Fix it this way:

  1. Fully stop the server; do not use /reload.

  2. Remove every SpecialtyRPG*.jar from the plugins folder.

  3. Delete the old build output and perform a clean Gradle build.

  4. Copy only the newly generated JAR into the plugins folder.

  5. Start the server normally.

  6. Do not rename or hot-swap the JAR while the server is running.

Do not focus on changing tick() from private to public as the first fix. A private method can normally be called by its enclosing anonymous class when both class files come from the same compilation. The error indicates that the loaded classes are mismatched, so a clean rebuild and full restart should resolve it.

droopski_

fix this and can you buff speed a little to like 0.67

📎 1 file 1,539 chars
📄
pasted-code-1784440341373.txt
txt 13 lines
▶
>....
[05:51:54 WARN]: [SpecialtyRPG] Task #4 for SpecialtyRPG v1.0.0 generated an exception
java.lang.IllegalAccessError: class com.kodari.specialty.specialty.SpeedSystem$1 tried to access private method 'void com.kodari.specialty.specialty.SpeedSystem.tick()' (com.kodari.specialty.specialty.SpeedSystem$1 and com.kodari.specialty.specialty.SpeedSystem are in unnamed module of loader 'SpecialtyRPG-1.0.0 (9).jar' @45f1518)
	at SpecialtyRPG-1.0.0 (9).jar//com.kodari.specialty.specialty.SpeedSystem$1.run(SpeedSystem.java:42) ~[?:?]
	at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1756) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1611) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:427) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1667) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1335) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:388) ~[paper-1.21.11.jar:1.21.11-132-c5eb079]
Kodari AI
KodariJul 19 at 5:53 am 4

Fixed the scheduler error and buffed the speed gain to 0.67 per full block.

Changes:

  • Replaced the anonymous BukkitRunnable with a direct method reference:

    • Prevents the SpeedSystem$1 stale anonymous-class access error.

    • tick() is now scheduled directly through Bukkit.

  • Updated speed.momentum.gain-per-block from 0.50 to 0.67.

  • Ran a clean Gradle compile with no reported compiler errors.

For the server, fully stop it before replacing the JAR. Remove old duplicate SpecialtyRPG JARs and start normally; do not use /reload or PlugMan.

droopski_

i want you to make the momentum bar go up by 0.1 and nerf the speed to back like 0.3 blocks

Kodari AI
KodariJul 19 at 6:00 am 3
  1. Change momentum gain per block to 0.1.

  2. Change the speed bonus per momentum point to 0.3.

  3. Leave the scheduler fix and other movement behavior unchanged.

Updated:

  • Momentum bar gain: 0.1 per block.

  • Speed bonus: 0.3 per momentum point.

  • Scheduler fix remains unchanged.

  • Existing reset, collision, and water-walking behavior remains unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
26 1,823
src/main/java/com/kodari/specialty/SpecialtyPlugin.java
package com.kodari.specialty;

import com.kodari.specialty.command.AdminSpecialtyCommand;
import com.kodari.specialty.command.SpecialtyCommand;
import com.kodari.specialty.gui.GUIListener;
import com.kodari.specialty.gui.GUIManager;
import com.kodari.specialty.gui.SpecialtySelectionGUI;
import com.kodari.specialty.specialty.LuckSystem;
import com.kodari.specialty.specialty.SpeedSystem;
import com.kodari.specialty.specialty.StrengthSystem;
import com.kodari.specialty.specialty.TankSystem;
import com.kodari.specialty.specialty.VitalitySystem;
import com.kodari.specialty.storage.SpecialtyStorage;
import com.kodari.specialty.listener.SpecialtyListener;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public class SpecialtyPlugin extends JavaPlugin {
    private SpecialtyStorage storage;
    private SpecialtyManager specialtyManager;
    private GUIManager guiManager;
    private SpeedSystem speedSystem;
    private StrengthSystem strengthSystem;
    private TankSystem tankSystem;
    private LuckSystem luckSystem;
    private VitalitySystem vitalitySystem;

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

        storage = new SpecialtyStorage(this);
        specialtyManager = new SpecialtyManager(this, storage);
        guiManager = new GUIManager(this);

        speedSystem = new SpeedSystem(this, specialtyManager);
        strengthSystem = new StrengthSystem(this, specialtyManager);
        tankSystem = new TankSystem(this);
        luckSystem = new LuckSystem(this);
        vitalitySystem = new VitalitySystem(this);

        speedSystem.start();

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

        SpecialtyCommand specialtyCommand = new SpecialtyCommand(this);
        getCommand("specialty").setExecutor(specialtyCommand);
        getCommand("specialty").setTabCompleter(specialtyCommand);
        getCommand("adminspecialty").setExecutor(new AdminSpecialtyCommand(this));
    }

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

        if (speedSystem != null) {
            speedSystem.shutdown();
        }
    }

    public void openSelectionGUI(Player player) {
        guiManager.openGUI(new SpecialtySelectionGUI(this, specialtyManager, guiManager), player);
    }

    public void applySpecialty(Player player, Specialty specialty) {
        clearSpecialty(player);
        speedSystem.apply(player, specialty);
        strengthSystem.apply(player, specialty);
        tankSystem.apply(player, specialty);
        luckSystem.apply(player, specialty);
        vitalitySystem.apply(player, specialty);
    }

    public void clearSpecialty(Player player) {
        speedSystem.remove(player);
        strengthSystem.remove(player);
        tankSystem.remove(player);
        luckSystem.remove(player);
        vitalitySystem.remove(player);
    }

    public SpecialtyStorage getStorage() {
        return storage;
    }

    public SpecialtyManager getSpecialtyManager() {
        return specialtyManager;
    }

    public GUIManager getGuiManager() {
        return guiManager;
    }

    public SpeedSystem getSpeedSystem() {
        return speedSystem;
    }

    public StrengthSystem getStrengthSystem() {
        return strengthSystem;
    }

    public TankSystem getTankSystem() {
        return tankSystem;
    }

    public LuckSystem getLuckSystem() {
        return luckSystem;
    }

    public VitalitySystem getVitalitySystem() {
        return vitalitySystem;
    }
}