1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

variable length fix

This commit is contained in:
Zrips 2023-01-05 18:31:00 +02:00
parent 31c8b1d719
commit 04a9ee487c

View File

@ -20,7 +20,7 @@ public class resetquesttotal implements Cmd {
return true;
}
if (args[0].equalsIgnoreCase("all")) {
if (args.length > 0 && args[0].equalsIgnoreCase("all")) {
for (Entry<UUID, JobsPlayer> pl : Jobs.getPlayerManager().getPlayersCache().entrySet()) {
pl.getValue().setDoneQuests(0);
}