How to upload WorldEdit and different files to your Minecraft server using the Command Line

Planning
Step 1
Put worldEdit on your server!

In this lesson, we're going to teach you some basic terminal commands by putting WorldEdit and an arena schematic on your server!

Mc1
Step 2
Launch your server and click that button!
Mc2
Step 3
Looking at your Server information!

This is advanced information about your server! We'll be color coding these for future reference. The only important information is your SFTP port which will be green and your IP address which will be color coded as red

Temp1510531807
Step 4
Open up your terminal!

In this case, since I'm on Windows, I'm using git bash! On Mac/Linux, it's literally the terminal.

Temp1510532131
Step 5
ssh into your server!

SSH means secure shell! This allows us to access the server from our computer.

Type in the command:
ssh -p YOURSFTPPORT usr@YOURSERVERIP

Temp1510532490

-p is a flag or option for the ssh command. The only necessary argument for ssh is the ip you want to access!

Step 6
Type in Yes

If it's your first time accessing this server, you'll see something like this. Just type in yes.

Temp1510532666
Step 7
Type in the password!

Yeah you guessed it, the password is mvcodeclub

Temp1510533176
Planning
Step 8
Hunting for the right place to put worldEdit!

For the next few steps we're going to be walking through 2 commands cd and ls.

Temp1510533550

We'll be using them to find the correct path to place worldEdit.

Step 9
'ls' command

ls is the command to list files in a folder/directory! Here we use it to see the contents of each folder we access.

Temp1510534007
Step 10
'cd' command

cd is the command to change directories. Here we use cd to mistakenly access scripts and then to exit out of it.

Temp1510534313

.. means to access the "parent" folder of scripts. You can think of it as going "up" once.

... will allow us to access it's "grandparent" folder and more dots will do the same so on so forth.

Step 11
Stringing them together!

cd data and then ls will show you....

Temp1510534681

This is what the insides of a Minecraft server look like!

Challenge
Step 12
Hunting for....

Try to find this! Use your newly found powers of cd and ls.
Remember cd will only work on folders and directories!

Temp1510534854
Information
Step 13

In the next few steps, we'll be learning about a new command line tool called sftp! We'll be using it to upload worldedit and the arena schematic to our server

Download worldedit.jar Download arena-ctf.schematic
Step 14
SFTP!

type in
sftp -oPort=YOURPORT usr@YOURIP
and the password after.

Temp1510535858

sftp allows us to transfer files between our computer and the server!

Step 15

Type in put Downloads/arena-ctf.schematic data/plugins/schematics
and put Downloads/worldedit.jar data/plugins

Temp1510538531

data/plugins was the path for the folder we were hunting for!

The first argument for the put command is the location of whatever we want to transfer over to the server.
The second argument is where we want to put it!

Downloads/arena-ctf.schematic and Downloads/worldedit.jar are called relative paths! They'll only work if we sftp from the home directory and have both of those files in our downloads! The Downloads folder is located in the home directory.

Check Your Work
Step 16

See if worldedit works the next time your start your server!

How to upload WorldEdit and different files to your Minecraft server using the Command Line Info

Account

MVCode Clubs

Created By

Doggo t doggo

Access Level

public

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach