mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Forgot to push Essentials spawn changes.
This commit is contained in:
parent
66911bb0a9
commit
35783ee429
@ -27,7 +27,7 @@ public class Commandspawn extends EssentialsCommand
|
||||
charge.isAffordableFor(user);
|
||||
if (args.length > 0 && user.isAuthorized("essentials.spawn.others"))
|
||||
{
|
||||
final User otherUser = getPlayer(server, args, 0);
|
||||
final User otherUser = getPlayer(server, user, args, 0);
|
||||
respawn(otherUser, charge);
|
||||
if (!otherUser.equals(user))
|
||||
{
|
||||
@ -49,7 +49,7 @@ public class Commandspawn extends EssentialsCommand
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final User user = getPlayer(server, args, 0);
|
||||
final User user = getPlayer(server, args, 0, true, false);
|
||||
respawn(user, null);
|
||||
user.sendMessage(_("teleportAtoB", Console.NAME, "spawn"));
|
||||
sender.sendMessage(_("teleporting"));
|
||||
|
Loading…
Reference in New Issue
Block a user