Added optional colorama dependency to allow colours in windows console

Added flag to disable ansi colours. Fixes #10
Now passing plugin loader to plugins onEnable
This commit is contained in:
Ammar Askar committed 2012-12-31 07:20:06 +05:00
1 parent 6025e97932
commit 4988ab6ae1
7 files changed
+30 -18

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ In your plugin.py file define a single class with the exact same spellings as yo
things happen in the minecraft world. See the [PacketDumper plugin](https://github.com/ammaraskar/pyCraft/blob/master/plugins/PacketDumper.py) as an example. Currently these methods are
used:
```onEnable(self, parser)``` This fires when your plugin is loaded and passes the option parser as an argument allowing you to add custom command line options
```onEnable(self, parser, pluginloader)``` This fires when your plugin is loaded and passes the option parser as an argument allowing you to add custom command line options
```onDisable(self)``` This fires when pyCraft is exited cleanly, use it for cleaning up