mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-10 19:25:11 +00:00
Fix delay not working in /spawn (#4335)
This commit is contained in:
parent
a098055fc9
commit
435ac80ff9
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ public class Commandspawn extends EssentialsCommand {
|
|||
});
|
||||
respawn(user.getSource(), user, otherUser, charge, commandLabel, future);
|
||||
} else {
|
||||
respawn(user.getSource(), null, user, charge, commandLabel, new CompletableFuture<>());
|
||||
respawn(user.getSource(), user, user, charge, commandLabel, new CompletableFuture<>());
|
||||
}
|
||||
|
||||
throw new NoChargeException();
|
||||
|
|
|
@ -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() {
|
||||
return controller;
|
||||
|
|
Loading…
Reference in a new issue