From 4325ed806863d1a3473e764f5fd2f896a5b9585a Mon Sep 17 00:00:00 2001
From: OptimisticDeving <173472493+OptimisticDeving@users.noreply.github.com>
Date: Sun, 30 Mar 2025 20:22:44 +0000
Subject: [PATCH] Fix code style violations

---
 .../pw/kaboom/extras/modules/player/PlayerMessaging.java | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/pw/kaboom/extras/modules/player/PlayerMessaging.java b/src/main/java/pw/kaboom/extras/modules/player/PlayerMessaging.java
index e4677e3..bbfe0f2 100644
--- a/src/main/java/pw/kaboom/extras/modules/player/PlayerMessaging.java
+++ b/src/main/java/pw/kaboom/extras/modules/player/PlayerMessaging.java
@@ -30,7 +30,7 @@ public final class PlayerMessaging implements PluginMessageListener {
 
     private final Main plugin;
 
-    public PlayerMessaging(Main plugin) {
+    public PlayerMessaging(final Main plugin) {
         this.plugin = plugin;
 
         SCHEDULED_EXECUTOR_SERVICE.scheduleAtFixedRate(() -> {
@@ -61,7 +61,7 @@ public final class PlayerMessaging implements PluginMessageListener {
 
     private final Map<String, Set<Player>> listening = Collections.synchronizedMap(new HashMap<>());
 
-    private static String readString(DataInput dataInput) throws IOException {
+    private static String readString(final DataInput dataInput) throws IOException {
         final byte[] buf = new byte[255];
         int idx = 0;
 
@@ -92,7 +92,8 @@ public final class PlayerMessaging implements PluginMessageListener {
         });
     }
 
-    private void handleUnregister(final Player player, final DataInput input) throws IOException {
+    private void handleUnregister(final Player player,
+                                  final DataInput input) throws IOException {
         this.listening.computeIfPresent(readString(input), (k, v) -> {
             v.remove(player);
             return v;
@@ -185,7 +186,7 @@ public final class PlayerMessaging implements PluginMessageListener {
                         new DataInputStream(new FastByteArrayInputStream(bytes))
                 );
             }
-        } catch (Exception ignored) {
+        } catch (final Exception ignored) {
             player.sendMessage(ERROR);
         }
     }