Skip to content

Commit 58144b1

Browse files
committed
Fix calls to PunishmentType#getConfSection(String)
1 parent 91632b3 commit 58144b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/me/leoko/advancedban/utils/Command.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ public enum Command {
8888
UN_BAN("ab." + PunishmentType.BAN.getName() + ".undo",
8989
"\\S+",
9090
new RevokeProcessor(PunishmentType.BAN),
91-
"Un" + PunishmentType.BAN.getConfSection(".Usage"),
91+
"Un" + PunishmentType.BAN.getConfSection("Usage"),
9292
"unban"),
9393

9494
UN_MUTE("ab." + PunishmentType.MUTE.getName() + ".undo",
9595
"\\S+",
9696
new RevokeProcessor(PunishmentType.MUTE),
97-
"Un" + PunishmentType.MUTE.getConfSection(".Usage"),
97+
"Un" + PunishmentType.MUTE.getConfSection("Usage"),
9898
"unmute"),
9999

100100
UN_WARN("ab." + PunishmentType.WARNING.getName() + ".undo",
@@ -125,7 +125,7 @@ public enum Command {
125125
new RevokeByIdProcessor("Un" + confSection, PunishmentManager.get()::getWarn).accept(input);
126126
}
127127
},
128-
"Un" + PunishmentType.WARNING.getConfSection(".Usage"),
128+
"Un" + PunishmentType.WARNING.getConfSection("Usage"),
129129
"unwarn"),
130130

131131
UN_PUNISH("ab.all.undo",

0 commit comments

Comments
 (0)