Git Product home page Git Product logo

Comments (1)

0n1udra avatar 0n1udra commented on June 26, 2024

In slime_vars.py edit the server_list dictionary.
Format is: {'server name': ['server name', 'description', 'java launch command']}.
E.g. {'papermc': ['papermc', 'Lightweight PaperMC.', 'java -Xmx3G -Xms1G -jar server.jar nogui']}.

-Xmx3G is that max allocated RAM, and -Xms1G is the minimum.
For my setup I have different minecraft servers I want to switch back and forth with, each with their own backup folders and unique launch commands. This does not mean you can run multiple servers at once with the bot, it's just a way to manage separate minecraft server folders.

Make sure mc_path variable is set. This is where the server folder and it's backup folders will go. E.g. /home/USER/Games/Minecraft/. My PaperMC jar location will be /home/USER/Games/Minecraft/papermc/server.jar. I also have a vanilla server: /home/USER/Games/Minecraft/vanilla/server.jar etc etc.
Backups for PaperMC server will go in /home/USER/Games/Minecraft/world_backups/papermc/.

You can also set the default when the bot launches by editing server_selected variable, e.g. server_selected = server_list['papermc']

Once the bot is launched. Use ?serverselect/?sselect to select the server you want to control. E.g. ?sselect papermc.

Sorry for the confusion. I will see if there's better ways soon, and write up proper documentation on how to set up everything. I haven't been able to update this one recently because of other projects.

Here is my setup:
Screenshot-20220720102408-1613x408
Since a few of my servers use the same java command I use f-strings.

from slime_server.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.