diff --git a/.checkstyle/checkstyle.xml b/.checkstyle/checkstyle.xml
index d03cbd10..387e35f8 100644
--- a/.checkstyle/checkstyle.xml
+++ b/.checkstyle/checkstyle.xml
@@ -61,6 +61,9 @@
+
+
+
diff --git a/common/src/main/java/net/draycia/carbon/common/channels/BasicChatChannel.java b/common/src/main/java/net/draycia/carbon/common/channels/BasicChatChannel.java
index aa14f085..91843a85 100644
--- a/common/src/main/java/net/draycia/carbon/common/channels/BasicChatChannel.java
+++ b/common/src/main/java/net/draycia/carbon/common/channels/BasicChatChannel.java
@@ -143,11 +143,25 @@ public final class BasicChatChannel implements ChatChannel {
@Override
public boolean equals(final Object other) {
- if (!(other instanceof BasicChatChannel otherChannel)) return false;
- if (!(otherChannel.commandName().equals(this.commandName()))) return false;
- if (!(Objects.equals(otherChannel.quickPrefix(), this.quickPrefix()))) return false;
- if (!(Objects.equals(otherChannel.permission(), this.permission()))) return false;
- if (otherChannel.radius() != this.radius()) return false;
+ if (!(other instanceof BasicChatChannel otherChannel)) {
+ return false;
+ }
+
+ if (!(otherChannel.commandName().equals(this.commandName()))) {
+ return false;
+ }
+
+ if (!(Objects.equals(otherChannel.quickPrefix(), this.quickPrefix()))) {
+ return false;
+ }
+
+ if (!(Objects.equals(otherChannel.permission(), this.permission()))) {
+ return false;
+ }
+
+ if (otherChannel.radius() != this.radius()) {
+ return false;
+ }
return otherChannel.key().equals(this.key());
}
@@ -156,4 +170,5 @@ public final class BasicChatChannel implements ChatChannel {
public int hashCode() {
return Objects.hash(this.commandName(), this.quickPrefix(), this.permission(), this.radius(), this.key());
}
+
}
diff --git a/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java b/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java
index 0bb429dc..4b483904 100644
--- a/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java
+++ b/common/src/main/java/net/draycia/carbon/common/channels/ConfigChatChannel.java
@@ -292,11 +292,25 @@ public final class ConfigChatChannel implements ChatChannel {
@Override
public boolean equals(final Object other) {
- if (!(other instanceof BasicChatChannel otherChannel)) return false;
- if (!(otherChannel.commandName().equals(this.commandName()))) return false;
- if (!(Objects.equals(otherChannel.quickPrefix(), this.quickPrefix()))) return false;
- if (!(Objects.equals(otherChannel.permission(), this.permission()))) return false;
- if (otherChannel.radius() != this.radius()) return false;
+ if (!(other instanceof BasicChatChannel otherChannel)) {
+ return false;
+ }
+
+ if (!(otherChannel.commandName().equals(this.commandName()))) {
+ return false;
+ }
+
+ if (!(Objects.equals(otherChannel.quickPrefix(), this.quickPrefix()))) {
+ return false;
+ }
+
+ if (!(Objects.equals(otherChannel.permission(), this.permission()))) {
+ return false;
+ }
+
+ if (otherChannel.radius() != this.radius()) {
+ return false;
+ }
return otherChannel.key().equals(this.key());
}
@@ -305,4 +319,5 @@ public final class ConfigChatChannel implements ChatChannel {
public int hashCode() {
return Objects.hash(this.commandName(), this.quickPrefix(), this.permission(), this.radius(), this.key());
}
+
}
diff --git a/common/src/main/java/net/draycia/carbon/common/command/commands/NicknameCommand.java b/common/src/main/java/net/draycia/carbon/common/command/commands/NicknameCommand.java
index 226514d7..56e8f6c2 100644
--- a/common/src/main/java/net/draycia/carbon/common/command/commands/NicknameCommand.java
+++ b/common/src/main/java/net/draycia/carbon/common/command/commands/NicknameCommand.java
@@ -123,7 +123,9 @@ public class NicknameCommand extends CarbonCommand {
@Nullable Component cached = null;
};
final Supplier lazyNickname = () -> {
- if (ref.cached != null) return ref.cached;
+ if (ref.cached != null) {
+ return ref.cached;
+ }
ref.cached = ConfigChatChannel.parseMessageTags(sender, handler.flags().get("nickname"));
return ref.cached;
diff --git a/common/src/main/java/net/draycia/carbon/common/users/CarbonPlayerCommon.java b/common/src/main/java/net/draycia/carbon/common/users/CarbonPlayerCommon.java
index 31a03e2d..57fc09cd 100644
--- a/common/src/main/java/net/draycia/carbon/common/users/CarbonPlayerCommon.java
+++ b/common/src/main/java/net/draycia/carbon/common/users/CarbonPlayerCommon.java
@@ -353,7 +353,9 @@ public class CarbonPlayerCommon implements CarbonPlayer, ForwardingAudience.Sing
@Override
public boolean equals(final @Nullable Object other) {
- if (other == null || this.getClass() != other.getClass()) return false;
+ if (other == null || this.getClass() != other.getClass()) {
+ return false;
+ }
return this.uuid.equals(((CarbonPlayerCommon) other).uuid);
}
diff --git a/common/src/main/java/net/draycia/carbon/common/util/DiscordRecipient.java b/common/src/main/java/net/draycia/carbon/common/util/DiscordRecipient.java
index 91b594a9..b7c952e1 100644
--- a/common/src/main/java/net/draycia/carbon/common/util/DiscordRecipient.java
+++ b/common/src/main/java/net/draycia/carbon/common/util/DiscordRecipient.java
@@ -26,5 +26,7 @@ public final class DiscordRecipient implements Audience {
public static final DiscordRecipient INSTANCE = new DiscordRecipient();
private DiscordRecipient() {
+
}
+
}