mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-05-18 02:21:21 +00:00
9a23f806fe
Gradle is better than Maven, don't @ me. okay but actually it's [faster](https://www.youtube.com/watch?v=atuFSv2bLa8&feature=youtu.be&t=77), compiles and tests in parallel more efficiently, and more epic stuff).
19 lines
421 B
Java
19 lines
421 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(final Player entity) {
|
|
this.name = entity.getName();
|
|
}
|
|
|
|
@Override
|
|
public Location getLocation() {
|
|
return Bukkit.getServer().getPlayerExact(name).getLocation();
|
|
}
|
|
}
|