Improve documentation of BukkitMain#wrapPlayer and improve generic types

This commit is contained in:
Alexander Söderberg
2020-06-22 15:45:57 +02:00
parent 1dcf8d3995
commit 2d6e6ceaeb
4 changed files with 71 additions and 38 deletions

View File

@ -121,7 +121,7 @@ public class BukkitUtil extends WorldUtil {
lastPlotPlayer = null;
}
public static PlotPlayer<?> getPlayer(@NonNull final OfflinePlayer op) {
public static PlotPlayer<Player> getPlayer(@NonNull final OfflinePlayer op) {
if (op.isOnline()) {
return getPlayer(op.getPlayer());
}