Moved more packaged based on feedback

This commit is contained in:
MattBDev
2020-04-10 20:19:18 -04:00
parent 5be2dfa747
commit dfa977a020
437 changed files with 2995 additions and 2871 deletions

View File

@ -0,0 +1,38 @@
package com.plotsquared.bukkit.player;
import com.plotsquared.player.OfflinePlotPlayer;
import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.NotNull;
import java.util.UUID;
public class BukkitOfflinePlayer implements OfflinePlotPlayer {
public final OfflinePlayer player;
/**
* Please do not use this method. Instead use BukkitUtil.getPlayer(Player),
* as it caches player objects.
*
* @param player
*/
public BukkitOfflinePlayer(OfflinePlayer player) {
this.player = player;
}
@NotNull @Override public UUID getUUID() {
return this.player.getUniqueId();
}
@Override public long getLastPlayed() {
return this.player.getLastPlayed();
}
@Override public boolean isOnline() {
return this.player.isOnline();
}
@Override public String getName() {
return this.player.getName();
}
}