mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-06 11:24:39 +08:00
Use world's sea level for depth command (#3268)
This commit is contained in:
parent
02e6b5f1b3
commit
a93ca9b7bc
@ -13,7 +13,7 @@ public class Commanddepth extends EssentialsCommand {
|
||||
|
||||
@Override
|
||||
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
|
||||
final int depth = user.getLocation().getBlockY() - 63;
|
||||
final int depth = user.getLocation().getBlockY() - user.getWorld().getSeaLevel();
|
||||
if (depth > 0) {
|
||||
user.sendMessage(tl("depthAboveSea", depth));
|
||||
} else if (depth < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user