From bf9936c4721d041167efd548fa1e85580e465b7c Mon Sep 17 00:00:00 2001 From: aPunch Date: Sat, 7 Apr 2012 18:00:31 -0500 Subject: [PATCH] Change to text prompt --- .../trait/text/prompt/StartPrompt.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/java/net/citizensnpcs/trait/text/prompt/StartPrompt.java b/src/main/java/net/citizensnpcs/trait/text/prompt/StartPrompt.java index 33c0130c7..725857f20 100644 --- a/src/main/java/net/citizensnpcs/trait/text/prompt/StartPrompt.java +++ b/src/main/java/net/citizensnpcs/trait/text/prompt/StartPrompt.java @@ -24,16 +24,15 @@ public class StartPrompt extends StringPrompt { return new TextEditStartPrompt(text); else if (input.equalsIgnoreCase("remove")) return new TextRemovePrompt(text); - else { - if (input.equalsIgnoreCase("random")) - Messaging.send((Player) context.getForWhom(), - "Random talker set to " + text.toggleRandomTalker() + "."); - else if (input.equalsIgnoreCase("close")) { - Messaging.send((Player) context.getForWhom(), "Close talker set to " + text.toggle() + "."); - } else - Messaging.sendError((Player) context.getForWhom(), "Invalid edit type."); - return new StartPrompt(text); - } + else if (input.equalsIgnoreCase("random")) + Messaging.send((Player) context.getForWhom(), "Random talker set to " + text.toggleRandomTalker() + + "."); + else if (input.equalsIgnoreCase("close")) + Messaging.send((Player) context.getForWhom(), "Close talker set to " + text.toggle() + "."); + else + Messaging.sendError((Player) context.getForWhom(), "Invalid edit type."); + + return new StartPrompt(text); } @Override