diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java index 37e1f8b7..6a4e6047 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java @@ -134,5 +134,10 @@ public void run() throws Exception { writer.append(ServerWrapper.class.getName()); writer.append("\n"); } + if(JVMHelper.OS_TYPE != JVMHelper.OS.MUSTDIE) { + if(!startScript.toFile().setExecutable(true)) { + LogHelper.error("Failed to set executable %s", startScript); + } + } } }