Gamer Boro
📎 1 file 3,107 chars
📄
pasted-code-1792742638213.txt
txt 80 lines
▶
# PMC-SilkSpawner — Phase 1: Fresh Java Project and Architecture Audit

We are starting over because the previous project was accidentally configured for Kotlin.

Create a NEW project plan for PMC-SilkSpawner. This must be a Java-only Minecraft Paper plugin.

## Mandatory technology requirements

- Plugin name: PMC-SilkSpawner
- Main class: world.projectmc.silkspawner.PMCSilkSpawner
- Java package: world.projectmc.silkspawner
- Initial version: 1.0.0
- Server API: Paper 26.2
- Java toolchain: Java 25
- Build system: Gradle with Gradle Wrapper
- Build script: Groovy DSL using build.gradle
- Settings file: settings.gradle
- Source files: Java only, under src/main/java
- Tests: Java only, under src/test/java
- Plugin descriptor: plugin.yml
- Configuration: config.yml

## Absolute prohibition on Kotlin

Do not use:
- Kotlin source files (.kt)
- Kotlin DSL build scripts (.gradle.kts)
- Kotlin Gradle plugins
- Kotlin runtime dependencies
- Kotlin-generated entry points
- Mixed Java/Kotlin implementations

Do not continue, rename, or convert the accidental Kotlin project. Treat it as abandoned and start a logically separate, clean Java project.

Before doing any implementation, confirm the language and build configuration explicitly.

## Credit-saving rules

This is Phase 1 only.

1. Do not implement the complete plugin.
2. Do not compile or build a JAR.
3. Do not run unnecessary agents or repeated searches.
4. Do not regenerate files repeatedly.
5. Produce one concise architecture and requirements report.
6. Identify the important technical risks and required tests.
7. Do not begin Phase 2 without explicit authorization.

## Mandatory gameplay requirement

Every eligible spawner must receive the same configured mechanics whether it was naturally generated before plugin installation, placed by a player before installation, or placed afterward.

No registration database, placement marker, migration, or world scan may be required.

The design must support configurable Silk Touch requirements, recovery chances, player damage, extra pickaxe durability, mob-type preservation, permissions, world restrictions, protection plugins, and safe drop handling.

Recommended defaults:
- Recovery chance: 100%.
- Additional player damage: 0.
- Additional durability surcharge: 0.
- Recovery-success penalties only.
- No recovery from explosions or non-player destruction.
- Silk Touch required.
- No unnecessary databases, chunk scans, or repeating tasks.

## Phase 1 deliverable

Return one concise report covering:
1. Confirmation that the intended project is Java-only.
2. Java/Paper/Gradle build configuration.
3. Proposed event flow and architecture.
4. Configuration and permissions.
5. Risks involving event cancellation, drop duplication, durability, and mob-type preservation.
6. Unit-test and live-server-test plan.
7. Minimal Phase 2 implementation sequence.

Do not create a Kotlin project or build a JAR.

