Fix user demote command success message (#609)

This commit is contained in:
Luck 2017-12-14 18:31:52 +00:00
parent 97708c2c80
commit 38e75da92f
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -160,7 +160,7 @@ public class UserDemote extends SubCommand<User> {
user.getPrimaryGroup().setStoredValue(previousGroup.getName());
}
Message.USER_DEMOTE_SUCCESS.send(sender, track.getName(), old, previousGroup.getFriendlyName(), CommandUtils.contextSetToString(context));
Message.USER_DEMOTE_SUCCESS.send(sender, user.getFriendlyName(), track.getName(), old, previousGroup.getFriendlyName(), CommandUtils.contextSetToString(context));
if (!silent) {
Message.EMPTY.send(sender, CommandUtils.listToArrowSep(track.getGroups(), previousGroup.getFriendlyName(), old, true));
}