From d9aee50cd1ab5d37b5e849136283db05301f29c1 Mon Sep 17 00:00:00 2001 From: szymon Date: Sun, 13 Sep 2020 20:38:58 +0200 Subject: [PATCH] Renamed BackupContext.Builder#setServer -> saveServer --- .../textile_backup/commands/create/StartBackupCommand.java | 4 ++-- .../szum123321/textile_backup/core/create/BackupContext.java | 2 +- .../textile_backup/core/create/BackupScheduler.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/szum123321/textile_backup/commands/create/StartBackupCommand.java b/src/main/java/net/szum123321/textile_backup/commands/create/StartBackupCommand.java index c5f3df8..5ed374b 100644 --- a/src/main/java/net/szum123321/textile_backup/commands/create/StartBackupCommand.java +++ b/src/main/java/net/szum123321/textile_backup/commands/create/StartBackupCommand.java @@ -43,7 +43,7 @@ public class StartBackupCommand { .setCommandSource(ctx.getSource()) .setComment(StringArgumentType.getString(ctx, "comment")) .guessInitiator() - .setSave() + .saveServer() .build() ) ); @@ -58,7 +58,7 @@ public class StartBackupCommand { new BackupContext.Builder() .setCommandSource(source) .guessInitiator() - .setSave() + .saveServer() .build() ) ); diff --git a/src/main/java/net/szum123321/textile_backup/core/create/BackupContext.java b/src/main/java/net/szum123321/textile_backup/core/create/BackupContext.java index efb4678..b458d3f 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/BackupContext.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/BackupContext.java @@ -105,7 +105,7 @@ public class BackupContext { return this; } - public Builder setSave() { + public Builder saveServer() { this.save = true; return this; } diff --git a/src/main/java/net/szum123321/textile_backup/core/create/BackupScheduler.java b/src/main/java/net/szum123321/textile_backup/core/create/BackupScheduler.java index e964612..753ca94 100644 --- a/src/main/java/net/szum123321/textile_backup/core/create/BackupScheduler.java +++ b/src/main/java/net/szum123321/textile_backup/core/create/BackupScheduler.java @@ -43,7 +43,7 @@ public class BackupScheduler { new BackupContext.Builder() .setServer(server) .setInitiator(BackupContext.BackupInitiator.Timer) - .setSave() + .saveServer() .build() ) ); @@ -61,7 +61,7 @@ public class BackupScheduler { new BackupContext.Builder() .setServer(server) .setInitiator(BackupContext.BackupInitiator.Timer) - .setSave() + .saveServer() .build() ) );