Handle a command from the console

Handle a command from the console

Postby joppiesaus » 02 Jul 2013, 10:28

Hi,

Does anyone know the command to execute a command from the console? I want to update my map to lavasurvival map converter, so it automaticly does /setlava reload.

Thanks for the help! <ok>
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: Handle a command from the console

Postby ismellike » 02 Jul 2013, 14:58

Command.all.Find("setlava").Use(null,"");
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Handle a command from the console

Postby joppiesaus » 02 Jul 2013, 15:32

ismellike wrote:Command.all.Find("setlava").Use(null,"");

I headdesked myself.
I didn't know the Player argument could be null! Thank you! :D
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!


Return to Help in Coding

Who is online

Users browsing this forum: No registered users and 2 guests