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:
parent
31c8b1d719
commit
04a9ee487c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user