Author Topic: Server Events | Updated 02/09/2014  (Read 4874 times)

Events for loading and clearing bricks, echoing to the console, and more.




This adds a new "Server" target, which includes these output events:

  • Server -> loadSaveFile Allows for a save file to be loaded. You can specify the file name and ownership.
  • Server -> clearAllBricks Clears all bricks in the server. In conjunction with loadSaveFile, this can be used to reset a map.

  • Server -> setPreference Used to change either server name, password, max players, welcome message, or falling damage.

  • Server -> echo Prints an echo to the console.
  • Server -> warn Prints a warning to the console.
  • Server -> error Prints an error to the console.




Download (v1.1; February 9, 2014)

Quote from: Change Log
v1.1 (02/09/2014)
  • Added setPreference event.
  • Added load offset parameter.
  • Fixed loadSaveFile event.




Please note: All events are host-only.

Feel free to submit ideas for additional server events!
« Last Edit: July 16, 2014, 12:44:11 PM by Greek2me »

This looks really great.
Would an event that renames the server be plausible?

This looks really great.
Would an event that renames the server be plausible?

Thank you! Yes, I can add that tomorrow hopefully.

How about changing the number of players? That would be cool too.

How about changing the number of players? That would be cool too.
Agreed.

And one that sends the host an email. (If this is possible I realized how complex and hard such a thing would be lol)
But it would be cool to have a event that can notify you when x event happens on your server. (such as a player reaching the end of a challenge you built?)

I saw you had a shutDown event but removed it. A setPassword event and kickAll event would achieve the same effect but allow the events to start the server up again, useful in between games when the bricks are loading or whatever.

Input events like onBricksLoaded and onBricksCleared would be great too.

I recommend you just go through the RTB server settings list and basically add events to change it all. That would be awesome.


Does the duplicator apply events using serverCmdAddEvent? If not, you have a potential risk with this.


Edit: Ooooh. Could you add parameters for loadSaveFile for the load offset? With VCE support?
« Last Edit: February 01, 2014, 08:23:08 AM by boodals 2 »

And one that sends the host an email. (If this is possible I realized how complex and hard such a thing would be lol)
But it would be cool to have a event that can notify you when x event happens on your server. (such as a player reaching the end of a challenge you built?)
Blockland cannot send emails.

Thank you with VCE I can now make a random map tdm

It would be nice if there was a
Server -> clearSave [ name of save ]
event.

Blockland cannot send emails.
obviously you would have to rig up some sort of server that does it

Why can't you make it SA be able to type in any command which'l be sent to the host's console?

Why can't you make it SA be able to type in any command which'l be sent to the host's console?


That's a security risk and will go straight to the fail-bin.


That's a security risk and will go straight to the fail-bin.
For anyone that will ask how, Badspot has explained about this.