Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 613d0bd

Browse files
committed
invert dump direction
1 parent 62e27eb commit 613d0bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/cat/nyaa/HamsterEcoHelper/CommandHandler.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ public void userRetrieve(CommandSender sender, Arguments args) {
157157

158158
@SubCommand(value = "dump", permission = "heh.admin")
159159
public void databaseDump(CommandSender sender, Arguments args) {
160-
String from = args.next();
161-
RelationalDB todb = plugin.database.database;
162-
RelationalDB fromdb = DatabaseUtils.get(from).connect();
160+
String to = args.next();
161+
RelationalDB todb = DatabaseUtils.get(to).connect();
162+
RelationalDB fromdb = plugin.database.database;
163163
DatabaseUtils.dumpDatabaseAsync(plugin, fromdb, todb, (cls, r) -> {
164164
if (cls != null) {
165-
msg(sender, "internal.info.dump.ing", cls.getName(), from, r);
165+
msg(sender, "internal.info.dump.ing", cls.getName(), to, r);
166166
} else {
167167
fromdb.close();
168168
if(r == 0){
169-
msg(sender, "internal.info.dump.finished", from);
169+
msg(sender, "internal.info.dump.finished", to);
170170
} else {
171171
msg(sender, "internal.error.command_exception");
172172
}

0 commit comments

Comments
 (0)