Remove a method from the API

This commit is contained in:
GeorgH93 2017-11-04 17:19:34 +01:00
parent 86aa0e5630
commit d74071acda
2 changed files with 0 additions and 15 deletions

View File

@ -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.

View File

@ -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)
{