Fixed a bug in /papi installed

This commit is contained in:
darbyjack 2018-10-20 15:30:10 -05:00
parent 556faf4290
commit 90bc3c8da1
1 changed files with 6 additions and 1 deletions

View File

@ -365,7 +365,12 @@ public class ExpansionCloudCommands implements CommandExecutor {
JSONMessage line = JSONMessage.create(msg);
line.tooltip(hover);
line.suggestCommand("/papi ecloud info " + expansion.getValue().getName());
if (expansion.getValue().shouldUpdate()) {
line.suggestCommand("/papi ecloud download " + expansion.getValue().getName());
}
else {
line.suggestCommand("/papi ecloud info " + expansion.getValue().getName());
}
line.send(p);
}