int cmdIndex = 0;
String cmdSetting = pluginSetting + "-command-" + cmdIndex;
while ( settings.containsKey( cmdSetting ) ) {
try {
COMMAND cmd = COMMAND.valueOf( settings.get( cmdSetting ) );
String perspective = settings.get( pluginSetting + "-command-perspective-" + cmdIndex );
pluginMenu.addCommand( cmd );
plugin.addCommandPerspective( cmd, perspective );
cmdSetting = pluginSetting + "-command-" + ( ++cmdIndex );
} catch ( Throwable t ) {