Skip to content

Fix 1.7.10 compat: use org.bukkit.ChatColor#75

Merged
Xitee1 merged 1 commit into
masterfrom
fix-1.7.10-chatcolor
Apr 18, 2026
Merged

Fix 1.7.10 compat: use org.bukkit.ChatColor#75
Xitee1 merged 1 commit into
masterfrom
fix-1.7.10-chatcolor

Conversation

@Xitee1
Copy link
Copy Markdown
Owner

@Xitee1 Xitee1 commented Apr 18, 2026

Summary

net.md_5.bungee.api.ChatColor existiert in Spigot 1.7.10 nicht — Plugin-Load crasht mit NoClassDefFoundError in PowerBoard.<clinit>.

Alle 3 Verwendungsstellen nutzen ausschließlich Standard-Farb-Enums (GRAY, YELLOW, RED, GOLD, DARK_AQUA, DARK_GRAY, GREEN, STRIKETHROUGH). Die sind in org.bukkit.ChatColor genauso vorhanden, und bei String-Konkatenation produzieren beide dasselbe §X Color-Code-Format.

Diff

  • PowerBoard.java
  • PowerBoardCommand.java
  • Config.java

Jeweils nur der Import von net.md_5.bungee.api.ChatColororg.bukkit.ChatColor.

Hinweise

  • Pre-existing Bug — unabhängig vom Dep-Bump-PR (Bump dependencies #74)
  • Keine RGB-ChatColor.of(...) Nutzungen im Code, daher 1:1 sicher
  • Kein Verhaltensunterschied auf neueren MC-Versionen erwartet

Test plan

  • CI Build läuft grün
  • Runtime-Test 1.7.10 → Plugin lädt ohne NoClassDefFoundError
  • Runtime-Test 1.8.8 → Plugin lädt, Prefix im Chat korrekt gefärbt
  • Runtime-Test 1.21.x → kein Regressionsschaden, Prefix gleich

🤖 Generated with Claude Code

Spigot 1.7.10 does not ship net.md_5.bungee.api.ChatColor, causing
NoClassDefFoundError at plugin load. Swap the import to org.bukkit.ChatColor
in the three affected files — all usages are plain color/format enum
references (GRAY, YELLOW, STRIKETHROUGH, etc.) which exist in both classes
and have identical toString() output on concatenation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Xitee1 Xitee1 merged commit ed409fa into master Apr 18, 2026
1 check failed
@Xitee1 Xitee1 deleted the fix-1.7.10-chatcolor branch April 18, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant