From a845cb4f26ec3449867f823e502d03f64a06fd83 Mon Sep 17 00:00:00 2001 From: Jake Date: Sun, 15 Dec 2024 04:17:50 +0100 Subject: [PATCH] Added "Thrice" to ExprTimes (#7235) * Added "Thrice" to ExprTimes * Update ExprTimes.sk --------- Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> --- src/main/java/ch/njol/skript/expressions/ExprTimes.java | 2 +- src/test/skript/tests/syntaxes/expressions/ExprTimes.sk | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/njol/skript/expressions/ExprTimes.java b/src/main/java/ch/njol/skript/expressions/ExprTimes.java index f9d99e09abf..16d4de265d5 100755 --- a/src/main/java/ch/njol/skript/expressions/ExprTimes.java +++ b/src/main/java/ch/njol/skript/expressions/ExprTimes.java @@ -51,7 +51,7 @@ public class ExprTimes extends SimpleExpression { static { Skript.registerExpression(ExprTimes.class, Long.class, ExpressionType.SIMPLE, - "%number% time[s]", "once", "twice"); + "%number% time[s]", "once", "twice", "thrice"); } @SuppressWarnings("null") diff --git a/src/test/skript/tests/syntaxes/expressions/ExprTimes.sk b/src/test/skript/tests/syntaxes/expressions/ExprTimes.sk index 5001a78ade0..edb09f9080a 100644 --- a/src/test/skript/tests/syntaxes/expressions/ExprTimes.sk +++ b/src/test/skript/tests/syntaxes/expressions/ExprTimes.sk @@ -6,3 +6,7 @@ test "times": add 1 to {_count} assert {_count} is 3 with "count was %{_count}% instead of 3" assert {_three} is 3 with "original number wasn't 3" + set {_count} to 0 + loop thrice: + add 1 to {_count} + assert {_count} is 3 with "thrice count was %{_count}% instead of 3"