mirror of
https://github.com/plexusorg/Plex.git
synced 2025-02-10 19:24:17 +00:00
fix -rb showing in ban message
This commit is contained in:
parent
83ec997125
commit
fff35ad34c
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ public class BanCMD extends PlexCommand
|
|||
if (args.length > 1)
|
||||
{
|
||||
reason = StringUtils.join(args, " ", 1, args.length);
|
||||
String newReason = StringUtils.normalizeSpace(reason.replace("-nrb", ""));
|
||||
String newReason = StringUtils.normalizeSpace(reason.replace("-rb", ""));
|
||||
punishment.setReason(newReason.trim().isEmpty() ? messageString("noReasonProvided") : newReason);
|
||||
rollBack = reason.startsWith("-rb") || reason.endsWith("-rb");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue