Skip to content

Commit

Permalink
8.3.0
Browse files Browse the repository at this point in the history
- update mc server updater, now supports more software, thanks to @Minionguyjpro
- remove ssh logging while stopping
  • Loading branch information
Osiris-Team committed Oct 1, 2024
1 parent a40a2c7 commit 92f1958
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ AUTO-GENERATED FILE, CHANGES SHOULD BE DONE IN ./JPM.java or ./src/main/java/JPM
<modelVersion>4.0.0</modelVersion>
<groupId>com.osiris.autoplug.client</groupId>
<artifactId>AutoPlug-Client</artifactId>
<version>8.2.12</version>
<version>8.3.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>8</java.version>
<version>8.2.12</version>
<version>8.3.0</version>
<main-class>com.osiris.autoplug.client.Main</main-class>
<slf4j.version>2.0.13</slf4j.version>
<name>AutoPlug-Client</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/JPM.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ThisProject(List<String> args) {
// Override default configurations
this.groupId = "com.osiris.autoplug.client";
this.artifactId = "AutoPlug-Client";
this.version = "8.2.12";
this.version = "8.3.0";
this.mainClass = "com.osiris.autoplug.client.Main";
this.jarName = "AutoPlug-Client-original.jar";
this.fatJarName = "AutoPlug-Client.jar";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
new UtilsTasks().printResultsWhenDone(myManager.manager);
return true;
} else if (command.equals(".ssh stop")) {
SSHManager.stop();
SSHManager.stop(true);
return true;
} else if (command.equals(".ssh start")) {
SSHManager.start(true);
return true;
} else if (command.equals(".ssh restart")) {
SSHManager.stop();
SSHManager.stop(true);
SSHManager.start(true);
return true;
} else if (command.equals(".ping")) { // This is used for the SSH test, as well as for users to test if AutoPlug is running.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ public static synchronized boolean start(boolean force) {
return false;
}
}

public static boolean stop() {
return stop(false);
}

public static synchronized boolean stop() {
public static synchronized boolean stop(boolean printInfo) {
if (!isRunning()) {
AL.info("SSH Server is not running!");
if(printInfo) AL.info("SSH Server is not running!");
return true;
}
try {
Expand Down

0 comments on commit 92f1958

Please sign in to comment.