Interface CrossfireQueryListener
- All Superinterfaces:
EventListener
Interface for listeners interested in query messages received from the
Crossfire server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intQuery type: hide input being entered.static final intQuery type: single character response expected.static final intQuery type: yes/no question. -
Method Summary
Modifier and TypeMethodDescriptionvoidcommandQueryReceived(@NotNull String prompt, int queryType) A query message has been received.
-
Field Details
-
YES_NO
static final int YES_NOQuery type: yes/no question.- See Also:
-
SINGLE_CHAR
static final int SINGLE_CHARQuery type: single character response expected.- See Also:
-
HIDE_INPUT
static final int HIDE_INPUTQuery type: hide input being entered.- See Also:
-
-
Method Details
-
commandQueryReceived
A query message has been received.- Parameters:
prompt- the query's promptqueryType- the query type
-