mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-07 15:16:41 +02:00
[Fix] Print correct sender name on /spawn player from console.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.earth2me.essentials.spawn;
|
package com.earth2me.essentials.spawn;
|
||||||
|
|
||||||
import static com.earth2me.essentials.I18n._;
|
import static com.earth2me.essentials.I18n._;
|
||||||
|
import com.earth2me.essentials.Console;
|
||||||
import com.earth2me.essentials.Trade;
|
import com.earth2me.essentials.Trade;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.commands.EssentialsCommand;
|
import com.earth2me.essentials.commands.EssentialsCommand;
|
||||||
@@ -50,7 +51,7 @@ public class Commandspawn extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
final User user = getPlayer(server, args, 0);
|
final User user = getPlayer(server, args, 0);
|
||||||
respawn(user, null);
|
respawn(user, null);
|
||||||
user.sendMessage(_("teleportAtoB", user.getDisplayName(), "spawn"));
|
user.sendMessage(_("teleportAtoB", Console.NAME, "spawn"));
|
||||||
sender.sendMessage(_("teleporting"));
|
sender.sendMessage(_("teleporting"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user