mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-26 11:07:55 +01:00
Allow yaw & pitch in /tppos
This commit is contained in:
parent
4811e46dd6
commit
b2394048fa
@ -26,6 +26,12 @@ public class Commandtppos extends EssentialsCommand
|
||||
int y = Integer.parseInt(args[1]);
|
||||
int z = Integer.parseInt(args[2]);
|
||||
Location l = new Location(user.getWorld(), x, y, z);
|
||||
if (args.length > 3) {
|
||||
l.setYaw(Float.parseFloat(args[3]));
|
||||
}
|
||||
if (args.length > 4) {
|
||||
l.setPitch(Float.parseFloat(args[4]));
|
||||
}
|
||||
Trade charge = new Trade(this.getName(), ess);
|
||||
charge.isAffordableFor(user);
|
||||
user.sendMessage(Util.i18n("teleporting"));
|
||||
|
@ -330,7 +330,7 @@ commands:
|
||||
usage: /<command> <player>
|
||||
tppos:
|
||||
description: Teleport to coordinates.
|
||||
usage: /<command> <x> <y> <z>
|
||||
usage: /<command> <x> <y> <z> [yaw] [pitch]
|
||||
tptoggle:
|
||||
description: Blocks all forms of teleportation.
|
||||
usage: /<command>
|
||||
|
Loading…
Reference in New Issue
Block a user