mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-24 06:06:45 +01:00
41 lines
903 B
Java
41 lines
903 B
Java
package com.plotsquared.bukkit.object;
|
|
|
|
import java.util.UUID;
|
|
|
|
import org.bukkit.OfflinePlayer;
|
|
|
|
import com.intellectualcrafters.plot.object.OfflinePlotPlayer;
|
|
|
|
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(final OfflinePlayer player) {
|
|
this.player = player;
|
|
}
|
|
|
|
@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();
|
|
}
|
|
}
|