Rewrite update system

This commit is contained in:
2026-05-19 16:47:00 -04:00
parent bb5bef7166
commit a7a21c89b6
9 changed files with 571 additions and 181 deletions
@@ -27,7 +27,7 @@ import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@CommandPermissions(source = RequiredCommandSource.ANY)
@CommandParameters(name = "plex", usage = "/<command> [reload | redis | modules [reload]]", description = "Show information about Plex or reload it")
@CommandParameters(name = "plex", usage = "/<command> [reload | redis | update | modules [reload | update]]", description = "Show information about Plex or reload it")
public class PlexCMD extends ServerCommand
{
// Don't modify this command
@@ -132,11 +132,11 @@ public class PlexCMD extends ServerCommand
{
if (args.length == 1)
{
return Arrays.asList("reload", "redis", "modules");
return Arrays.asList("reload", "redis", "modules", "update");
}
else if (args[0].equalsIgnoreCase("modules"))
{
return List.of("reload");
return Arrays.asList("reload", "update");
}
return Collections.emptyList();
}
@@ -161,4 +161,4 @@ public class PlexCMD extends ServerCommand
assert player != null;
return PlexUtils.DEVELOPERS.contains(player.getUniqueId().toString());
}
}
}