From 618ce84278f8ee6205e2e60990211e3ba9ce9910 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 3 Dec 2021 16:56:44 +0100 Subject: [PATCH] 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()); + } }