diff --git a/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java b/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java index 2726d56d2..d89cfc5ac 100644 --- a/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java +++ b/Core/src/main/java/com/plotsquared/core/backup/SimpleBackupManager.java @@ -136,7 +136,9 @@ public class SimpleBackupManager implements BackupManager { return this.backupLimit; } - private record PlotCacheKey(Plot plot) { + private record PlotCacheKey( + Plot plot + ) { @Override public boolean equals(final Object o) { diff --git a/Core/src/main/java/com/plotsquared/core/components/ComponentPreset.java b/Core/src/main/java/com/plotsquared/core/components/ComponentPreset.java index d52e8cf2d..f4b04d5c5 100644 --- a/Core/src/main/java/com/plotsquared/core/components/ComponentPreset.java +++ b/Core/src/main/java/com/plotsquared/core/components/ComponentPreset.java @@ -35,8 +35,15 @@ import java.util.Map; * the component GUI */ @SerializableAs("preset") -public record ComponentPreset(ClassicPlotManagerComponent component, String pattern, double cost, String permission, - String displayName, List description, ItemType icon) implements ConfigurationSerializable { +public record ComponentPreset( + ClassicPlotManagerComponent component, + String pattern, + double cost, + String permission, + String displayName, + List description, + ItemType icon +) implements ConfigurationSerializable { @SuppressWarnings("unchecked") public static ComponentPreset deserialize(final @NonNull Map map) { diff --git a/Core/src/main/java/com/plotsquared/core/database/SQLManager.java b/Core/src/main/java/com/plotsquared/core/database/SQLManager.java index 38c7d8abc..83a32e39c 100644 --- a/Core/src/main/java/com/plotsquared/core/database/SQLManager.java +++ b/Core/src/main/java/com/plotsquared/core/database/SQLManager.java @@ -3414,7 +3414,10 @@ public class SQLManager implements AbstractDB { } } - private record LegacySettings(int id, PlotSettings settings) { + private record LegacySettings( + int id, + PlotSettings settings + ) { } diff --git a/Core/src/main/java/com/plotsquared/core/location/ChunkWrapper.java b/Core/src/main/java/com/plotsquared/core/location/ChunkWrapper.java index be33d5d43..2d858bacb 100644 --- a/Core/src/main/java/com/plotsquared/core/location/ChunkWrapper.java +++ b/Core/src/main/java/com/plotsquared/core/location/ChunkWrapper.java @@ -21,7 +21,11 @@ package com.plotsquared.core.location; import com.plotsquared.core.util.MathMan; import com.plotsquared.core.util.StringMan; -public record ChunkWrapper(String world, int x, int z) { +public record ChunkWrapper( + String world, + int x, + int z +) { @Override public int hashCode() { diff --git a/Core/src/main/java/com/plotsquared/core/plot/BlockBucket.java b/Core/src/main/java/com/plotsquared/core/plot/BlockBucket.java index b902641df..ef7a98fe7 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/BlockBucket.java +++ b/Core/src/main/java/com/plotsquared/core/plot/BlockBucket.java @@ -215,7 +215,11 @@ public final class BlockBucket implements ConfigurationSerializable { return result; } - private record Range(int min, int max, boolean automatic) { + private record Range( + int min, + int max, + boolean automatic + ) { public int getWeight() { return max - min; diff --git a/Core/src/main/java/com/plotsquared/core/plot/comment/PlotComment.java b/Core/src/main/java/com/plotsquared/core/plot/comment/PlotComment.java index ffae98155..5b1f125e2 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/comment/PlotComment.java +++ b/Core/src/main/java/com/plotsquared/core/plot/comment/PlotComment.java @@ -20,6 +20,13 @@ package com.plotsquared.core.plot.comment; import com.plotsquared.core.plot.PlotId; -public record PlotComment(String world, PlotId id, String comment, String senderName, String inbox, long timestamp) { +public record PlotComment( + String world, + PlotId id, + String comment, + String senderName, + String inbox, + long timestamp +) { } diff --git a/Core/src/main/java/com/plotsquared/core/plot/flag/types/TimedFlag.java b/Core/src/main/java/com/plotsquared/core/plot/flag/types/TimedFlag.java index d64d71aa1..9731c74d9 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/flag/types/TimedFlag.java +++ b/Core/src/main/java/com/plotsquared/core/plot/flag/types/TimedFlag.java @@ -76,7 +76,10 @@ public abstract class TimedFlag, F>> return getValue().toString(); } - public record Timed(int interval, T value) { + public record Timed( + int interval, + T value + ) { @Override public String toString() { diff --git a/Core/src/main/java/com/plotsquared/core/services/plots/AutoQuery.java b/Core/src/main/java/com/plotsquared/core/services/plots/AutoQuery.java index 1f2a78aeb..aadef3808 100644 --- a/Core/src/main/java/com/plotsquared/core/services/plots/AutoQuery.java +++ b/Core/src/main/java/com/plotsquared/core/services/plots/AutoQuery.java @@ -24,7 +24,13 @@ import com.plotsquared.core.plot.PlotId; import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; -public record AutoQuery(PlotPlayer player, PlotId startId, int sizeX, int sizeZ, PlotArea plotArea) { +public record AutoQuery( + PlotPlayer player, + PlotId startId, + int sizeX, + int sizeZ, + PlotArea plotArea +) { /** * Crate a new auto query diff --git a/Core/src/main/java/com/plotsquared/core/setup/SettingsNodesWrapper.java b/Core/src/main/java/com/plotsquared/core/setup/SettingsNodesWrapper.java index e575f0e77..a9c8f7a76 100644 --- a/Core/src/main/java/com/plotsquared/core/setup/SettingsNodesWrapper.java +++ b/Core/src/main/java/com/plotsquared/core/setup/SettingsNodesWrapper.java @@ -23,7 +23,10 @@ import com.plotsquared.core.configuration.ConfigurationNode; /** * This class wraps an array of {@link ConfigurationNode}s. */ -public record SettingsNodesWrapper(ConfigurationNode[] settingsNodes, SetupStep afterwards) { +public record SettingsNodesWrapper( + ConfigurationNode[] settingsNodes, + SetupStep afterwards +) { /** * Returns the first step of this wrapper or the step or the diff --git a/Core/src/main/java/com/plotsquared/core/util/FileBytes.java b/Core/src/main/java/com/plotsquared/core/util/FileBytes.java index e250f0095..95d1aa7da 100644 --- a/Core/src/main/java/com/plotsquared/core/util/FileBytes.java +++ b/Core/src/main/java/com/plotsquared/core/util/FileBytes.java @@ -18,6 +18,9 @@ */ package com.plotsquared.core.util; -public record FileBytes(String path, byte[] data) { +public record FileBytes( + String path, + byte[] data +) { } diff --git a/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java b/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java index 62c26cc7f..a6b39845c 100644 --- a/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java +++ b/Core/src/main/java/com/plotsquared/core/util/placeholders/PlaceholderRegistry.java @@ -300,7 +300,9 @@ public final class PlaceholderRegistry { /** * Event called when a new {@link Placeholder} has been added */ - public record PlaceholderAddedEvent(Placeholder placeholder) { + public record PlaceholderAddedEvent( + Placeholder placeholder + ) { } diff --git a/Core/src/main/java/com/plotsquared/core/uuid/UUIDMapping.java b/Core/src/main/java/com/plotsquared/core/uuid/UUIDMapping.java index 3731d6500..f9b8d1591 100644 --- a/Core/src/main/java/com/plotsquared/core/uuid/UUIDMapping.java +++ b/Core/src/main/java/com/plotsquared/core/uuid/UUIDMapping.java @@ -25,7 +25,10 @@ import java.util.UUID; /** * A pair consisting of a UUID and a username */ -public record UUIDMapping(@NonNull UUID uuid, @NonNull String username) { +public record UUIDMapping( + @NonNull UUID uuid, + @NonNull String username +) { @Override public boolean equals(final Object o) {