RedstonerUtils
Redstoner's custom plugins, written in python.
Installation / Set-up
- Create a new directory called 'redstoner'
- Download the latest bukkit
- Run it once inside redstoner, then shut it down again
- Create a new directory (inside redstoner) called 'lib'
- Download jython and save it as 'jython.jar' inside lib
- Download mysql-connector, extract 'mysql-connector-java-X.X.XX-bin.jar ' and save it as 'mysql-connector.jar' inside lib
- Download PyPluginLoader into the plugins directory
- inside plugins, clone this directory into 'redstoner-utils**.py.dir**':
git clone git@bitbucket.org:redstonesheep/redstoner-utils.git redstoner-utils.py.dir - Download PEX into plugins
- if you want to develop mysql things, set up a local MySQL server
branches
-
dev Always use this branch to change code, please test before pushing. (If something goes wrong here, that's okay)
-
master Never commit into this branch directly! Only merge stable versions of dev
Deploying
There ain't much to do. The dev server uses the dev branch, the live server uses master. Just pull and restart the server.
Be very careful with the live server! Make sure you're in the master branch and the code is working before pulling/restarting!
Modules / Files
-
files/All config / storage files go here
-
plugin.ymlThe plugin.yml file required for bukkut plugins
-
main.pyThe only file loaded by PyPluginLoader, loads all other modules
Contains a few methods that need to be cleaned up -
helpers.pyLibrary that adds a bunch of re-usable methods which are used in nearly all other modules
-
adminchat.pyAdds chat for staff using
/ac <textor,<text> -
chatgroups.pyAdds group-chat with
/chatgroupand/cgtto toggle normal chat into group mode -
lagchunks.pyPlugin to locate laggy chunks.
/lc <n>lists chunks with more thannentities -
mysqlhack.pyA library that makes use of the so called ClassPathHack for jython to allow proper loading of
mysql-connector.jarat runtime. import only, no methods. -
plotter.pyStart of a custom plot-plugin like PlotMe, on hold because the PlotMe developer continued to develop PlotMe
-
reports.pyThe
/report <text>and/rpplugin -
saylol.pyRemake of sheep's old SayLol plugin, originally written as a standalone plugin in Java
-
skullclick.pyShows the owner of a skull when right-clicked
-
webtoken.pyAdds
/token, reads and writes from the database to generate pronouncable (and thus memorable) registration-tokens for the website.