End with:
"PHASE 1 COMPLETE — JAVA PROJECT CONFIRMED — WAITING FOR AUTHORIZATION FOR PHASE 2."
Kodari AI
KodariOct 23 at 8:04 am 1
SilkSpawnerRecovery
Java-only Paper plugin enabling configurable Silk Touch spawner recovery. Intercepts BlockBreakEvent, validates tool enchantment, permissions, world restrictions, and protection plugins. Applies configurable recovery chance, player damage, and durability surcharge on success. Preserves mob type via spawner block data. Cancels default drops and spawns recovered spawner item safely. No databases or world scans; all spawners receive identical mechanics. Config.yml controls all parameters. Gradle build with Java 25, Paper 26.2 API. Includes unit tests for event logic and config parsing.
  1. Language and build: Confirmed Java-only: world.projectmc.silkspawner.PMCSilkSpawner, version 1.0.0, Paper 26.2, Java toolchain 25, Gradle Groovy DSL (build.gradle and settings.gradle), Gradle Wrapper, plugin.yml, and config.yml. No Kotlin, mixed-language sources, or Kotlin dependencies. This is a plan only; no files were created and no build was run.

  2. Event flow and architecture: Handle eligible player breaks through BlockBreakEvent, respecting canceled events and checking permissions, world rules, and Silk Touch requirements. Read the mob type from the spawner’s live block state, so naturally generated and previously or newly placed spawners need no registry, migration, marker, or world scan. On a successful recovery roll, suppress normal drops and create a spawner item with the captured mob type. Defer custom drop delivery until the break is confirmed to have completed. Keep the implementation focused: plugin entry point, configuration access, break listener, and spawner-item creation.

  3. Configuration and permissions: Configure Silk Touch requirements, recovery chance (default 100%), additional player damage (default 0), durability surcharge (default 0), mob-type preservation, and allowed or denied worlds. Provide a permission for recovery and an administrative bypass as needed. Apply configured penalties only after successful recovery; do not recover spawners from explosions or non-player destruction.

  4. Technical risks: Other plugins can cancel or modify break events, so honor cancellation and test with protection plugins; custom drops must not be emitted before the event’s final outcome or alongside another plugin’s drops. Apply the durability surcharge through the actual tool-damage path to avoid double damage or conflicts with Unbreaking and item breakage. Verify Paper’s spawner item metadata behavior preserves mob type across break, drop, pickup, and placement. Check event ordering for damage and drops against the selected Paper API.

  5. Tests: Add Java unit tests for recovery rolls, configuration defaults and boundaries, and penalty rules. Live-server tests should cover old and new spawners, multiple mob types, Silk Touch conditions, failed and successful rolls, permissions and world restrictions, canceled breaks, protection plugins, explosions, drop duplication, durability edge cases, and player damage.

  6. Minimal Phase 2 sequence: Confirm Paper 26.2 artifact/API availability and Java 25 compatibility; create the Java/Gradle project and descriptor; add configuration and event-based recovery; implement mob-type-preserving item handling and success-only penalties; then add focused tests and validate on a Paper server.

PHASE 1 COMPLETE — JAVA PROJECT CONFIRMED — WAITING FOR AUTHORIZATION FOR PHASE 2.

Gamer Boro
📎 1 file 4,828 chars
📄
pasted-code-1792742735089.txt
txt 132 lines
▶
# PMC-SilkSpawner — PHASE 2: Core Implementation

Phase 1 is approved. Implement the core plugin in the current fresh Java-only project.

## Fixed requirements

- Plugin name: PMC-SilkSpawner
- Main class: world.projectmc.silkspawner.PMCSilkSpawner
- Version: 1.0.0
- Paper API: 26.2
- Java toolchain: 25
- Gradle Groovy DSL: build.gradle and settings.gradle
- Gradle Wrapper required
- Java source only
- No Kotlin files, plugins, DSL, or runtime dependencies

Do not rename the project or start another project.

## Credit-saving instructions

1. Implement in one focused pass.
2. Do not repeat the Phase 1 architecture audit.
3. Do not invoke unnecessary agents.
4. Do not generate unrelated features.
5. Do not build the final JAR yet.
6. Add only targeted tests relevant to the core mechanics.
7. Report blockers rather than repeatedly attempting speculative fixes.

## Implement these features

### 1. Universal spawner eligibility

Handle eligible spawners using their actual block state during player-breaking events.

The plugin must work on naturally generated spawners in old chunks, previously placed spawners, and newly placed spawners.

Do not require registration, persistent-data markers, a database, migration, or world scans.

### 2. Recovery rules

Implement:
- Silk Touch requirement, enabled by default.
- Configurable allowed pickaxe types.
- Recovery probability from 0% to 100%, default 100%.
- Recovery permission.
- Configurable world restrictions.
- No recovery from explosions or non-player destruction.

A recovery attempt must use exactly one probability roll. Invalid configuration must be rejected or safely handled.

### 3. Mob-type preservation

Capture the spawner's mob type from its live block state.

Encode that type in the recovered item using a supported Paper/Bukkit mechanism. Restore the type when the recovered item is placed.

Validate item data and handle unsupported types safely.

Do not claim advanced spawner settings are preserved unless implemented and verified.

### 4. Success-only penalties

Implement configurable additional player damage and pickaxe durability costs.

Defaults:
- Additional damage: zero.
- Additional durability surcharge: zero.

Apply penalties only when recovery succeeds.

Player damage must use the normal server damage mechanism and respect armor and other applicable mechanics.

Apply additional durability through a verified Paper-supported tool-damage path. Prevent duplicate charges. Correctly handle Unbreaking, Unbreakable items, creative mode, and tools that break.

Do not charge durability twice or lose a recovered item because the tool breaks.

### 5. Safe drop handling

Coordinate the block-break event and custom recovery item delivery.

