Skip to content

Commit

Permalink
- Fix NoClassDefFoundError that appears on 1.16.5 servers when /t
Browse files Browse the repository at this point in the history
outpost list is used.
    - Closes #7037.
  • Loading branch information
LlmDl committed Oct 18, 2023
1 parent 8a54ffa commit b25f63d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -612,7 +611,7 @@ public static void sendOutpostList(Player player, Town town, int page, int total
.append(dash);

TextComponent outpostName = Component.text(name, NamedTextColor.GREEN);
TextComponent worldName = Component.text(Optional.ofNullable(outpost.getWorld()).map(World::getName).orElse("null"), NamedTextColor.BLUE);
TextComponent worldName = Component.text(Optional.ofNullable(outpost.getWorld()).map(w -> w.getName()).orElse("null"), NamedTextColor.BLUE);
TextComponent coords = Component.text("(" + outpost.getBlockX() + "," + outpost.getBlockZ()+ ")", NamedTextColor.BLUE);

if (!name.equalsIgnoreCase("")) {
Expand Down
4 changes: 3 additions & 1 deletion Towny/src/main/resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9152,4 +9152,6 @@ v0.92.0.11:
- Fix towns being deleted causing a second (pointless) town deletion when the last resident is removed.
- Refactor TownLevel calculation to include a new API event and reflow.
- API: Added TownCalculateTownLevelNumberEvent, an event thrown when Towny decides what TownLevel number a Town will have, which ultimately decides which TownLevel the Town receives.
- Useful for plugins that want to artifically increase or decrease a Town's TownLevel.
- Useful for plugins that want to artifically increase or decrease a Town's TownLevel.
- Fix NoClassDefFoundError that appears on 1.16.5 servers when /t outpost list is used.
- Closes #7037.

0 comments on commit b25f63d

Please sign in to comment.