Skip to content
Permalink
Browse files

Fixed return command requiring an argument incorrectly

  • Loading branch information
DarkArc committed Jan 4, 2020
1 parent 0061c9e commit 30558a5f2a1e94beaea3f1b47289329e874aab9e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/com/sk89q/commandbook/component/locations/TeleportCommands.java
@@ -161,7 +161,8 @@ public void put(CommandSender sender,

@Command(name = "return", aliases = {"ret"}, desc = "Teleport back to your last location")
@CommandPermissions({"commandbook.return"})
public void ret(Player sendingPlayer, @Arg(desc = "players to teleport") SinglePlayerTarget player) throws CommandException {
public void ret(Player sendingPlayer,
@Arg(desc = "players to teleport", def = "") SinglePlayerTarget player) throws CommandException {
if (player == null) {
player = new SinglePlayerTarget(sendingPlayer);
}

0 comments on commit 30558a5

Please sign in to comment.
You can’t perform that action at this time.