mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 04:00:54 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/minecraft
Normal file
25
tldr/minecraft
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# minecraft
|
||||
|
||||
> Run a headless Minecraft server.
|
||||
> More information: <https://minecraft.wiki/w/Tutorial:Setting_up_a_Java_Edition_server>.
|
||||
|
||||
- Start a Minecraft server and generate a world if it doesn't exist:
|
||||
|
||||
`java -jar {{path/to/server.jar}} --nogui`
|
||||
|
||||
- Set the minimum and maximum amount of memory a server is allowed to have (Note: Setting them the same prevents lag caused by heap scaling):
|
||||
|
||||
`java -Xms{{1024M}} -Xmx{{2048M}} -jar {{path/to/server.jar}} --nogui`
|
||||
|
||||
- Start a server with a GUI:
|
||||
|
||||
`java -jar {{path/to/server.jar}}`
|
||||
|
||||
- Shut the server down:
|
||||
|
||||
`stop`
|
||||
Reference in New Issue
Block a user