Fix /pssp scheduler <timeframe> completion

This commit is contained in:
JeremyStar™ 2024-04-30 21:51:43 +02:00
parent add5db8fc0
commit 6dbb62238e
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -117,7 +117,7 @@ public class PluginCommand extends CommandBase {
if (commandSender.hasPermission("atc.commands.pickshadow")) {
ArrayList<String[]> completion = new ArrayList<>();
completion.add(new String[]{ "reloadconfig", "reloaddata", "gc", "scheduler", "playerinfo" });
if (args.length > 2) {
if (args.length > 1) {
if (args[0].equals("scheduler")) {
completion.add(new String[]{"minutely", "hourly"});
}