mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 20:29:20 +00:00
19 lines
No EOL
415 B
Java
19 lines
No EOL
415 B
Java
package com.earth2me.essentials;
|
|
|
|
import org.bukkit.Bukkit;
|
|
import org.bukkit.Location;
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
public class PlayerTarget implements ITarget {
|
|
private final String name;
|
|
|
|
public PlayerTarget(Player entity) {
|
|
this.name = entity.getName();
|
|
}
|
|
|
|
@Override
|
|
public Location getLocation() {
|
|
return Bukkit.getServer().getPlayerExact(name).getLocation();
|
|
}
|
|
} |