Don't send mvv url response to console twice when run from console.

This commit is contained in:
Jeremy Wood 2019-01-31 22:03:11 -05:00
parent b201b09719
commit 8b358b0955

View File

@ -18,6 +18,7 @@ import com.onarandombox.MultiverseCore.utils.webpaste.PasteServiceType;
import com.onarandombox.MultiverseCore.utils.webpaste.URLShortener; import com.onarandombox.MultiverseCore.utils.webpaste.URLShortener;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.permissions.PermissionDefault; import org.bukkit.permissions.PermissionDefault;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
@ -170,7 +171,9 @@ public class VersionCommand extends MultiverseCommand {
return; return;
} }
sender.sendMessage("Version info dumped here: " + ChatColor.GREEN + pasteUrl); if (!(sender instanceof ConsoleCommandSender)) {
sender.sendMessage("Version info dumped here: " + ChatColor.GREEN + pasteUrl);
}
Logging.info("Version info dumped here: %s", pasteUrl); Logging.info("Version info dumped here: %s", pasteUrl);
} }
} }