Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Formatting: fix permission for markdown-url
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Dec 21, 2023
1 parent 9acdfdc commit 12624ec
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ private void splitStringToWordParams(@Nullable Player sender,

if (formattingMap.containsKey("url")) {

if (config.getVaultBoolean(sender, this + ".list.url.markdown-support")) {
if (config.getVaultBoolean(sender, this + ".list.url.markdown-support")
&& !hasNoPermission(sender, "markdown-url")) {
Matcher urlMatcher = Pattern.compile("\\[(?<text>[^\\]]*)\\]\\((?<link>[^\\)]*)\\)").matcher(word);
if (urlMatcher.find()) {
wordParams.setUrlText(urlMatcher.group(2));
Expand Down

0 comments on commit 12624ec

Please sign in to comment.