courgette/b3-plugin-poweradminbf3 — Issue #12: fails to start with new config file introduced in 0.4
Author: courgette
Created: 2011-11-01 15:14:40+00:00
State: open

[wipi](http://forum.bigbrotherbot.net/profile/?u=3670) [reported](http://forum.bigbrotherbot.net/bf3b3-beta-board/poweradmin-bf3/msg29899/#msg29899) a critical error when starting the plugin v0.4 as it is packaged.

## config file used
```

60

40
40
40

20
20
20

Operation denied
Operation denied because %(name)s is in the %(group)s group

8
4

true
false
true
true
true
true
true
true
true
true
true
true
100
100
100
100
100
false

true
true
false
true
false
false
true
false
false
false
true
60
100
100
100
100
true

true
false
true
true
true
true
true
true
true
false
true
false
100
100
100
100
100
false

```

## error log
```
111101 00:51:33	BOT	'Loading Plugin #9 poweradminbf3 [C:\\UserFiles\\wypior\\B3BF3\\b3\\extplugins\\conf\\plugin_poweradminbf3.xml]'
111101 00:51:33	INFO	'Could not load built in plugin poweradminbf3 (No module named poweradminbf3)'
111101 00:51:33	INFO	'trying external plugin directory : C:\\UserFiles\\wypior\\B3BF3\\b3\\extplugins'
111101 00:51:33	BOT	'Poweradminbf3Plugin: Loading config C:\\UserFiles\\wypior\\B3BF3\\b3\\extplugins\\conf\\plugin_poweradminbf3.xml for Poweradminbf3Plugin'
111101 00:51:33	CRITICAL	'Error loading plugin: format requires a mapping'
Traceback (most recent call last):
File "C:\UserFiles\wypior\B3BF3\b3\parser.py", line 608, in loadPlugins
self._plugins[plugins[s]['name']] = getattr(pluginModule, '%sPlugin' % plugins[s]['name'].title())(self, plugins[s]['conf'])
File "C:\UserFiles\wypior\B3BF3\b3\extplugins\poweradminbf3.py", line 41, in __init__
Plugin.__init__(self, console, config)
File "C:\UserFiles\wypior\B3BF3\b3\plugin.py", line 56, in __init__
self.loadConfig(config)
File "C:\UserFiles\wypior\B3BF3\b3\plugin.py", line 115, in loadConfig
self.onLoadConfig()
File "C:\UserFiles\wypior\B3BF3\b3\extplugins\poweradminbf3.py", line 59, in onLoadConfig
self.getMessage('operation_denied_level')
File "C:\UserFiles\wypior\B3BF3\b3\plugin.py", line 87, in getMessage
return msg % args
TypeError: format requires a mapping
```