StendhalLocalhostServerOnLinux: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara |
imported>Hendrik Brummermann →Be my wife? And other server extensions: removed section on server extensions as marriage is now part of the game |
||
| Line 172: | Line 172: | ||
=== You are the man! === |
=== You are the man! === |
||
Want to be an admin? Now you can! It's easy! Go to the directory where you extracted stendhal-server-{{version}}.zip, and browse to data/conf. Edit admins.txt there, with each admin name on a separate line. The name must be EXACT, or it will not work. The server needs '.' on the classpath, which is already done if you are using ''runserver.sh''. |
Want to be an admin? Now you can! It's easy! Go to the directory where you extracted stendhal-server-{{version}}.zip, and browse to data/conf. Edit admins.txt there, with each admin name on a separate line. The name must be EXACT, or it will not work. The server needs '.' on the classpath, which is already done if you are using ''runserver.sh''. |
||
=== Be my wife? And other server extensions === |
|||
Server extensions. They add much (or little) functionality to a server, that another may not have. If you want to add the Spouse extension, which adds marriage (uh-oh!) to your server, just add these to your marauroa.ini file we created earlier (note that marriage is now built in to the server and doesn't require an extension, but you can use this template for all extensions, this is just an example): |
|||
# load StendhalServerExtension(s) |
|||
groovy=games.stendhal.server.scripting.StendhalGroovyRunner |
|||
http=games.stendhal.server.StendhalHttpServer |
|||
spouse=games.stendhal.server.extension.SpouseExtension |
|||
server_extension=groovy,http,spouse |
|||
http.port = 8080 |
|||
The first 3 lines (not including the comment) point to specfic classes in your code. The server_extension line tells marauroa to load those extensions at start time. After adding these, restart your server. Don't worry - the RSA keys won't break because you added these lines. I personally have 3 server extensions that I wrote as well, 2 of which are broken (help!). To add those, just add this: |
|||
my_extension=java.class.path.to.my_extension |
|||
And add "my_extension" to the end of server_extension (don't forget the comma separating everything!) |
|||
= Finished = |
= Finished = |
||