|
22 | 22 | import world.bentobox.aoneblock.AOneBlock; |
23 | 23 | import world.bentobox.aoneblock.dataobjects.OneBlockIslands; |
24 | 24 | import world.bentobox.aoneblock.events.MagicBlockEvent; |
| 25 | +import world.bentobox.bentobox.BentoBox; |
25 | 26 | import world.bentobox.bentobox.api.events.flags.FlagSettingChangeEvent; |
26 | 27 | import world.bentobox.bentobox.api.events.island.IslandEnterEvent; |
27 | 28 | import world.bentobox.bentobox.api.events.island.IslandExitEvent; |
@@ -110,12 +111,13 @@ private void tryToShowActionBar(UUID uuid, Island island) { |
110 | 111 | int numBlocksToGo = addon.getOneBlockManager().getNextPhaseBlocks(obi); |
111 | 112 | int phaseBlocks = addon.getOneBlockManager().getPhaseBlocks(obi); |
112 | 113 | int done = phaseBlocks - numBlocksToGo; |
113 | | - String translation = user.getTranslationOrNothing("aoneblock.actionbar.status", "[togo]", |
| 114 | + String translation = user.getTranslationNoColor("aoneblock.actionbar.status", "[togo]", |
114 | 115 | String.valueOf(numBlocksToGo), "[total]", String.valueOf(phaseBlocks), "[done]", String.valueOf(done), |
115 | 116 | "[phase-name]", obi.getPhaseName(), "[percent-done]", |
116 | 117 | Math.round(addon.getOneBlockManager().getPercentageDone(obi)) + "%"); |
117 | 118 | // Send |
118 | | - player.sendActionBar(bukkitToAdventure(translation)); |
| 119 | + Component comp = bukkitToAdventure(translation); |
| 120 | + player.sendActionBar(comp); |
119 | 121 | } |
120 | 122 | /** |
121 | 123 | * Try to show the bossbar to the player |
|
0 commit comments