Remove deprecated ChatColor and getDescription usage

Abierto
#74 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Java
Estrellas
1
Forks
0
Merge medio
2 h 35 min
PR fusionados (30 d)
14

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BrendonButler/Shops

Todos los issues de BrendonButler/Shops

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.