mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Fix delay not working in /spawn (#4335)
This commit is contained in:
parent
a098055fc9
commit
435ac80ff9
@ -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 New Issue
Block a user