Open theblazehen opened 1 year ago
@theblazehen Hi, may I ask should we run /gamerule keepInventory true
when the server is ready?
@GoingMyWay That's not necessary, as the bot runs it by itself. Note that you do need to op the bot in order to allow it to use those functions
@GoingMyWay That's not necessary, as the bot runs it by itself. Note that you do need to op the bot in order to allow it to use those functions
@theblazehen Thanks for the prompt reply. I have build a docker image for the experiment. However, in the MineCraft server I found there no such a command option that supports run game command upon the server is ready. For example run /op bot
when the server is ready. It would be tedious to type/op bot
every time I launch the server. Do you know how automatically to run the game command when the MC server is ready?
For example:
java -jar server.jar --nogui --commands ["/op bot", "xxx", "xxx"]
Note that --commands
is not available in the MC server's option list.
Great! I found I did not set the correct
gamemode
andspawn-protection
. That is the main reason why I did not get the good result.Should change
gamemode
andspawn-protection
to the following: