Skip to content

Commit 658db5b

Browse files
authored
update permissions api and fix safe MOTD (#344)
couple fixes that probably shouldn't be in the same PR, but here we are updated permissions api to 4.0 to fix a crash on 1.21.6 and above and for the reason I got into the code this time, MOTD didn't allow unsafe tags, but they're fine here, can only be changed in config anyway
1 parent 6639ed1 commit 658db5b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ maven_group = com.fibermc
2020
archives_base_name = essential_commands
2121

2222
# Dependencies
23-
permissions_api_version=0.3.3
23+
permissions_api_version=0.4.0
2424
placeholder_api_version=2.6.2+1.21.5
2525
pal_version=1.14.0
2626
vanish_version=1.5.13+1.21.5

src/main/java/com/fibermc/essentialcommands/commands/MotdCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ private MotdCommand() {}
1919

2020
private static final NodeParser NODE_PARSER = ParserBuilder.of()
2121
.globalPlaceholders()
22-
.add(TagParser.QUICK_TEXT_WITH_STF_SAFE)
22+
.add(TagParser.QUICK_TEXT_WITH_STF)
2323
.build();
2424

2525
public static int run(CommandContext<ServerCommandSource> context) throws CommandSyntaxException {

0 commit comments

Comments
 (0)