startSQLAccountManager.ps1 794 B

123456789101112131415161718192021222324
  1. $OutputEncoding = New-Object -typename System.Text.UTF8Encoding
  2. $a = (Get-Host).UI.RawUI
  3. $a.WindowTitle = "L2J - SQL Account Manager"
  4. java "-Djava.util.logging.config.file=console.cfg" -cp "./../libs/*;l2jlogin.jar" com.l2jserver.tools.accountmanager.SQLAccountManager 2> $null
  5. if ($LASTEXITCODE -like 0)
  6. {
  7. ""
  8. "Execution succesful"
  9. ""
  10. }
  11. else
  12. {
  13. ""
  14. "An error has ocurred while running the L2J Account Manager!"
  15. ""
  16. "Possible reasons for this to happen:"
  17. ""
  18. "Missing .jar files or ../libs directory."
  19. "- MySQL server not running or incorrect MySQL settings:"
  20. " check ./config/loginserver.properties"
  21. "- Wrong data types or values out of range were provided:"
  22. " specify correct values for each required field"
  23. ""
  24. }