Skip to content

MCGalaxy shortcuts, /main <level>, more MCGalaxy commands, texture hosting, biomes and Pterodactyl - #67

Merged
perronosaurio merged 8 commits into
masterfrom
mcgalaxy-parity
Oct 5, 2026
Merged

perronosaurio merged 8 commits into
masterfrom
mcgalaxy-parity

Conversation

@perronosaurio

@perronosaurio perronosaurio commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

What does this change?

MCGalaxy shortcuts. lib/commands/shortcuts.js maps MCGalaxy's shortcuts and aliases onto our commands (/z, /ld, /gen, /wcopy, /fg, /h, /o, /tor...), taken from the MCGalaxy source. Aliases can now carry arguments: /zadd runs /zone add, /cw runs /cuboid wire, /perbuild runs /map buildrank. A real command name always wins over an alias. /v and /pl now point to /paste and /place, as in MCGalaxy; /vanish keeps /hide and /plugins keeps /plist.

/main like MCGalaxy. /main <level> (Admin+) sets the main level and saves it in config/server.json; /main alone goes there. autoloadLevels and /autoload <level> [on|off] load more levels at startup.

Commands from MCGalaxy we were missing:

  • /vote with /yes and /no
  • /timer (on-screen countdown)
  • /pronouns (shown in /whois)
  • /quit and /ragequit
  • /alts (accounts sharing an IP)
  • /like and /dislike (shown in /mapinfo)
  • /replacenot, /triangle, /delete, and /static (repeats a drawing command until /abort)

The rest of the MCGalaxy commands still missing are niche (guns, possess, museum, image printing, brushes...).

Texture packs from the server itself. Files in texpacks/ are served over HTTP on the game port. /texture mypack.zip points players at them using publicAddress, or the Pterodactyl allocation address when that's empty. Only texpacks/<name>.zip|png is served; anything else gets a 404.

biomes generator. Plains, forests, deserts and snowy mountains, with rivers, beaches, caves with ores and lava, and oak, big oak and pine trees.

Pterodactyl.

  • The port is read from SERVER_PORT.
  • /restart exits and lets the panel start it again when P_SERVER_UUID is set.
  • The README has step-by-step setup.

README. The banner image is now at the top.

How did you test it?

  • npm run lint and npm test pass (60 tests). New tests cover:
    • shortcuts, including ones with arguments
    • /main <level> and /autoload
    • /vote, /pronouns, /alts and the ratings
    • /replacenot and /triangle
    • texture packs served on the game port, including a path traversal attempt returning 404
    • the new generator in the generator test
  • Tried it in game: next, with the demo server
  • Updated README.md, docs/ and CHANGELOG.md

lib/commands/shortcuts.js lists them per command. An alias can carry
arguments ('zadd add' runs /zone add), and a real command name always
wins over an alias. /v and /pl now mean /paste and /place, as in MCGalaxy.
/vote, /timer, /pronouns, /quit, /ragequit, /alts, /like, /dislike,
/replacenot, /triangle, /delete and /static. Levels listed in
autoloadLevels load at startup.
Files in texpacks/ are served over HTTP on the same port as the game,
and /texture mypack.zip points players at them (publicAddress, or the
Pterodactyl allocation). The biomes generator makes plains, forests,
deserts and snowy mountains with rivers, caves and ores.
Also reads the port from SERVER_PORT and lets the panel handle /restart.
@perronosaurio
perronosaurio merged commit bc04bdf into master Oct 5, 2026
6 checks passed
@perronosaurio
perronosaurio deleted the mcgalaxy-parity branch October 5, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant