mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-28 08:24:25 +00:00
Fix the gap
This commit is contained in:
parent
e706614a3b
commit
6bc3d7f0f4
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,6 @@ public class Commandtp extends EssentialsCommand
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
sender.sendMessage(_("teleporting"));
|
|
||||||
final User target = getPlayer(server, args, 0);
|
final User target = getPlayer(server, args, 0);
|
||||||
if (args.length == 2)
|
if (args.length == 2)
|
||||||
{
|
{
|
||||||
|
@ -118,6 +117,9 @@ public class Commandtp extends EssentialsCommand
|
||||||
final Location location = new Location(target.getWorld(), x, y, z);
|
final Location location = new Location(target.getWorld(), x, y, z);
|
||||||
target.getTeleport().now(location, false, TeleportCause.COMMAND);
|
target.getTeleport().now(location, false, TeleportCause.COMMAND);
|
||||||
target.sendMessage(_("teleporting"));
|
target.sendMessage(_("teleporting"));
|
||||||
|
} else {
|
||||||
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
sender.sendMessage(_("teleporting"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue