Repository navigation
MCGalaxy shortcuts, /main <level>, more MCGalaxy commands, texture hosting, biomes and Pterodactyl - #67
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
MCGalaxy shortcuts.
lib/commands/shortcuts.jsmaps 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:/zaddruns/zone add,/cwruns/cuboid wire,/perbuildruns/map buildrank. A real command name always wins over an alias./vand/plnow point to/pasteand/place, as in MCGalaxy;/vanishkeeps/hideand/pluginskeeps/plist./main like MCGalaxy.
/main <level>(Admin+) sets the main level and saves it inconfig/server.json;/mainalone goes there.autoloadLevelsand/autoload <level> [on|off]load more levels at startup.Commands from MCGalaxy we were missing:
/votewith/yesand/no/timer(on-screen countdown)/pronouns(shown in/whois)/quitand/ragequit/alts(accounts sharing an IP)/likeand/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.zippoints players at them usingpublicAddress, or the Pterodactyl allocation address when that's empty. Onlytexpacks/<name>.zip|pngis served; anything else gets a 404.biomesgenerator. Plains, forests, deserts and snowy mountains, with rivers, beaches, caves with ores and lava, and oak, big oak and pine trees.Pterodactyl.
SERVER_PORT./restartexits and lets the panel start it again whenP_SERVER_UUIDis set.README. The banner image is now at the top.
How did you test it?
npm run lintandnpm testpass (60 tests). New tests cover:/main <level>and/autoload/vote,/pronouns,/altsand the ratings/replacenotand/triangle