Scripts For Admins: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann No edit summary |
imported>Hendrik Brummermann →On a localhost server: scripts work out of the box, both in Eclipse and the server binary download |
||
| Line 110: | Line 110: | ||
; /script ServerReset.class |
; /script ServerReset.class |
||
: Use it in an ''emergency'' to shut down the server. If it is started in a loop, it will come back up otherwise it will stay down. If it is possible, please warn the players to logout and give them some time. Please note that it kills the server the hard way without doing a clean shutdown. |
: Use it in an ''emergency'' to shut down the server. If it is started in a loop, it will come back up otherwise it will stay down. If it is possible, please warn the players to logout and give them some time. Please note that it kills the server the hard way without doing a clean shutdown. |
||
== On a localhost server == |
|||
You need to get the built scripts (*.class files). If you built your server using ant, they are located in |
|||
build/build_server_script/games/stendhal/server/script. |
|||
If you got your server files from unzipping a released package you will need to ask someone nicely to zip them up for you :) Try <code>#arianne irc.freenode.net</code>. |
|||
Inside your server folder you should already have the folder <code>data</code>. Inside <code>data</code>, create the folder structure |
|||
script/games/stendhal/server/script/ |
|||
and put your scripts there. Since '.' will already be on your classpath to read the admins list, these scripts should now also be loaded when you start your server. If you have trouble try adding ./data/script to your classpath too. |
|||
P.s. If you are in Windows not Linux then remember all the / here for folders are actually \! |
|||