Class CommandFlags
java.lang.Object
de.redstoneworld.redutilities.input.CommandFlags
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanThis method checks whether the specified flag was found for the target argument.static booleanThis method checks whether the specified flag was found for the target arguments.static booleanisHideFlag(String cmdInput) This method checks if the given argument is the flag for hiding the teleport message.
-
Constructor Details
-
CommandFlags
public CommandFlags()
-
-
Method Details
-
isHideFlag
This method checks if the given argument is the flag for hiding the teleport message. -
isFlag
This method checks whether the specified flag was found for the target argument. The use of wildcards (*) is supported for the end of the string. This is useful for flags with arguments (Example: '-target:*').- Parameters:
args- The array with the command argument inputflag- The flag to be checkedarg- The number (Array index) of the argument to be analysed- Returns:
- (Boolean) 'true', if the flag was found here
-
isFlag
This method checks whether the specified flag was found for the target arguments. The use of wildcards (*) is supported for the end of the string. This is useful for flags with arguments (Example: '-target:*').- Parameters:
args- The array with the command argument inputflag- The flag to be checkedminArg- The minimal number (Array index) of the arguments to be analysedmaxArg- The maximal number (Array index) of the arguments to be analysed- Returns:
- (Boolean) 'true', if the flag was found here
-