Input Validation
Validator Types
Validator Type
Config Key
Description
Configuration Example (prompt-config.yml)
prompt-config.yml)Input-Validation:
Integer-Sample:
Alias: is
Regex: '^\d+'
Err-Message: '&cPlease enter a valid integer!'
Alpha-Sample:
Alias: ss
Regex: '[A-Za-z ]+'
Err-Message: '&cInput must only consist of letters!'
Online-Validator:
Alias: ov
Online-Player: true
Err-Message: '&cThat player is not online!'Usage
Last updated
Was this helpful?