mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +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()
|
||||
);
|
||||
} 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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user