Fixup checkstyle errors

This commit is contained in:
William committed 2023-12-10 00:27:00 +00:00
1 parent 859993b37e
commit 6c5d09ff79
2 files changed
+7 -5

No files matched your search

@@ -196,7 +196,9 @@ public class EditHomeCommand extends SavedPositionCommand<Home> {
home.isPublic() home.isPublic()
); );
} catch (ValidationException e) { } 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)); e.dispatchHomeError(executor, false, plugin, Integer.toString(maxHomes));
return; return;
} }
@@ -51,16 +51,16 @@ public final class NormalDistributionEngine extends RandomTeleportEngine {
// Utility for determining a valid spawn radius // Utility for determining a valid spawn radius
private static int determineSpawnRadius(int radius, int spawnRadius, @NotNull HuskHomes plugin) { private static int determineSpawnRadius(int radius, int spawnRadius, @NotNull HuskHomes plugin) {
if (spawnRadius >= radius) { if (spawnRadius >= radius) {
plugin.log(Level.WARNING, "The RTP spawn radius is greater than or equal to 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. " + + "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."); + "Please set the RTP spawn radius to a value less than the RTP radius.");
return radius - 1; return radius - 1;
} }
return spawnRadius; 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. * standard deviation, about the origin position.
* *
* @param origin The origin position * @param origin The origin position