Skip to content

Commit 4ec3894

Browse files
committed
Remove extra backup starting println
1 parent 4fafd01 commit 4ec3894

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/main/java/net/polarbub/botv2/server/git.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public static List<String> gitCommit(String comment) {
105105
} else if(line.equals("nothing to commit, working tree clean")) {
106106
retur.add("Nothing to backup");
107107
}
108-
System.out.println(line);
109108
}
110109
p.waitFor();
111110

@@ -141,7 +140,7 @@ public static List<String> backup(String comment) {
141140
}
142141
}
143142

144-
Main.serverThread.commandUse("say Backup Happening!");
143+
Main.serverThread.commandUse("say Backup Happening");
145144
Main.serverThread.commandUse("save-off");
146145
Main.serverThread.commandUse("save-all flush");
147146

@@ -160,8 +159,6 @@ public static List<String> backup(String comment) {
160159
e.printStackTrace();
161160
}
162161

163-
Main.serverThread.commandUse("say Backup started");
164-
165162
List<String> retur = gitCommit(comment);
166163
for (String s : retur) {
167164
Main.serverThread.commandUse("say " + s);

src/main/java/net/polarbub/botv2/server/server.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ public void run() {
9696
found = true;
9797
}
9898

99-
100-
10199
if (line.length() >= 33) {
102100
String trimmedLine = line.substring(33);
103101
for (String player : players) if (!found && trimmedLine.startsWith(player)) {

0 commit comments

Comments
 (0)