Skip to content

Commit 8665528

Browse files
committed
Add todo and separate permission for tests
1 parent aa3323d commit 8665528

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/com/rwconnected/serverkit/command/LoginStreakCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static void register(CommandDispatcher<ServerCommandSource> serverCommand
7777
)
7878
)
7979
).then(CommandManager.literal("simulate-new-day")
80-
.requires(Permission.LOGIN_STREAK_REWARD.require())
80+
.requires(Permission.LOGIN_STREAK_TEST.require())
8181
.then(CommandManager.argument("player", EntityArgumentType.player())
8282
.then(CommandManager.argument("date", StringArgumentType.string())
8383
.executes(LoginStreakCommand::simulateNewDay)

src/main/java/com/rwconnected/serverkit/command/Permission.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public enum Permission {
2323
LOGIN_STREAK_SET("loginStreak.set", 3),
2424
LOGIN_STREAK_SET_PLAYER("loginStreak.set.player", 3),
2525
LOGIN_STREAK_REWARD("loginStreak.reward", 3),
26+
LOGIN_STREAK_TEST("loginStreak.test", 3),
2627

2728
RTC("rtc", 2);
2829

src/main/java/com/rwconnected/serverkit/util/TemplatingEngine.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public static String processTemplate(String template, Map<String, BigDecimal> va
6262
* - the currency pipeline is defined as "${input / 100; %.2f}"
6363
* - the result will be "Amount: ${amount / 100; %.2f}"
6464
*
65+
* TODO: Currency can be parsed by the common economy API. Rewrite to use that instead.
66+
*
6567
* @param template The input template string containing placeholders.
6668
* @param pipelines A map of pipeline names and their corresponding expressions.
6769
* @return The processed string with pipelines replaced by their expressions.

0 commit comments

Comments
 (0)