Location | Player Location API

Location is a Waterfall / Velocity plugin that allows users and plugin developers to get the current location of a connected player.

Supports Minecraft 1.8 - 1.15.2

Download
Location is available on GitHub

Commands

  • /location debug [true|false]
    Permission: location.debug.base

  • /location get <username>
    Permission: location.get.base

  • /location help
    Permission: location.help.base

  • /location information
    Permission: location.information.base

  • /location reload
    Permission: location.reload.base

Maven

<repository>
    <id>lxgaming</id>
    <url>https://dl.bintray.com/lxgaming/maven</url>
</repository>

<dependency>
    <groupId>io.github.lxgaming</groupId>
    <artifactId>location-api</artifactId>
    <version>1.1.0</version>
    <scope>provided</scope>
</dependency>

Gradle

repositories {
    maven {
        name = "lxgaming"
        url = "https://dl.bintray.com/lxgaming/maven"
    }
}

dependencies {
    provided("io.github.lxgaming:location-api:1.1.0")
}

Usage

User user = Location.getInstance().getUser(Username or UUID);
double x = user.getX();
double y = user.getY();
double z = user.getZ();
float pitch = user.getPitch();
float yaw = user.getYaw();
int dimension = getDimension();

License
Location is licensed under the Apache 2.0 license.

1 Like