IntellectualSites / IntellectualSites/PlotSquared

Perform Block ID Checks on Plugin Load

Open
#3,602 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Approved Enhancement Good first issue
Dominant language
Java
Stars
653
Forks
975
Avg merge
2m
Merged PRs (30d)
6

Description

What feature do you want to see added?

If a pattern check can be ran on plugin load, a user could be notified of invalid block IDs being used in worlds.yml.

The context is that I had an invalid block ID in my worlds.yml file for an extended period of time. For me, it wasn't readily apparent that something was wrong as the entire world was already generated, so it only produced errors during a merge and an unmerge, and those are not common. I am not sure why it was changed, but it was well over a year ago.

Are there any alternatives?

I have yet to try any alternatives, as this is merely a fresh idea, and I am not sure what else I could try. I have fixed the worlds.yml and it resolved the merging/unmerging issues.

Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the plugin-load entry point and the code that reads worlds.yml. Trace how block IDs are currently resolved during merge and unmerge, then determine how invalid IDs should be reported during loading. Done means invalid block IDs in worlds.yml are detected and clearly reported when the plugin loads.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.