Advertisement
NovaViper

Powershell Script progress

May 30th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Clear-History
  2. Clear-Host
  3. $consoleName="Console Master"
  4. $consoleVersion='1.0'
  5. $prefix="$consoleName $consoleVersion"
  6.  
  7. $a = (Get-Host).UI.RawUI
  8. $a.WindowTitle = "$prefix"
  9.  
  10. $test = [PSCustomObject]@{jar_path='Get-Location';jar_commands='';minecraft_version='';colorChoice = '';background_color='';foreground_color=''}
  11. $setpath = ''
  12.  
  13. Write-Host Welcome to $test.jar_path!
  14.  
  15. function setup {
  16. $a = (Get-Host).UI.RawUI
  17. $a.WindowTitle = "$prefix+: Setup (Jar: N/A, MC: N/A)"
  18.  
  19. Write-Host Welcome to $prefix!`nLet me get to know about your server better`n
  20. $jarFile = Read-Host –Prompt "Enter your server's .jar file w/o the extension"
  21. $minecraftVersion = Read-Host -Prompt "Enter your server's Minecraft version"
  22.  
  23. $readColorChoice = Read-Host "Would you like to use custom colors? (Y/N)"
  24. if(($readColorChoice).ToUpper().StartsWith("Y")){
  25. $colorAnswer = "true"
  26. Write-Host Yes
  27.  
  28. }elseif(($readColorChoice).ToUpper().StartsWith("N")){
  29. $colorAnswer = "false"
  30. Write-Host No
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement