More discord stuff

This commit is contained in:
ZeroEpoch1969
2019-04-20 17:16:00 -07:00
parent 481983aeaf
commit 92ad950155
9 changed files with 272 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package me.totalfreedom.totalfreedommod.command;
import me.totalfreedom.totalfreedommod.admin.Admin;
import me.totalfreedom.totalfreedommod.banning.Ban;
import me.totalfreedom.totalfreedommod.config.ConfigEntry;
import me.totalfreedom.totalfreedommod.punishments.Punishment;
import me.totalfreedom.totalfreedommod.punishments.PunishmentType;
import me.totalfreedom.totalfreedommod.rank.Rank;
@ -49,6 +50,10 @@ public class Command_doom extends FreedomCommand
admin.setActive(false);
plugin.al.save();
plugin.al.updateTables();
if (plugin.dc.enabled && ConfigEntry.DISCORD_ROLE_SYNC.getBoolean())
{
plugin.dc.syncRoles(admin);
}
}
// Remove from whitelist