moorkop / mccy-engine

Provides a web based "Minecraft Server as a Service" (MCaaS?) to deploy Minecraft server containers on any Docker Swarm cluster or standalone Engine instance.
Apache License 2.0
12 stars 4 forks source link

Run non and/or arbitrary commands on a world #28

Open danpolanco opened 8 years ago

danpolanco commented 8 years ago

It would be great to either open an attached terminal to the game or perhaps one better, could we figure out what commands are possible and create a list of those?

One of the mods I have seems to do that. If you call something like /getcmdbook it'll give you an in game book of available commands. Perhaps calling /help and parsing that?

Pretty dang low priority on this guy.

itzg commented 8 years ago

This was actually one of my main goals when I tried to create a "container yard" :) While I'm looking I'll note that the Spotify library does indeed have [attach support[(https://github.com/spotify/docker-client/blob/master/src/main/java/com/spotify/docker/client/DockerClient.java#L1094).

danpolanco commented 8 years ago

Woot! Okay, so it shouldn't be too hard to implement then? Relatively...

I'll keep this one in mind as I work on the frontend as well.

sshipway commented 8 years ago

This would be a really excellent thing to have; especially when developing modules, or when running a one-off competitive game, being able to enter console commands and watch console logs is a big win. Of course you'd want the frontend to be able to restrict this feature to only people who own that instance...