Fix delay not working in /spawn (#4335)

This commit is contained in:
Josh Roy 2021-07-09 11:55:52 -04:00 committed by GitHub
parent a098055fc9
commit 435ac80ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class Commandspawn extends EssentialsCommand {
}); });
respawn(user.getSource(), user, otherUser, charge, commandLabel, future); respawn(user.getSource(), user, otherUser, charge, commandLabel, future);
} else { } else {
respawn(user.getSource(), null, user, charge, commandLabel, new CompletableFuture<>()); respawn(user.getSource(), user, user, charge, commandLabel, new CompletableFuture<>());
} }
throw new NoChargeException(); throw new NoChargeException();

View File

@ -33,7 +33,7 @@ public class UserTeleportSpawnEvent extends Event implements Cancellable {
} }
/** /**
* @return The user who caused teleport to spawn or null if there is none * @return The user who caused teleport to spawn or null if the teleport was caused by the console.
*/ */
public IUser getController() { public IUser getController() {
return controller; return controller;