object = new HashMap<String, HashMap<String, Object>>();
try {
ReflectionHelper.setPrivateValue(plugindesc, "commands", object);
} catch (Throwable t) {
t.printStackTrace();
throw new PyException(new PyString("error"), new PyString("Plugin commands list does not exist"));
}
}
Map<String, Map<String, Object>> map = (Map<String, Map<String, Object>>) object;
if (map.containsKey(name)) {
if (desc != null || usage != null || aliases != null)
throw new PyException(new PyString("error"), new PyString("Plugin already has a command called '"+name+"'"));
else
return;
}
Map<String, Object> commandmap = new HashMap<String, Object>();