Unlinkdiscord saves changes (#116)

* Unlinkdiscord saves changes

* Unlinkdiscord saves changes
This commit is contained in:
Telesphoreo
2018-08-04 02:54:23 -07:00
committed by Seth
parent 73cea831af
commit 69efba711a
2 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,7 @@ public class Command_unlinkdiscord extends FreedomCommand
return true;
}
admin.setDiscordID(null);
plugin.al.save();
msg("Your Minecraft account has been successfully unlinked from the Discord account.", ChatColor.GREEN);
return true;
}
@ -44,6 +45,7 @@ public class Command_unlinkdiscord extends FreedomCommand
}
data.setDiscordId(null);
data.setEnabled(false);
plugin.pv.saveVerificationData(data);
msg("Your Minecraft account has been successfully unlinked from the Discord account.", ChatColor.GREEN);
return true;
}