@minecraft-docker/mcctl 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.5.0] - 2026-02-17
9
+
10
+ ### Added
11
+ - **Console Security Settings UI** - Online Mode and Whitelist settings in server detail page (#357, #358, #362)
12
+ - Toggle Online Mode on/off with safety confirmation dialog
13
+ - Toggle Whitelist on/off directly from server settings
14
+ - Real-time config updates via REST API
15
+
16
+ ### Fixed
17
+ - **API Memory Parameter** - Pass `--memory` parameter to `create-server.sh` when creating servers via REST API (#356, #360)
18
+ - **Console Player List Field** - Align player list field name (`players` to `list`) with backend API response format (#359, #361)
19
+ - **API Whitelist Remove RCON Fallback** - Detect RCON error in whitelist remove and fall back to direct file editing (#363, #364)
20
+ - RCON `whitelist remove` sometimes fails silently; now detects error response and edits whitelist.json directly
21
+
22
+ ### Infrastructure
23
+ - **Scripts**: Add `--memory` option support to `create-server.sh`
24
+ - **Template**: Add `ONLINE_MODE` section to server `config.env` template
25
+
8
26
  ## [2.4.1] - 2026-02-14
9
27
 
10
28
  ### Fixed
package/README.md CHANGED
@@ -77,22 +77,23 @@ mcctl logs myserver
77
77
 
78
78
  ## Changelog
79
79
 
80
+ ### v2.5.0 (2026-02-17)
81
+ - **feat(console)**: Add Online Mode and Whitelist security settings UI (#357, #358, #362)
82
+ - **fix(api)**: Pass memory parameter to create-server.sh (#356, #360)
83
+ - **fix(console)**: Align player list field name with backend (#359, #361)
84
+ - **fix(api)**: Detect RCON error in whitelist remove and fall back to file (#363, #364)
85
+
86
+ ### v2.4.1 (2026-02-14)
87
+ - **fix(ci)**: Fix mcctl-api npm publish missing workspace replacement for mod-source-modrinth
88
+
80
89
  ### v2.4.0 (2026-02-14)
81
90
  - **feat(cli)**: Add `mcctl upgrade` command for upgrading mcctl and all services (#326, #355)
82
91
  - **feat(cli)**: Add creeper ASCII banner with version check on `mcctl init` (#353, #354)
83
92
  - **feat(console)**: Implement Mods tab functionality (#351, #352)
84
- - **refactor(console)**: Rename 'Content' tab to 'Mods' in server detail page (#349, #350)
85
93
  - **feat(cli)**: Add `mcctl playit domain` subcommand (#347, #348)
86
- - **docs**: Update documentation for v2.4.0 with upgrade command and playit.gg guides
87
-
88
- ### v2.3.5 (2026-02-12)
89
- - **fix(shared)**: Use correct container name `playit-agent` in `getPlayitAgentStatus()` (#345, #346)
90
- - **fix(console)**: Add error feedback for playit start/stop actions (#343)
91
- - **fix(console)**: Improve playit section header layout and server domains display (#343, #344)
92
94
 
93
95
  ### v2.3.0 (2026-02-12) - External Play (playit.gg)
94
96
  - **feat(cli)**: Add `mcctl playit` subcommand - start/stop/status/setup (#273, #331)
95
- - **feat(cli)**: Add playit.gg setup option to `mcctl init` (#271, #329)
96
97
  - **feat(api)**: Add playit.gg status and control API endpoints (#292, #332)
97
98
  - **feat(console)**: Add playit.gg external access UI (#274, #333)
98
99
  - **feat(api)**: Add comprehensive audit logging to all mutating routes (#324, #325)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft-docker/mcctl",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "CLI tool for managing Docker Minecraft servers with mc-router",
5
5
  "type": "module",
6
6
  "bin": {
@@ -55,8 +55,8 @@
55
55
  ],
56
56
  "dependencies": {
57
57
  "@clack/prompts": "^0.8.0",
58
- "@minecraft-docker/mod-source-modrinth": "^2.4.1",
59
- "@minecraft-docker/shared": "^2.4.1",
58
+ "@minecraft-docker/mod-source-modrinth": "^2.5.0",
59
+ "@minecraft-docker/shared": "^2.5.0",
60
60
  "better-sqlite3": "^12.6.2",
61
61
  "commander": "^12.0.0",
62
62
  "js-yaml": "^4.1.0",
@@ -21,6 +21,7 @@
21
21
  # --modpack SLUG Modpack slug (required for MODRINTH/AUTO_CURSEFORGE)
22
22
  # --modpack-version VER Modpack version (optional)
23
23
  # --mod-loader LOADER Mod loader: fabric, forge, neoforge, quilt (optional)
24
+ # -m, --memory SIZE Memory allocation (e.g., 1G, 2G, 4G)
24
25
  # --no-whitelist Disable whitelist (whitelist is enabled by default)
25
26
  # --whitelist PLAYERS Initial whitelist players (comma-separated)
26
27
  # --no-start Don't start the server after creation
@@ -261,6 +262,7 @@ show_usage() {
261
262
  echo " --modpack SLUG Modpack slug (required for MODRINTH/AUTO_CURSEFORGE)"
262
263
  echo " --modpack-version VER Modpack version (optional)"
263
264
  echo " --mod-loader LOADER Mod loader: fabric, forge, neoforge, quilt (optional)"
265
+ echo " -m, --memory SIZE Memory allocation (e.g., 1G, 2G, 4G)"
264
266
  echo " --no-whitelist Disable whitelist (whitelist is enabled by default)"
265
267
  echo " --whitelist PLAYERS Initial whitelist players (comma-separated)"
266
268
  echo " --no-start Don't start the server after creation"
@@ -328,6 +330,10 @@ while [[ $# -gt 0 ]]; do
328
330
  MOD_LOADER="$2"
329
331
  shift 2
330
332
  ;;
333
+ -m|--memory)
334
+ MEMORY_SIZE="$2"
335
+ shift 2
336
+ ;;
331
337
  --no-whitelist)
332
338
  ENABLE_WHITELIST="false"
333
339
  shift
@@ -474,6 +480,12 @@ if [ -f "$CONFIG_FILE" ]; then
474
480
  sed -i "s/^LEVEL=.*/LEVEL=$SERVER_NAME/" "$CONFIG_FILE"
475
481
  echo " World directory: worlds/$SERVER_NAME"
476
482
 
483
+ # Apply memory if specified
484
+ if [ -n "$MEMORY_SIZE" ]; then
485
+ sed -i "s/^MEMORY=.*/MEMORY=$MEMORY_SIZE/" "$CONFIG_FILE"
486
+ echo " Memory: $MEMORY_SIZE"
487
+ fi
488
+
477
489
  # Apply version if specified
478
490
  if [ -n "$MC_VERSION" ]; then
479
491
  sed -i "s/^VERSION=.*/VERSION=$MC_VERSION/" "$CONFIG_FILE"