Comments (1)
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:
Since a few of my servers use the same java command I use f-strings.
from slime_server.
Related Issues (13)
- PINGClient from mctools returning NoneType HOT 1
- Suggestion - Being able to create and delete servers from the bot HOT 5
- Xp command giving error. HOT 1
- I am new to WSL and Python and have a question. HOT 1
- Getting Error about Valheim Password HOT 17
- Help HOT 3
- is this only for minecraft java ? HOT 2
- "can't find window 1" HOT 4
- Some commands doesnt work HOT 1
- meError: name 'server_ip' is not defined HOT 3
- Discord-Components give me error HOT 8
- ??QUESTION?? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slime_server.