Scripts For Admins: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
How to get scripts on a local server
imported>Kymara
No edit summary
Line 92: Line 92:


== On a localhost server ==
== 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 #arianne irc.freenode.net.
You need to get the built scripts (*.class files). If you built your server using ant, they are located in

Inside your server folder you should already have the file data/conf/admins.list that you made so you could be an admin. Create a folder data/script and put your scripts there. Since '.' will already be on your classpath to read the adminslist, these scripts should now also be loaded when you start your server. If you have trouble try adding ./data/script to your classpath too.
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 #arianne irc.freenode.net.
Inside your server folder you should already have the file data/conf/admins.list that you made so you could be an admin. Create a folder
data/script/games/stendhal/server/script/
and put your scripts there. Since '.' will already be on your classpath to read the adminslist, 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 \!