From 981b2e70dbe09ab978d7869095adf6981cc7539e Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 29 Oct 2016 19:20:42 +0200 Subject: [PATCH] Fixed return type --- src/main/java/buttondevteam/lib/TBMCPlayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/buttondevteam/lib/TBMCPlayer.java b/src/main/java/buttondevteam/lib/TBMCPlayer.java index 7181405..65fe19d 100644 --- a/src/main/java/buttondevteam/lib/TBMCPlayer.java +++ b/src/main/java/buttondevteam/lib/TBMCPlayer.java @@ -210,7 +210,7 @@ public class TBMCPlayer implements AutoCloseable { * The TBMCPlayer subclass * @return The player as a subtype of TBMCPlayer */ - public static TBMCPlayer getPlayerAs(OfflinePlayer p, Class cl) { + public static T getPlayerAs(OfflinePlayer p, Class cl) { return getPlayer(p).asPluginPlayer(cl); } @@ -225,7 +225,7 @@ public class TBMCPlayer implements AutoCloseable { * The TBMCPlayer subclass * @return The player as a subtype of TBMCPlayer */ - public static TBMCPlayer getPlayerAs(UUID uuid, Class cl) { + public static T getPlayerAs(UUID uuid, Class cl) { return getPlayer(uuid).asPluginPlayer(cl); }