Remove custom translate() helper from CheckPhase — let BentoBox handle MiniMessage natively#485
Conversation
…custom translate() with LegacyComponentSerializer Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/3ae91a34-99b8-44ae-bdce-bc776883a2f9 Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
|
@copilot Fix the tests that were broken by this change |
… LegacyComponentSerializer) Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/e8854ea2-7b56-497a-ac76-533846ce7957 Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Fixed in commit |
|
@copilot There is still a test error: |
…t.sendMessage() Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/b792d2e9-3944-46fa-9f8e-2339f94967e8 Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Fixed in commit
Removed the local |
|




CheckPhase.javato useuser.sendMessage()directly (no customtranslate()helper)CheckPhaseTest: restoreshowTitle()Adventure API inCheckPhase.setNewPhase()InfoListenerTest: replacespigot.sendMessage()verification withlm.get()verification@Mock private Spigot spigotfield andcheckSpigotMessage()overrideTextComponent,ArgumentCaptor,List,atLeast,Player.Spigot)testOnInfo: now verifieslm.get(any(User.class), eq("aoneblock.commands.info.count"))testOnInfoOtherAddon: now verifieslm.get()was never called with that keyplayer.spigot()still wired to inheritedspigotfromCommonTestSetupto prevent NPE in current BentoBox'ssendRawMessage()