Requirements:
- Respect cancelled breaks and protection plugins.
- Prevent duplicate vanilla and custom drops.
- Do not deliver a recovered item before the break is confirmed.
- Avoid losing the recovered item if the event is cancelled or the block remains.
- Do not modify events at MONITOR priority.
- Verify the Paper 26.2 event contract and timing before choosing the implementation.

If an event's lifecycle cannot guarantee safe delivery, document the limitation and choose the safest supported approach rather than guessing.

### 6. Minimal configuration

Create a commented config.yml with:
- Silk Touch requirement.
- Allowed tools.
- Recovery chance.
- Recovery permission behavior.
- World allowlist or denylist.
- Additional damage amount.
- Additional durability surcharge.
- Creative-mode behavior.
- Safe defaults and validation.

Create plugin.yml with the correct main class, version, API compatibility declaration, and permissions.

Do not implement elaborate commands or effects in this phase.

## Focused tests

Add tests for:
- Configuration defaults and invalid values.
- 0% and 100% recovery chances.
- Exactly one recovery roll.
- Existing versus newly placed spawner eligibility.
- Mob-type serialization and restoration.
- Success-only penalties.
- Durability calculations.
- Cancelled events and duplicate-processing protection.

Use Java tests. Clearly distinguish tests that can run without a server from behaviors that require a real Paper 26.2 server.

## Completion criteria

Before finishing:
1. Inspect the changed source for accidental Kotlin files or dependencies.
2. Run the targeted tests if the environment supports them.
3. Fix verified compile or test failures without rewriting the project.
4. Do not build the final JAR yet.
5. Provide a concise report listing changed files, implemented behavior, actual test results, and remaining runtime risks.

Finish with:
"PHASE 2 COMPLETE — WAITING FOR AUTHORIZATION FOR PHASE 3."
Kodari AI
KodariOct 23 at 8:15 am 2
  1. Create the Java 25 / Paper 26.2 Gradle project and plugin configuration.

  2. Implement event-based spawner recovery, mob-type item data, penalties, and guarded drop delivery.

  3. Add focused Java unit tests and report what could not be verified without a live Paper server.

Implemented the Java-only core for PMC-SilkSpawner:

  • Added the Paper 26.2 / Java 25 Gradle configuration, plugin.yml, and commented config.yml.

  • Added event-based recovery for spawners’ live block state, with Silk Touch, tool, permission, world, creative-mode, and chance checks. No registration, markers, database, or world scan is used.

  • Preserves mob type through BlockStateMeta and restores it on placement. Successful recovery suppresses normal drops and delivers the custom item on the next tick only if the break was not cancelled and the spawner block is gone.

  • Added success-only player-damage and pickaxe-durability penalties. The Paper ItemStack.damage(int, LivingEntity) path is used for the surcharge.

  • Added Java unit tests for settings, chance rolls, penalty rules, durability bounds, delivery guards, and duplicate-attempt prevention.

Verification and remaining blockers: Paper’s BlockBreakEvent contract confirms that setDropItems(false) prevents the subsequent BlockDropItemEvent. Tests were not run; no build was run and no JAR was built. No live-server tests were added or run for mob-type item round-tripping, old versus newly placed spawners, protection-plugin interactions, or actual Unbreaking/tool-break behavior. The Gradle wrapper is also incomplete: gradle-wrapper.properties exists, but the wrapper launch scripts and binary JAR are absent.

PHASE 2 COMPLETE — WAITING FOR AUTHORIZATION FOR PHASE 3.

Gamer Boro
📎 1 file 2,875 chars
📄
pasted-code-1792743411275.txt
txt 49 lines
▶
**PMC-SilkSpawner — Phase 2.1 Targeted Audit and Corrections**

Audit the current Java-only PMC-SilkSpawner project. Do not begin Phase 3 features, redesign the plugin, or build the final JAR yet.

**Target environment**
- Paper 26.2
- Java 25
- Gradle Groovy DSL
- Main class: `world.projectmc.silkspawner.PMCSilkSpawner`
- No Kotlin, database, registration system, persistent spawner markers, or world scan.

**Fix only verified problems in the current implementation:**

1. **Spawner drop handling**
   - Review the interaction between `BlockBreakEvent`, `setDropItems(false)`, `BlockDropItemEvent`, and the next-tick custom-item delivery.
   - Prevent duplicate spawners and item loss.
   - Do not modify events at `MONITOR` priority.
   - Preserve compatibility with protection plugins and other plugins that cancel or modify block breaking.
   - Do not assume that checking whether the block is gone is sufficient proof that the break was caused by this plugin.
   - Explain the chosen approach and its remaining limitations.

2. **Durability and damage**
   - Verify the Paper 26.2 API signature used for extra pickaxe durability damage.
   - Ensure the surcharge is applied only once, only after successful recovery, and does not bypass normal Unbreaking behavior.
   - Correctly handle creative mode, Unbreakable tools, and a tool breaking from the surcharge.
   - Keep all configured penalties disabled by default.

3. **Build setup**
   - Inspect the Gradle configuration and complete the Gradle Wrapper properly, including launch scripts and wrapper JAR, using a compatible official Gradle wrapper mechanism if available.
   - Do not substitute an arbitrary wrapper JAR or invent a checksum.
   - If the environment cannot generate a complete wrapper, document exactly what is missing and provide the safest reproducible way to finish it on Windows.

4. **Tests and verification**
   - Run the existing tests if the available environment supports them.
   - Add or correct only focused tests needed to cover verified defects.
   - Do not claim a test or build passed unless it was actually run.
   - Clearly distinguish unit tests from Paper-server integration tests.

**Important compatibility requirement:** Recovery must use the live mob type of any eligible spawner, including spawners that existed before plugin installation. Newly placed and naturally generated spawners must not require registration, migration, or replacement.

**Credit-saving constraints**
- Make a targeted correction pass only.
- Do not launch unnecessary agents or perform a broad rewrite.
- Do not implement Phase 3 features.
- Do not build the final release JAR yet.

Report the changed files, actual test/build results, unresolved risks, and the exact next action required. End with:

`PHASE 2.1 AUDIT COMPLETE — WAITING FOR REVIEW.`
Kodari AI
KodariOct 23 at 8:24 am 1
  1. Audit and correct spawner-drop handling against Paper’s event lifecycle.

  2. Verify durability handling and make only confirmed fixes, keeping penalties disabled by default.

  3. Check the Gradle setup and wrapper; complete it only if an official, compatible mechanism is available here.

  4. Run supported focused tests and report verified outcomes and remaining limitations.

Spawner recovery is now staged from BlockBreakEvent and only considered for delivery after Paper’s post-break BlockDropItemEvent. I’m moving on to the configured penalty path and its Paper API contract.

The Paper 26.2 API confirms the ItemStack.damage(int, LivingEntity) overload used for the surcharge. It returns a damaged stack and receives the player context; the existing logic applies it once after recovery, skips Unbreakable/creative cases per config, and puts the returned stack back in hand. I found no verified penalty-path defect requiring a code change.

The configured Gradle version is 9.2.1, but the wrapper is incomplete: only gradle-wrapper.properties exists. This environment cannot generate the official wrapper, so I’ll leave the wrapper unchanged rather than add an unverified JAR. I’m checking the focused tests and source tree before reporting actual test capability.

Phase 2.1 audit

Changed files

  • SpawnerRecoveryListener.java — recovery is now staged during BlockBreakEvent and considered for delivery only after Paper’s BlockDropItemEvent, which confirms that the block was broken. A cancelled break or a spawner that remains does not produce a recovery item. The next-tick check also skips delivery if the drop event was cancelled or its final item list already contains a spawner, preventing a duplicate.

  • RecoveryMechanics.java and RecoveryMechanicsTest.java — updated the delivery predicate and its focused tests to cover cancelled drop events and duplicate spawner drops.

Durability and damage: Paper 26.2’s API confirms the ItemStack.damage(int, LivingEntity) signature and its ItemStack return type. The existing code applies the returned stack once, after confirmed recovery, and handles Unbreakable tools, creative settings, and a tool that breaks. I found no verified defect requiring a penalty-path change. Unbreaking and tool-break behavior still need a live-server test.

Verification: Paper 26.2 documents that BlockDropItemEvent occurs after a player breaks a block, is not called when the break is cancelled or setDropItems(false) is in effect, and may have an empty item list. Source inspection found Java sources/tests only, with no Kotlin plugin or dependency. Tests were not run; no complete wrapper or build tool is available here. No build or final JAR was produced.

Remaining limits: If another plugin cancels BlockDropItemEvent, the block has already been broken, so this plugin suppresses recovery to respect that cancellation; the spawner is then not recovered. Likewise, if another plugin disables drops, Paper does not emit the confirmation event, so no custom item is delivered. These event interactions require Paper-server integration testing.

