User Tools

Site Tools


minecraft

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
minecraft [2019/05/06 23:13] jnilssonminecraft [2019/05/14 16:30] (current) justip6
Line 3: Line 3:
   * **IP Address**: **128.195.133.148**   * **IP Address**: **128.195.133.148**
  
-  * **User accounts**: with SS2K domain account or local user "**mcuser**" (ask sscs@uci.edu if you do not know the password)+  * **User accounts**: local user "**mcuser**" (ask sscs@uci.edu if you do not know the password). Specific SS2K domain accounts can also be setup to login.
  
   * **Local group**: the group "**mc-research**" is setup with write access to the necessary directories for rebuilding spigot and managing minecraft server instances. The mcuser and certain domain accounts are setup as members of this group.   * **Local group**: the group "**mc-research**" is setup with write access to the necessary directories for rebuilding spigot and managing minecraft server instances. The mcuser and certain domain accounts are setup as members of this group.
Line 23: Line 23:
   * ''**spigot-build.sh [version]**'' - rebuild the spigot.jar, optionally to a specified version number   * ''**spigot-build.sh [version]**'' - rebuild the spigot.jar, optionally to a specified version number
   * ''**start-mc.sh [port]**'' - start a new minecraft server instance on a random port, or the optionally specified port   * ''**start-mc.sh [port]**'' - start a new minecraft server instance on a random port, or the optionally specified port
 +
  
  
Line 28: Line 29:
  
 When the start-mc.sh script starts a minecraft instance, it runs it in a screen so you can connect to the server console later to check it or to give it the "stop" command When the start-mc.sh script starts a minecraft instance, it runs it in a screen so you can connect to the server console later to check it or to give it the "stop" command
 +
 +Send server to background without shutting down the server
 +  * Simply exiting the terminal window or putty session
 +  * ''Ctrl+a'' then ''d'' (Press ctrl+a, let go, then press d)
  
 screen names will be of the format "''mc-<port>''" screen names will be of the format "''mc-<port>''"
Line 44: Line 49:
   * Make sure there is a ''eula.txt'' file in the template directory, with the setting ''eula=TRUE'' (this should already be there, unless you replace the entire template directory).   * Make sure there is a ''eula.txt'' file in the template directory, with the setting ''eula=TRUE'' (this should already be there, unless you replace the entire template directory).
   * ensure there is a spigot.jar file or valid symlink   * ensure there is a spigot.jar file or valid symlink
 +
 +
 +
  
 ===== Spigot ===== ===== Spigot =====
Line 63: Line 71:
 === Output: spigot-<version>.jar === === Output: spigot-<version>.jar ===
 The result of this script is a file called ''%%spigot-<version>.jar%%'' where <version> is the actual version number. If the script is able to, it will try to copy this file into the TEMPLATE directory used by the ''%%start-mc.sh%%'' script (see below), and setup a symlink to it called just "spigot.jar". The result of this script is a file called ''%%spigot-<version>.jar%%'' where <version> is the actual version number. If the script is able to, it will try to copy this file into the TEMPLATE directory used by the ''%%start-mc.sh%%'' script (see below), and setup a symlink to it called just "spigot.jar".
 +
 +  * **NOTE**: the ''spigot-build.sh'' script will NOT automatically update the spigot-<version>.jar file in any existing minecraft instances. You will have to manually stop any running instances and update the spigot.jar symlink (see below)
  
 == Old versions of spigot == == Old versions of spigot ==
 Old versions of the file spigot-<version>.jar are saved in an "old" directory under ''/usr/local/spigot''. If needed, you can look there for a specific version number rather than rebuilding it. You would have to copy the desired version into the specific minecraft instance location, or to the template if you want to update the template, and then create a spigot.jar symlink pointing to it. Old versions of the file spigot-<version>.jar are saved in an "old" directory under ''/usr/local/spigot''. If needed, you can look there for a specific version number rather than rebuilding it. You would have to copy the desired version into the specific minecraft instance location, or to the template if you want to update the template, and then create a spigot.jar symlink pointing to it.
  
-=== spigot.jar symlink ===+=== Update spigot.jar symlink === 
 + 
 +The minecraft template directory and each specific instance under the named <port> directories must have a spigot.jar symlink (a symbolic link) that points to the desired version of the file.
  
-The minecraft template directory and each specific instance under the named <port> directories must have a spigot.jar symlink (a symbolic link) that points to the desired version of the file. For example, you might have a spigot-1.13.2.jar file and a spigot-1.14.jar file, but whichever one spigot.jar points to is the one that will be loaded:<code>+For example, you might have a spigot-1.13.2.jar file and a spigot-1.14.jar file, but whichever one spigot.jar points to is the one that will be loaded:<code>
 # change directory to the template directory (where you want to copy the new spigot-version.jar file to) # change directory to the template directory (where you want to copy the new spigot-version.jar file to)
 cd /usr/local/mc-research/template cd /usr/local/mc-research/template
Line 106: Line 118:
  
  
-===== How to manage minecraft instances =====+ 
 + 
 + 
 +===== FAQ: How to manage minecraft instances =====
  
 === How to see currently running instances === === How to see currently running instances ===
Line 154: Line 169:
 mv /usr/local/mc-research/25570 ~/archive/20190506-jnilsson-exp1 mv /usr/local/mc-research/25570 ~/archive/20190506-jnilsson-exp1
 </code> </code>
 +
 +=== If you accidentally type ''screen'' without any arguments ===
 +Screen will tell you at the bottom of the terminal: [Press Space or Return to end.]
 +
 +Do so, and when the terminal clears, type exit
minecraft.1557184414.txt.gz · Last modified: 2019/05/06 23:13 by jnilsson