From 6c5d09ff7962031a96548f3fec84cff946c8065e Mon Sep 17 00:00:00 2001 From: William Date: Sun, 10 Dec 2023 00:27:00 +0000 Subject: [PATCH] Fixup checkstyle errors --- .../net/william278/huskhomes/command/EditHomeCommand.java | 4 +++- .../huskhomes/random/NormalDistributionEngine.java | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/net/william278/huskhomes/command/EditHomeCommand.java b/common/src/main/java/net/william278/huskhomes/command/EditHomeCommand.java index 1c6f07e7..83aaf3f4 100644 --- a/common/src/main/java/net/william278/huskhomes/command/EditHomeCommand.java +++ b/common/src/main/java/net/william278/huskhomes/command/EditHomeCommand.java @@ -196,7 +196,9 @@ public class EditHomeCommand extends SavedPositionCommand { home.isPublic() ); } catch (ValidationException e) { - int maxHomes = plugin.getManager().homes().getMaxPublicHomes(executor instanceof OnlineUser user ? user : null); + int maxHomes = plugin.getManager().homes().getMaxPublicHomes( + executor instanceof OnlineUser user ? user : null + ); e.dispatchHomeError(executor, false, plugin, Integer.toString(maxHomes)); return; } diff --git a/common/src/main/java/net/william278/huskhomes/random/NormalDistributionEngine.java b/common/src/main/java/net/william278/huskhomes/random/NormalDistributionEngine.java index d5a9a126..48337f7b 100644 --- a/common/src/main/java/net/william278/huskhomes/random/NormalDistributionEngine.java +++ b/common/src/main/java/net/william278/huskhomes/random/NormalDistributionEngine.java @@ -51,16 +51,16 @@ public final class NormalDistributionEngine extends RandomTeleportEngine { // Utility for determining a valid spawn radius private static int determineSpawnRadius(int radius, int spawnRadius, @NotNull HuskHomes plugin) { if (spawnRadius >= radius) { - plugin.log(Level.WARNING, "The RTP spawn radius is greater than or equal to the RTP radius. " + - "This will result in the RTP engine being unable to find a suitable location to teleport to. " + - "Please set the RTP spawn radius to a value less than the RTP radius."); + plugin.log(Level.WARNING, "The RTP spawn radius is greater than or equal to the RTP radius. " + + "This will result in the RTP engine being unable to find a suitable location to teleport to. " + + "Please set the RTP spawn radius to a value less than the RTP radius."); return radius - 1; } return spawnRadius; } /** - * Generate a {@link Location} through a randomized normally-distributed radius and random angle using the mean and + * Generate a {@link Location} through a randomized normally distributed radius and random angle using the mean and * standard deviation, about the origin position. * * @param origin The origin position