Exact next action: The project has only gradle-wrapper.properties; gradlew, gradlew.bat, and gradle-wrapper.jar are missing. On Windows, obtain the official Gradle 9.2.1 binary distribution and verify its SHA-256 against the official .sha256 file, then from the project root run:

Powershell
C:\Gradle\gradle-9.2.1\bin\gradle.bat wrapper --gradle-version 9.2.1 --distribution-type bin
.\gradlew.bat --version
.\gradlew.bat test

This generates the wrapper through Gradle’s official mechanism and runs tests without building the release JAR.

PHASE 2.1 AUDIT COMPLETE — WAITING FOR REVIEW.

Gamer Boro
📎 1 file 2,646 chars
📄
pasted-code-1792744056778.txt
txt 42 lines
▶
Continue the existing SilkSpawnerRecovery project. Do not restart the project or perform a broad rewrite.

**Goal:** Complete and verify PMC-SilkSpawner entirely within Kodari's available environment, targeting Java 25 and Paper 26.2.

### Tasks

1. Inspect the complete current source, Gradle configuration, tests, and `gradle-wrapper.properties`.
2. Check whether this environment has Java 25, a compatible Gradle executable, and network access to obtain official Gradle distributions and dependencies.
3. If possible, generate the complete Gradle Wrapper using the official Gradle mechanism for the configured Gradle version. Do not invent or manually fabricate wrapper files.
4. Run the existing unit tests. Fix only verified failures with targeted changes.
5. Run a clean Gradle build and compilation if the environment supports it. Report the exact commands and actual results.
6. If the build succeeds, identify the generated plugin JAR and provide it as a downloadable project artifact if Kodari supports that.
7. If the environment cannot build the project, do not claim success. Complete every supported verification task and report the exact blocker and the minimum remaining action.

### Required gameplay guarantees

- Existing naturally generated spawners and newly placed spawners must use the same recovery logic without registration, migration, or replacement.
- Preserve mob type in the recovered spawner item and restore it when placed.
- Keep recovery chance, permitted tools, permissions, and world restrictions configurable.
- Damage and extra durability penalties remain disabled by default and must only apply after successful recovery.
- Prevent duplicate drops and avoid delivering a recovery item when the break is cancelled.
- Do not mutate events at MONITOR priority.
- Do not add Kotlin or unrelated features.

### Important limitations

Unit tests and compilation do not prove compatibility with a live Paper 26.2 server. Clearly identify which behaviors still require live-server testing, particularly existing-world spawners, protection plugins, mob-type preservation, Unbreaking, and tool-breaking behavior.

### Credit-saving rules

- No unnecessary agents.
- No broad rewrites or repeated audits.
- No Phase 3 features yet.
- Do not build repeatedly.
- Build only after the focused tests pass, if the environment supports it.

Return a concise report with the changed files, test results, build result, exact JAR path if produced, and remaining risks.

End with either:
`BUILD VERIFIED — LIVE SERVER TESTING STILL REQUIRED.`
or
`BUILD BLOCKED — EXACT BLOCKER REPORTED.`
Kodari AI
KodariOct 23 at 8:29 am 1
  1. Inspect the current source, tests, and Gradle setup.

  2. Check Java, Gradle, and network availability; generate the official wrapper only if supported.

  3. Run tests, fix only confirmed failures, then run one clean build if tests pass.

  4. Report the JAR and verification limits, including required live-server checks.

BUILD BLOCKED — exact blocker reported.

  • Changed files: None. The source, tests, Gradle configuration, and wrapper properties were inspected; no verified defect warranted a code change.

  • Wrapper: Only gradle/wrapper/gradle-wrapper.properties exists. The wrapper scripts and JAR are absent. I could not generate them through Gradle’s official mechanism: Java and Gradle are not installed, and network access is disabled.

  • Tests/build: Not run. java -version and gradle --version confirmed those tools are unavailable; curl reported network access is not configured for both the Gradle distribution and Paper Maven repository. No build passed, and no JAR was produced.

  • Gameplay verification: The current unit tests cover core logic and configuration, not Paper event behavior. Existing-world spawners, placed-item mob-type preservation, protection-plugin interactions, Unbreaking, and tool-breaking behavior still require live Paper 26.2 testing.

