mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 19:46:15 +01:00
Change to text prompt
This commit is contained in:
parent
7a12b6eba5
commit
bf9936c472
@ -24,17 +24,16 @@ public class StartPrompt extends StringPrompt {
|
|||||||
return new TextEditStartPrompt(text);
|
return new TextEditStartPrompt(text);
|
||||||
else if (input.equalsIgnoreCase("remove"))
|
else if (input.equalsIgnoreCase("remove"))
|
||||||
return new TextRemovePrompt(text);
|
return new TextRemovePrompt(text);
|
||||||
else {
|
else if (input.equalsIgnoreCase("random"))
|
||||||
if (input.equalsIgnoreCase("random"))
|
Messaging.send((Player) context.getForWhom(), "<e>Random talker <a>set to <e>" + text.toggleRandomTalker()
|
||||||
Messaging.send((Player) context.getForWhom(),
|
+ "<a>.");
|
||||||
"<e>Random talker <a>set to <e>" + text.toggleRandomTalker() + "<a>.");
|
else if (input.equalsIgnoreCase("close"))
|
||||||
else if (input.equalsIgnoreCase("close")) {
|
|
||||||
Messaging.send((Player) context.getForWhom(), "<e>Close talker <a>set to <e>" + text.toggle() + "<a>.");
|
Messaging.send((Player) context.getForWhom(), "<e>Close talker <a>set to <e>" + text.toggle() + "<a>.");
|
||||||
} else
|
else
|
||||||
Messaging.sendError((Player) context.getForWhom(), "Invalid edit type.");
|
Messaging.sendError((Player) context.getForWhom(), "Invalid edit type.");
|
||||||
|
|
||||||
return new StartPrompt(text);
|
return new StartPrompt(text);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPromptText(ConversationContext context) {
|
public String getPromptText(ConversationContext context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user