@@ -20,6 +20,7 @@ public class MenuOptions {
2020 private final boolean refresh ;
2121 private final boolean parsePlaceholdersInArguments ;
2222 private final boolean parsePlaceholdersAfterArguments ;
23+ private final boolean enableBypassPerm ;
2324
2425 private final List <String > commands ;
2526 private final boolean registerCommands ;
@@ -41,6 +42,7 @@ private MenuOptions(final @NotNull MenuOptionsBuilder builder) {
4142 this .refresh = builder .refresh ;
4243 this .parsePlaceholdersInArguments = builder .parsePlaceholdersInArguments ;
4344 this .parsePlaceholdersAfterArguments = builder .parsePlaceholdersAfterArguments ;
45+ this .enableBypassPerm = builder .enableBypassPerm ;
4446
4547 this .commands = builder .commands ;
4648 this .registerCommands = builder .registerCommands ;
@@ -93,6 +95,10 @@ public boolean parsePlaceholdersAfterArguments() {
9395 return this .parsePlaceholdersAfterArguments ;
9496 }
9597
98+ public boolean enableBypassPerm () {
99+ return this .enableBypassPerm ;
100+ }
101+
96102 public @ NotNull List <@ NotNull String > commands () {
97103 return this .commands ;
98104 }
@@ -134,6 +140,7 @@ public boolean registerCommands() {
134140 .refresh (this .refresh )
135141 .parsePlaceholdersInArguments (this .parsePlaceholdersInArguments )
136142 .parsePlaceholdersAfterArguments (this .parsePlaceholdersAfterArguments )
143+ .enableBypassPerm (this .enableBypassPerm )
137144 .commands (this .commands )
138145 .registerCommands (this .registerCommands )
139146 .arguments (this .arguments )
@@ -155,6 +162,7 @@ public static class MenuOptionsBuilder {
155162 private boolean refresh ;
156163 private boolean parsePlaceholdersInArguments = false ;
157164 private boolean parsePlaceholdersAfterArguments = false ;
165+ private boolean enableBypassPerm = false ;
158166
159167 private List <String > commands = List .of ();
160168 private boolean registerCommands = false ;
@@ -216,6 +224,11 @@ public MenuOptionsBuilder parsePlaceholdersAfterArguments(final boolean parsePla
216224 return this ;
217225 }
218226
227+ public MenuOptionsBuilder enableBypassPerm (final boolean enableBypassPerm ) {
228+ this .enableBypassPerm = enableBypassPerm ;
229+ return this ;
230+ }
231+
219232 public MenuOptionsBuilder commands (final @ NotNull List <@ NotNull String > commands ) {
220233 this .commands = commands ;
221234 return this ;
0 commit comments