IntellectualSites / IntellectualSites/PlotSquared

Address deprecated armor methods in `ReplicatingEntityWrapper`

Open Beginner friendly
#4,163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Hacktoberfest
Dominant language
Java
Stars
653
Forks
975
Avg merge
2m
Merged PRs (30d)
6

Description

https://github.com/IntellectualSites/PlotSquared/blob/main/Bukkit/src/main/java/com/plotsquared/bukkit/entity/ReplicatingEntityWrapper.java#L208-L210

calls the deprecated armor stand methods. Rather, the ItemStack call should be updated to call stand#getItem() and check for an EquipmentSlot individually, matching all parts of the player.

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 with Bukkit/src/main/java/com/plotsquared/bukkit/entity/ReplicatingEntityWrapper.java at lines 208-210 and inspect how the armor stand equipment is read. Update the deprecated armor methods to use stand#getItem() with individual EquipmentSlot checks, matching all parts of the player. Done means those deprecated calls are no longer used in this location and the project still compiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.