Skip to content

Commit 553bfc9

Browse files
v2.3.3 : Updated EZTEXT Errors and PLAY
1 parent 91fba56 commit 553bfc9

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

EZCode/EZCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class EzCode
2323
/// <summary>
2424
/// Directory of the script playing
2525
/// </summary>
26-
public static string Version { get; } = "2.3.2";
26+
public static string Version { get; } = "2.3.3";
2727

2828
#region Variables_and_Initializers
2929
/// <summary>

EZCode/EZText.cs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ static EZText StaticTranslate(string line)
454454
}
455455
else
456456
{
457-
Error("Expected 'stop the program' to clear the console", e);
457+
Error("Expected 'stop the program' or 'stop the file' to stop the program or file", e);
458458
}
459459
}
460460
catch
@@ -546,17 +546,24 @@ static EZText StaticTranslate(string line)
546546
case "play":
547547
try
548548
{
549-
if (words[1] == "project")
549+
if (words[1] == "the")
550550
{
551-
Code += $"file playproj {string.Join(" ", words.Skip(2))}";
552-
}
553-
else if (words[1] == "file")
554-
{
555-
Code += $"file play {string.Join(" ", words.Skip(2))}";
551+
if (words[2] == "project")
552+
{
553+
Code += $"file playproj {string.Join(" ", words.Skip(3))}";
554+
}
555+
else if (words[2] == "file")
556+
{
557+
Code += $"file play {string.Join(" ", words.Skip(3))}";
558+
}
559+
else
560+
{
561+
Error("Expected 'project' or 'file' for syntax 'play the project/file URL'", e);
562+
}
556563
}
557564
else
558565
{
559-
Error("Expected 'project' or 'file' for syntax 'play project/file URL'", e);
566+
Error("Expected 'the' for syntax 'play the project/file URL'", e);
560567
}
561568
}
562569
catch

0 commit comments

Comments
 (0)