mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 09:08:05 +01:00
+ Added color support to items.
This commit is contained in:
parent
98ef2a6fce
commit
06c7defba5
@ -446,6 +446,8 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil{
|
||||
public Prompt acceptInput(ConversationContext cc, String input) {
|
||||
if(input.equalsIgnoreCase("cancel") == false && input.equalsIgnoreCase("clear") == false){
|
||||
|
||||
input = Quests.parseString(input);
|
||||
|
||||
cc.setSessionData("tempName", input);
|
||||
|
||||
}else if(input.equalsIgnoreCase("clear")){
|
||||
@ -471,6 +473,8 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil{
|
||||
public Prompt acceptInput(ConversationContext cc, String input) {
|
||||
if(input.equalsIgnoreCase("cancel") == false && input.equalsIgnoreCase("clear") == false){
|
||||
|
||||
input = Quests.parseString(input);
|
||||
|
||||
LinkedList<String> lore = new LinkedList<String>();
|
||||
for(String line : input.split(";"))
|
||||
lore.add(line);
|
||||
|
Loading…
Reference in New Issue
Block a user