Skip to content

Commit

Permalink
make minimessage resolve all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
YouHaveTrouble committed Dec 20, 2022
1 parent 153ad5f commit ed1024c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CommandWhitelistBukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>eu.endermite.commandwhitelist</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>2.5.3</version>
<version>2.5.4</version>
</parent>

<artifactId>Bukkit</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion CommandWhitelistCommon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>eu.endermite.commandwhitelist</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>2.5.3</version>
<version>2.5.4</version>
</parent>

<artifactId>Common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,13 @@
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.minimessage.MiniMessage;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
import net.kyori.adventure.text.minimessage.tag.standard.StandardTags;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class CWCommand {

public static MiniMessage miniMessage = MiniMessage.builder().tags(
TagResolver.builder()
.resolver(StandardTags.color())
.resolver(StandardTags.decorations())
.resolver(StandardTags.gradient())
.resolver(StandardTags.font())
.resolver(StandardTags.reset())
.resolver(StandardTags.rainbow())
.resolver(StandardTags.translatable())
.resolver(StandardTags.newline())
.resolver(StandardTags.clickEvent())
.resolver(StandardTags.keybind())
.build()
).build();
public static MiniMessage miniMessage = MiniMessage.miniMessage();

public static boolean addToWhitelist(ConfigCache configCache, String command, String group) {
CWGroup cwGroup = configCache.getGroupList().get(group);
Expand Down
2 changes: 1 addition & 1 deletion CommandWhitelistVelocity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>eu.endermite.commandwhitelist</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>2.5.3</version>
<version>2.5.4</version>
</parent>

<artifactId>Velocity</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion CommandWhitelistWaterfall/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>eu.endermite.commandwhitelist</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>2.5.3</version>
<version>2.5.4</version>
</parent>

<artifactId>Waterfall</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>eu.endermite.commandwhitelist</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>2.5.3</version>
<version>2.5.4</version>
<modules>
<module>CommandWhitelistCommon</module>
<module>CommandWhitelistBukkit</module>
Expand Down

0 comments on commit ed1024c

Please sign in to comment.