mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Rename variable for silent flag
This commit is contained in:
parent
6fea194ef5
commit
0a3141841c
@ -82,7 +82,7 @@ public class UserDemote extends ChildCommand<User> {
|
||||
return CommandResult.STATE_ERROR;
|
||||
}
|
||||
|
||||
boolean silent = args.remove("-s");
|
||||
boolean dontShowTrackProgress = args.remove("-s");
|
||||
MutableContextSet context = ArgumentParser.parseContext(1, args, plugin);
|
||||
|
||||
if (ArgumentPermissions.checkContext(plugin, sender, getPermission().get(), context)) {
|
||||
@ -130,7 +130,7 @@ public class UserDemote extends ChildCommand<User> {
|
||||
String groupTo = result.getGroupTo().get();
|
||||
|
||||
Message.USER_DEMOTE_SUCCESS.send(sender, user.getFormattedDisplayName(), track.getName(), groupFrom, groupTo, MessageUtils.contextSetToString(plugin.getLocaleManager(), context));
|
||||
if (!silent) {
|
||||
if (!dontShowTrackProgress) {
|
||||
Message.BLANK.send(sender, MessageUtils.listToArrowSep(track.getGroups(), groupTo, groupFrom, true));
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ public class UserPromote extends ChildCommand<User> {
|
||||
return CommandResult.STATE_ERROR;
|
||||
}
|
||||
|
||||
boolean silent = args.remove("-s");
|
||||
boolean dontShowTrackProgress = args.remove("-s");
|
||||
MutableContextSet context = ArgumentParser.parseContext(1, args, plugin);
|
||||
|
||||
if (ArgumentPermissions.checkContext(plugin, sender, getPermission().get(), context)) {
|
||||
@ -130,7 +130,7 @@ public class UserPromote extends ChildCommand<User> {
|
||||
String groupTo = result.getGroupTo().get();
|
||||
|
||||
Message.USER_PROMOTE_SUCCESS.send(sender, user.getFormattedDisplayName(), track.getName(), groupFrom, groupTo, MessageUtils.contextSetToString(plugin.getLocaleManager(), context));
|
||||
if (!silent) {
|
||||
if (!dontShowTrackProgress) {
|
||||
Message.BLANK.send(sender, MessageUtils.listToArrowSep(track.getGroups(), groupFrom, groupTo, false));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user