Skip to content

Commit

Permalink
Merge pull request #308 from DevLeoko/feature/2.1.6-bugfixing
Browse files Browse the repository at this point in the history
Fix calls to PunishmentType#getConfSection(String)
  • Loading branch information
DevLeoko authored Mar 8, 2020
2 parents a63fac2 + 58144b1 commit 8c10e6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/me/leoko/advancedban/utils/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ public enum Command {
UN_BAN("ab." + PunishmentType.BAN.getName() + ".undo",
"\\S+",
new RevokeProcessor(PunishmentType.BAN),
"Un" + PunishmentType.BAN.getConfSection(".Usage"),
"Un" + PunishmentType.BAN.getConfSection("Usage"),
"unban"),

UN_MUTE("ab." + PunishmentType.MUTE.getName() + ".undo",
"\\S+",
new RevokeProcessor(PunishmentType.MUTE),
"Un" + PunishmentType.MUTE.getConfSection(".Usage"),
"Un" + PunishmentType.MUTE.getConfSection("Usage"),
"unmute"),

UN_WARN("ab." + PunishmentType.WARNING.getName() + ".undo",
Expand Down Expand Up @@ -125,7 +125,7 @@ public enum Command {
new RevokeByIdProcessor("Un" + confSection, PunishmentManager.get()::getWarn).accept(input);
}
},
"Un" + PunishmentType.WARNING.getConfSection(".Usage"),
"Un" + PunishmentType.WARNING.getConfSection("Usage"),
"unwarn"),

UN_PUNISH("ab.all.undo",
Expand Down

0 comments on commit 8c10e6f

Please sign in to comment.