Fixed return type
This commit is contained in:
parent
ee40f7b582
commit
981b2e70db
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ public class TBMCPlayer implements AutoCloseable {
|
||||||
* The TBMCPlayer subclass
|
* The TBMCPlayer subclass
|
||||||
* @return The player as a subtype of TBMCPlayer
|
* @return The player as a subtype of TBMCPlayer
|
||||||
*/
|
*/
|
||||||
public static <T extends TBMCPlayer> TBMCPlayer getPlayerAs(OfflinePlayer p, Class<T> cl) {
|
public static <T extends TBMCPlayer> T getPlayerAs(OfflinePlayer p, Class<T> cl) {
|
||||||
return getPlayer(p).asPluginPlayer(cl);
|
return getPlayer(p).asPluginPlayer(cl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ public class TBMCPlayer implements AutoCloseable {
|
||||||
* The TBMCPlayer subclass
|
* The TBMCPlayer subclass
|
||||||
* @return The player as a subtype of TBMCPlayer
|
* @return The player as a subtype of TBMCPlayer
|
||||||
*/
|
*/
|
||||||
public static <T extends TBMCPlayer> TBMCPlayer getPlayerAs(UUID uuid, Class<T> cl) {
|
public static <T extends TBMCPlayer> T getPlayerAs(UUID uuid, Class<T> cl) {
|
||||||
return getPlayer(uuid).asPluginPlayer(cl);
|
return getPlayer(uuid).asPluginPlayer(cl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue