mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +00:00
Fixup checkstyle errors
This commit is contained in:
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
|
||||||
|
|||||||
Reference in new issue
Block a user