Minecraft Forums
[How to] Restart your server without plugins or mods. 😀 (Windows only)
- The Meaning of Life, the Universe, and Everything.
- Location: In a little piggy hut 😀
- Join Date: 3/21/2015
- Posts: 150
- Location: In a little piggy hut 😀
- Minecraft: Piggyfacepork
- Member Details
Update: with help from Strahan202 and more internet digging, i have now improved the script!
So i did a little diging and with help from the interwebs, and thanks to a post on reddit, (I found a script and edited it so it would work for the server, credit to the reddit user) i have now created a way to restart your servers without plugins or mods!
It works for vanilla, bukkit and spigot! any type of server runing on windows!
Here is what a normal start up script looks like for a vanilla server:
@echo off java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui. pause
Just add :START to the beginning of the script then add this to the bottom of your script.
echo Type a to restart or d to exit. choice /c abcd /n if %errorlevel%==1 echo Restarting server. if %errorlevel%==2 goto :CONTINUE if %errorlevel%==3 echo Exiting. if %errorlevel%==4 goto :EXIT :CONTINUE TIMEOUT /t 3 /NOBREAK cls goto :START :EXIT TIMEOUT /t 3 /NOBREAK exit
Now our example start up script looks like:
:START @echo off java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui. pause echo Type a to restart or d to exit. choice /c abcd /n if %errorlevel%==1 echo Restarting server. if %errorlevel%==2 goto :CONTINUE if %errorlevel%==3 echo Exiting. if %errorlevel%==4 goto :EXIT :CONTINUE TIMEOUT /t 3 /NOBREAK cls goto :START :EXIT TIMEOUT /t 3 /NOBREAK exit
Now once you type /stop and shut off your server, it will tell you «Type a to restart or d to exit.», Then just do what the text tells you! If you want to restart press the A Key, if you want to exit press the D key and it will close the console!
Hope this helps! if you need any help with it just let me know!
Hello I’m you’re friendly neighborhood Piggy! I’m not very active on the forums but when i’m on i like to help people and look at suggestions.
Minecraft Wiki
Follow the Minecraft Wiki on Discord or our social media pages!
Setting up a Minecraft Forge server
This page will teach the player how to install a Forge server.
Contents
1.6 to 1.16.5 [ ]
Text version [ ]
Firstly, you need the Forge installer, which can be downloaded from the official Forge download page. Once downloaded, launch it and choose option «Install server». If you’re installing Forge on a headless server with no graphical interface, run the following command in the directory where you downloaded the jar installer (replace «x.xx.x» with the correct version number for the installer you downloaded):
java -jar forge-x.xx.x-installer.jar --installServer
If you get an error about «Downloading Minecraft server failed, invalid e-tag checksum.», you will need to install a vanilla Minecraft server and then run Forge installer. The vanilla server can be downloaded in its respective page.
If you get an error about «There are already files at the target directory», click on the three dots to choose the current location of your Minecraft server (the video shows this).
Once you started vanilla server (don’t forget to change EULA), install Forge and you are done. Now you can launch Forge server by double clicking «forge-version-xx.xx.x.xxxx-version.universal.jar» or using the command below.
Video version [ ]
This tutorial is intended for Windows users, but may be of some use to users who use other operating systems (Mac, Linux).
Information [ ]
java -Xmx1024M -Xms1024M -jar FORGE_FILE_NAME.jar --nogui PAUSE
1.5 and prior [ ]
This tutorial is intended for Windows users, but may be of some use to users who use other operating systems (Mac, Linux)
Information [ ]
java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar --nogui PAUSE
you can give the server more memory by changing the 1024 to a multiple of 1024
Notice [ ]
If the server start text doesn’t work then try renaming the SERVER_FILE_NAME to ‘SERVER_FILE_NAME.jar’ without the apostrophes. Or you could use this server start text instead:
java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar --nogui PAUSE
If you receive the «Java is not recognized» message, replace «java» with its file location. (e.g.: «C:\Program Files (x86)\Java\jre7\bin\javaw.exe») The full string would be:
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1G -Xms1G -jar FORGE_FILE_NAME.jar --nogui PAUSE
If you receive the «A problem occured running the Server launcher.java.lang.reflect.InvocationTargetException» message, try downloading and installing JRE 8 and point to it’s destination on run. This would look like:
"C:\Program Files (x86)\Java\jre1.8.0_321\bin\java.exe" -Xmx1G -Xms1G -jar FORGE_FILE_NAME.jar --nogui
- Menu screen
- Game terms
- The first day/beginner’s guide
- The second day
- The third day
- Hunger management
- Things not to do
- Simple tips and tricks
- Your first ten minutes
- Best biomes for homes
- Best building materials
- Building and construction
- Navigation
- Shelters
- Shelter types
- Achievement guide
- Advancement guide
- Best enchantments guide
- Breaking bedrock
- Combat
- Complete main adventure
- Creating a village
- Downgrading
- Dual wielding
- End survival
- Exploring caverns
- Gathering resources on peaceful difficulty
- Getting food quickly
- Headless pistons
- Hitboxes
- Horses
- Indestructible end crystals
- Mapping
- Measuring distance
- Minecraft in education
- Mining
- Diamonds
- Fossils
- Ancient Debris
- PvP bases
- Trading
- Acquiring a conduit
- Curing a zombie villager
- Defeating temples
- Defeating a village raid
- Defeating a Nether fortress
- Defeating a bastion remnant
- Defeating a dungeon
- Defeating a pillager outpost
- Defeating a woodland mansion
- Defeating a monument
- Defeating an End city
- Defeating the Ender dragon
- Defeating the Wither
- Exploring an ancient city
- Obtaining every music disc
- Adventure survival
- Half hearted hardcore
- Hardcore mode
- Surviving in a single area indefinitely
- Infinite desert survival
- Island survival
- Manhunt
- Mob switch
- Nomadic experience
- Skywars survival
- Superflat survival
- Flat survival
- Ultra hardcore survival
- Beating a challenge map
- Creating a challenge map
- Adding beauty to constructions
- Airlock
- Architectural terms
- Building a cruise ship
- Building a metropolis
- Building a rollercoaster
- Building safe homes
- Building water features
- Color palette
- Creating shapes
- Defense
- Desert shelter
- Elevators
- Endless circling pool
- Furniture
- Glazed terracotta patterns
- Making nice floors
- Pixel art
- Ranches
- Roof types
- Curved roofs
- Roof construction guidelines
- Roof decorations
- Amethyst
- Armor
- Azalea
- Bamboo
- Basalt
- Bedrock
- Blaze rod
- Bone meal
- Cactus
- Chorus fruit
- Clay and mud
- Cobblestone
- Cocoa bean
- Copper
- Crops (Beetroot, Carrot, Potato, Wheat)
- Dirt
- Dragon’s breath
- Dripstone
- Egg
- Fern
- Fish
- Flower
- Froglight
- Glow berries
- Glow ink sac
- Glow lichen
- Goat horn
- Gold
- Hanging roots
- Honey
- Ice
- Iron
- Kelp
- Lava
- Meat
- Moss block
- Mushroom
- Music disc
- Nautilus shell
- Nether growth
- Nether vine
- Nether wart
- Obsidian
- Powder snow
- Pumpkin, Melon
- Rooted dirt
- Sculk growths
- Scute
- Seagrass
- Sea pickle
- Snow
- Soul soil
- Sugar cane
- Sweet berries
- Tree
- Trident
- Vine
- Villager trading hall
- Wither rose
- Wool
- Duplication
- Mob farming
- Mob grinding
- Monster spawner traps
- Allay
- Animals
- Axolotl
- Blaze
- Cat
- Cave spider
- Creeper
- Drowned
- Ender dragon
- Enderman
- Frog
- Goat
- Guardian
- Hoglin
- Iron golem
- Magma cube
- Phantom
- Piglin bartering farm
- Raid
- Shulker
- Slime
- Squid
- Turtle
- Villager
- Wandering trader
- Warden
- Witch
- Wither
- Wither skeleton
- Zombie
- Zombie villager
- Zombified piglin
- End of light mob farms
- Enchantment mechanics
- Anvil mechanics
- Automatic smelting
- Manual smelting
- Blast chamber
- Igniting TNT underwater
- Wither cage
- Automatic respawn anchor recharger
- Basic logic gates
- Combination locks
- Command block
- Flying machines
- Hopper
- Item sorting
- Item transportation
- Mechanisms
- Observer stabilizer
- Randomizers
- Redstone music
- Redstone tips
- Rube Goldberg machine
- Shulker box storage
- Villager trading hall
- Block update detector
- Comparator update detector
- Daylight sensor
- Day night detector
- Train station
- Minecarts
- Storage
- Storage system
- Snow golems
- TNT cannons
- Trapdoor uses
- Trap design
- Traps
- Piston uses
- Piston circuits
- Quasi-connectivity
- Zero-ticking
- Instant repeaters
- Advanced redstone circuits
- Arithmetic logic
- Calculator
- Command stats
- Hourly clock
- Morse code
- Printer
- Redstone computers
- Redstone telegraph
- Playing on servers
- Multiplayer Survival
- Spawn jail
- Griefing prevention
- Joining a LAN world with alternate accounts
- Setting up a server
- Server startup script
- FreeBSD startup script
- OpenBSD startup script
- Ubuntu startup script
- Setting up a Hamachi server
- Setting up a Minecraft Forge server
- Setting up a Spigot server
- Ramdisk enabled server
- Improving frame rate
- Minecraft help FAQ (IRC channel)
- Update Java
- Custom maps
- Map downloads
- Command NBT tags
- Falling blocks
- Updating old terrain using MCEdit
- Creating a resource pack
- Loading a resource pack
- Sound directory
- Creating a data pack
- Installing a data pack
- Creating videos
- Livestreaming
- Installing snapshots
- Joining and leaving the Bedrock Edition beta program
- How to get a crash report
- Installing Forge mods
- Custom Minecraft directory
- Playing and saving Minecraft on a thumb drive
- Playing and saving Minecraft on a thumb drive with the old launcher
- Recover corrupted saved world data
- Run Minecraft through Google Drive
- Save game data to Dropbox (world data only)
- Saved data Dropbox guide
- Building micro shelters
- Custom texture packs
- Door-based iron golem farming
- Far Lands
- How to get a crash report
- Installing mods
- Man-made lake
- Managing slimes in superflat mode
- Minecart booster
- Potion farming
- Repeater reboot system
- Survival with no enabled data packs
- Update LWJGL
- Update Minecraft
- Village chaining
- Water ladder
- Water tram