From a49b9064ebad72d750d43ad0d20b77fe0cde65ab Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Sat, 28 Sep 2024 12:32:30 +0400 Subject: [PATCH] Remove generics used for events in PlayerData --- .../redisbungee/api/PlayerDataManager.java | 16 ++++++++-------- .../redisbungee/api/RedisBungeePlugin.java | 2 +- .../redisbungee/BungeePlayerDataManager.java | 2 +- .../minecraft/redisbungee/RedisBungee.java | 2 +- .../redisbungee/RedisBungeeVelocityPlugin.java | 2 +- .../redisbungee/VelocityPlayerDataManager.java | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java index e2b2d34..f567d81 100644 --- a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java +++ b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/api/PlayerDataManager.java @@ -32,7 +32,7 @@ import java.net.InetAddress; import java.util.*; import java.util.concurrent.TimeUnit; -public abstract class PlayerDataManager { +public abstract class PlayerDataManager

{ protected final RedisBungeePlugin

plugin; private final Object SERVERS_TO_PLAYERS_KEY = new Object(); @@ -56,20 +56,20 @@ public abstract class PlayerDataManager extends EventsPlatform { ProxyDataManager proxyDataManager(); - PlayerDataManager playerDataManager(); + PlayerDataManager

playerDataManager(); UUIDTranslator getUuidTranslator(); diff --git a/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java b/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java index 5455731..8013ff3 100644 --- a/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java +++ b/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/BungeePlayerDataManager.java @@ -30,7 +30,7 @@ import net.md_5.bungee.event.EventHandler; import java.util.concurrent.TimeUnit; -public class BungeePlayerDataManager extends PlayerDataManager implements Listener { +public class BungeePlayerDataManager extends PlayerDataManager implements Listener { public BungeePlayerDataManager(RedisBungeePlugin plugin) { super(plugin); diff --git a/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index aa2062b..2395b13 100644 --- a/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/proxies/bungeecord/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -99,7 +99,7 @@ public class RedisBungee extends Plugin implements RedisBungeePlugin playerDataManager() { + public PlayerDataManager playerDataManager() { return this.playerDataManager; } diff --git a/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java b/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java index 152c912..49f8c09 100644 --- a/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java +++ b/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java @@ -151,7 +151,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin, Con } @Override - public PlayerDataManager playerDataManager() { + public PlayerDataManager playerDataManager() { return this.playerDataManager; } diff --git a/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/VelocityPlayerDataManager.java b/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/VelocityPlayerDataManager.java index cb4fc86..95f35ce 100644 --- a/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/VelocityPlayerDataManager.java +++ b/proxies/velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/VelocityPlayerDataManager.java @@ -29,7 +29,7 @@ import net.kyori.adventure.text.Component; import java.util.concurrent.TimeUnit; -public class VelocityPlayerDataManager extends PlayerDataManager { +public class VelocityPlayerDataManager extends PlayerDataManager { public VelocityPlayerDataManager(RedisBungeePlugin plugin) { super(plugin); }