Properly initialize redis listener

This commit is contained in:
William committed 2021-10-03 00:01:18 +01:00
1 parent 60f894a006
commit 0bfc2faf2d
2 files changed
+9 -4

No files matched your search

@@ -15,7 +15,7 @@ public class RedisReceiver {
public static final String REDIS_CHANNEL = "HuskHomes";
public static Player getRandomReceiver() {
private static Player getRandomReceiver() {
ArrayList<Player> players = new ArrayList<>(Bukkit.getOnlinePlayers());
if (players.isEmpty()) {
return null;