From d74071acdaa5c0626b4bccc68321e092fd0a6d57 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sat, 4 Nov 2017 17:19:34 +0100 Subject: [PATCH] Remove a method from the API --- .../Minepacks/Bukkit/API/MinepacksPlugin.java | 9 --------- src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java | 6 ------ 2 files changed, 15 deletions(-) diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/API/MinepacksPlugin.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/API/MinepacksPlugin.java index b88fd61..17a04f9 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/API/MinepacksPlugin.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/API/MinepacksPlugin.java @@ -75,15 +75,6 @@ public interface MinepacksPlugin */ void openBackpack(@NotNull final Player opener, @Nullable final Backpack backpack, boolean editable); - /** - * Retrieves the backpack for a given player. - * This method runs sync! If the requested backpack is not in the cache it will block you server! Use with extreme care! - * - * @param owner The player who's backpack should be retrieved. - * @return The backpack of the given player. - */ - @Nullable Backpack getBackpack(@NotNull final OfflinePlayer owner); - /** * Retrieves the backpack for a given player. * This method only returns a backpack if it is in the cache. diff --git a/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java b/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java index 5c10471..fce1d4c 100644 --- a/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java +++ b/src/at/pcgamingfreaks/Minepacks/Bukkit/Minepacks.java @@ -210,12 +210,6 @@ public void openBackpack(@NotNull final Player opener, @Nullable final Backpack backpack.open(opener, editable); } - @Override - public @Nullable Backpack getBackpack(@NotNull OfflinePlayer owner) - { - return database.getBackpack(owner, false); - } - @Override public @Nullable Backpack getBackpackCachedOnly(@NotNull OfflinePlayer owner) {