mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
fix -rb showing in ban message
This commit is contained in:
parent
83ec997125
commit
fff35ad34c
@ -62,7 +62,7 @@ public class BanCMD extends PlexCommand
|
|||||||
if (args.length > 1)
|
if (args.length > 1)
|
||||||
{
|
{
|
||||||
reason = StringUtils.join(args, " ", 1, args.length);
|
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);
|
punishment.setReason(newReason.trim().isEmpty() ? messageString("noReasonProvided") : newReason);
|
||||||
rollBack = reason.startsWith("-rb") || reason.endsWith("-rb");
|
rollBack = reason.startsWith("-rb") || reason.endsWith("-rb");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user