Remove deprecated ChatColor and getDescription usage

Aperta
#74 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Read the API usage in ShopCommand, Notifier, Shops, and InfoCommandTest, along with issue #20 for the messaging rework. Compare Paper’s getPluginMeta() with the Spigot compile check before choosing a cross-platform way to read the description. Run the default and -Pmc26 builds; done means the plugin’s main code has no deprecation warnings in either build.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement java

Problem

The plugin compiles with deprecation warnings against Paper 1.21.11 and 26.3. None of these APIs are marked for removal yet.

API Used in Plan
org.bukkit.ChatColor ShopCommand, Notifier, tests Goes away with the messaging rework (#20)
JavaPlugin.getDescription() Shops, InfoCommandTest Paper replaces it with getPluginMeta(), but that isn't in the Spigot API, so the Spigot compile check would fail

Deprecated Vault String overloads only appear in the test FakeEconomy, which has to implement them.

Scope

  • Remove ChatColor as part of #20.
  • Decide how to read the plugin's description on both platforms, for example reading plugin.yml once or adding a small platform helper.

Done when

  • The default and -Pmc26 builds have no deprecation warnings from the plugin's main code.
Lingua principale
Java
Stelle
1
Fork
0
Merge medio
2h 35m
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BrendonButler/Shops

Tutte le issue di BrendonButler/Shops

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.