What this does is re-enables and patches the console check to work on environments that are not headless (meaning they have a display, keyboard, or mouse) and if they support the Desktop AWT apis.
This allows the application to run on headless servers but blocks people double clicking on windows the jar file.
This was tested on a Windows 8.1 (x64) machine running the latest Java 8 update (oracle JVM), with and without the -Djava.awt.headless=true flag.
EDIT:
This is my first PR to the Glowstone project, so forgive me If I have not followed protocol correctly.
Addresses #586
What this does is re-enables and patches the console check to work on environments that are not headless (meaning they have a display, keyboard, or mouse) and if they support the Desktop AWT apis. This allows the application to run on headless servers but blocks people double clicking on windows the jar file.
This was tested on a Windows 8.1 (x64) machine running the latest Java 8 update (oracle JVM), with and without the -Djava.awt.headless=true flag.
EDIT:
This is my first PR to the Glowstone project, so forgive me If I have not followed protocol correctly.