From 618ce84278f8ee6205e2e60990211e3ba9ce9910 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 3 Dec 2021 16:56:44 +0100 Subject: [PATCH 1/2] Get Player Signed-off-by: Chaoscaot --- SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java index f8f2bcb..900c118 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java @@ -21,6 +21,8 @@ package de.steamwar.sql; import de.steamwar.core.Core; import org.bukkit.Bukkit; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; import java.sql.ResultSet; import java.sql.SQLException; @@ -122,4 +124,8 @@ public class SteamwarUser { }, id); return user; } + + public static SteamwarUser get(Player player) { + return get(player.getUniqueId()); + } } From bbdc8a52afac5974f3398250281a0fd082dabe1f Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 3 Dec 2021 16:57:09 +0100 Subject: [PATCH 2/2] Get Player Signed-off-by: Chaoscaot --- SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java | 1 - 1 file changed, 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java index 900c118..1a7ed6f 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SteamwarUser.java @@ -21,7 +21,6 @@ package de.steamwar.sql; import de.steamwar.core.Core; import org.bukkit.Bukkit; -import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import java.sql.ResultSet;