From f7974a1013a0d403cd30b0d99fb503012e6e7fa5 Mon Sep 17 00:00:00 2001 From: sub-kek Date: Tue, 27 Aug 2024 13:44:54 +0300 Subject: [PATCH] Cleanup code --- .../java/io/github/subkek/customdiscs/LavaPlayerManager.java | 5 +++-- .../java/io/github/subkek/customdiscs/PlayerManager.java | 5 +++-- .../github/subkek/customdiscs/particle/ParticleManager.java | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/github/subkek/customdiscs/LavaPlayerManager.java b/src/main/java/io/github/subkek/customdiscs/LavaPlayerManager.java index 738e146..489b657 100644 --- a/src/main/java/io/github/subkek/customdiscs/LavaPlayerManager.java +++ b/src/main/java/io/github/subkek/customdiscs/LavaPlayerManager.java @@ -173,8 +173,7 @@ private class LavaPlayer { private Collection playersInRange; private UUID playerUUID; private AudioPlayer audioPlayer; - private final Thread lavaPlayerThread = new Thread(this::startTrackJob, "LavaPlayerThread"); - private Block block; + private Block block; private final Thread lavaPlayerThread = new Thread(this::startTrackJob, "LavaPlayerThread"); private void startTrackJob() { try { @@ -276,5 +275,7 @@ public void loadFailed(FriendlyException e) { } } } + + } } diff --git a/src/main/java/io/github/subkek/customdiscs/PlayerManager.java b/src/main/java/io/github/subkek/customdiscs/PlayerManager.java index e48f1b8..77e16cb 100644 --- a/src/main/java/io/github/subkek/customdiscs/PlayerManager.java +++ b/src/main/java/io/github/subkek/customdiscs/PlayerManager.java @@ -203,8 +203,7 @@ private class DiscPlayer { private Collection playersInRange; private UUID playerUUID; private AudioPlayer audioPlayer; - private final Thread audioPlayerThread = new Thread(this::startTrackJob, "AudioPlayerThread"); - private Block block; + private Block block; private final Thread audioPlayerThread = new Thread(this::startTrackJob, "AudioPlayerThread"); private void startTrackJob() { try { @@ -234,5 +233,7 @@ private void startTrackJob() { } } } + + } } diff --git a/src/main/java/io/github/subkek/customdiscs/particle/ParticleManager.java b/src/main/java/io/github/subkek/customdiscs/particle/ParticleManager.java index d4c5d5f..35363e8 100644 --- a/src/main/java/io/github/subkek/customdiscs/particle/ParticleManager.java +++ b/src/main/java/io/github/subkek/customdiscs/particle/ParticleManager.java @@ -5,7 +5,6 @@ import io.github.subkek.customdiscs.LavaPlayerManager; import io.github.subkek.customdiscs.PlayerManager; import lombok.Data; -import org.bukkit.Particle; import org.bukkit.block.Block; import org.bukkit.block.Jukebox;