From 04a9ee487caf719aa67aa9d7b5a1f5f8af8b54e2 Mon Sep 17 00:00:00 2001 From: Zrips Date: Thu, 5 Jan 2023 18:31:00 +0200 Subject: [PATCH] variable length fix --- .../java/com/gamingmesh/jobs/commands/list/resetquesttotal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/commands/list/resetquesttotal.java b/src/main/java/com/gamingmesh/jobs/commands/list/resetquesttotal.java index d66edd83..daaf28e4 100644 --- a/src/main/java/com/gamingmesh/jobs/commands/list/resetquesttotal.java +++ b/src/main/java/com/gamingmesh/jobs/commands/list/resetquesttotal.java @@ -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 pl : Jobs.getPlayerManager().getPlayersCache().entrySet()) { pl.getValue().setDoneQuests(0); }