Minimum remaining action: Provide a build runner with Java 25, Gradle 9.2.1, and access to the official Gradle distribution and Paper Maven repository. Generate the wrapper with Gradle’s official wrapper task, then run gradlew test followed by a clean build. Live-server testing remains necessary even if those checks pass.

Gamer Boro

PMC-SilkSpawner — Fix Paper 26.2 Dependency Resolution Only

The Windows build environment is now working with Java 25 and Gradle Wrapper 9.2.1.

Running gradlew.bat test fails at :compileJava because Gradle cannot resolve:

io.papermc.paper:paper-api:26.2-R0.1-SNAPSHOT

Paper 26.2 uses the newer versioning scheme, for example 26.2.build.121-stable.

Please:

  1. Inspect the current build.gradle and repository configuration.
  2. Verify the correct Paper 26.2 stable API version and Maven repository using official PaperMC information.
  3. Make the smallest possible change to fix dependency resolution. Prefer a verified, pinned 26.2 stable API version for reproducible builds rather than an unrestricted version range.
  4. Do not change Java versions, rewrite plugin logic, add features, or regenerate the wrapper.
  5. Report the exact file and dependency version changed. Do not claim success unless dependency resolution or compilation was actually tested in your environment.

I will run the tests on Windows after downloading the updated source.

Kodari AI
KodariOct 23 at 8:53 am 1
  • Pin both Paper API dependency declarations to the verified 26.2 stable build.

  • Leave the existing official PaperMC repository and all unrelated configuration unchanged.

  • Report that resolution was not tested here unless the environment allows it.

Updated build.gradle: pinned both compileOnly and testImplementation to io.papermc.paper:paper-api:26.2.build.133-stable. PaperMC’s official Maven metadata lists this 26.2 stable version. The existing PaperMC Maven repository URL was already correct and is unchanged.

Gradle dependency resolution, tests, and compilation were not run here. The artifact endpoint returned HTTP 200, but that does not verify Gradle resolution or compilation.

Gamer Boro

PMC-SilkSpawner — Fix Gradle Test Discovery Only

The updated project now resolves Paper API 26.2.build.133-stable and compiles far enough to run :coreTest.

Actual Windows output:

  • :coreTest — PMC-SilkSpawner core tests passed.
  • :test — FAILED: test sources are present, but Gradle discovered no tests to execute.

Please inspect build.gradle and the test source tree. Determine why :test discovers no tests.

  1. Check the test framework dependencies, JUnit version, test engine, source-set paths, and tasks.test configuration.
  2. Make the smallest correct fix so the actual tests are discovered and executed. Do not merely disable failOnNoDiscoveredTests to hide the problem.
  3. Preserve the existing coreTest task and all plugin logic.
  4. Do not change the Paper API version, Java version, or Gradle wrapper.
  5. Do not rewrite tests just to force a green result. If existing tests use a custom runner or are not JUnit tests, configure the correct runner or explain the mismatch.
  6. Run the tests if your environment supports it. If not, report that the fix is unverified.

Do not add features or build the release JAR. Report the exact file changed, why discovery failed, and what was actually verified.

Kodari AI
KodariOct 23 at 9:11 am 1
  • Confirm the custom runner is the only test framework and check local Gradle/Java availability.

  • Configure test to execute that runner directly, while preserving coreTest.

  • Report the change and whether it could be verified here.

Changed build.gradle only. The default test task used Gradle’s test discovery, but the test classes are plain Java classes with static run() methods—there are no JUnit dependencies, annotations, or test engine. CoreTests.main is the existing custom runner.

Replaced the default test task with a JavaExec task that compiles the test source set and runs CoreTests. The existing coreTest task and plugin logic remain unchanged. This runs the custom tests rather than disabling Gradle’s no-tests failure.

Verification: Not run here. Java and Gradle are unavailable in this environment. The change is unverified; please run gradlew.bat test on Windows.

Kodari can make mistakes. Review important code before using.
Files
gradle
src
build.gradle
settings.gradle
Code
15 732
src/main/java/world/projectmc/silkspawner/PMCSilkSpawner.java
package world.projectmc.silkspawner;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import world.projectmc.silkspawner.listener.SpawnerRecoveryListener;

public final class PMCSilkSpawner extends JavaPlugin {
    @Override
    public void onEnable() {
        saveDefaultConfig();
        PluginSettings settings = PluginSettings.load(getConfig(), message -> getLogger().warning(message));
        Bukkit.getPluginManager().registerEvents(new SpawnerRecoveryListener(this, settings), this);
    }
}