Fixed space command sender name
This commit is contained in:
parent
66d5b6e49b
commit
eb7a83223a
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ public class CommandSpace extends CommandBase {
|
|||
|
||||
@Override
|
||||
public void processCommand(ICommandSender sender, String[] args) {
|
||||
if (sender == null) { return; }
|
||||
MinecraftServer server = MinecraftServer.getServer();
|
||||
|
||||
// set defaults
|
||||
|
@ -88,7 +89,7 @@ public class CommandSpace extends CommandBase {
|
|||
WarpDrive.addChatMessage(sender, message);
|
||||
WarpDrive.logger.info(message);
|
||||
if (sender != player) {
|
||||
WarpDrive.addChatMessage(player, sender + " is teleporting you to dimension " + targetDimensionId); // + ":" + targetWorld.getWorldInfo().getWorldName());
|
||||
WarpDrive.addChatMessage(player, sender.getCommandSenderName() + " is teleporting you to dimension " + targetDimensionId); // + ":" + targetWorld.getWorldInfo().getWorldName());
|
||||
}
|
||||
|
||||
// find a good spot
|
||||
|
|
Loading…
Reference in a new issue