Fixed a bug in /papi installed

This commit is contained in:
darbyjack 2018-10-20 15:30:10 -05:00
parent 556faf4290
commit 90bc3c8da1

View File

@ -365,7 +365,12 @@ public class ExpansionCloudCommands implements CommandExecutor {
JSONMessage line = JSONMessage.create(msg); JSONMessage line = JSONMessage.create(msg);
line.tooltip(hover); 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); line.send(p);
} }