Class CommandFilter.Builder
java.lang.Object
com.sk89q.worldguard.util.command.CommandFilter.Builder
- Enclosing class:
- CommandFilter
Builder class for
CommandFilter.
If permit(String...) is never called, then the
permitted rule list will be null. Likewise if
deny(String...) is never called.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create a command filter.Deny the given list of commands.Permit the given list of commands.
-
Constructor Details
-
Builder
public Builder()Create a new instance.
-
-
Method Details
-
permit
Permit the given list of commands.- Parameters:
rules- list of commands- Returns:
- the builder object
-
deny
Deny the given list of commands.- Parameters:
rules- list of commands- Returns:
- the builder object
-
build
Create a command filter.- Returns:
- a new command filter
-