if (server == null)
return;
for (CommandMapping cmdData : dispatcher.getCommands())
{
ForgeEssentialsCommandBase command = new WECommandWrapper(cmdData);
command.register();
// register additional permissions
if (cmdData.getDescription().getPermissions().size() > 0)
for (int i = 1; i < cmdData.getDescription().getPermissions().size(); i++)
PermissionsManager.registerPermission(cmdData.getDescription().getPermissions().get(i), RegisteredPermValue.OP);