Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/main/java/eu/pb4/placeholders/impl/textparser/BuiltinTags.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package eu.pb4.placeholders.impl.textparser;


import com.google.common.collect.ImmutableMultimap;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import com.mojang.authlib.properties.PropertyMap;
import com.mojang.datafixers.util.Either;
import eu.pb4.placeholders.api.arguments.StringArgs;
import eu.pb4.placeholders.api.arguments.SimpleArguments;
Expand Down Expand Up @@ -216,6 +220,13 @@ public static void register() {

var next = data.getNext("name", "");
var maybeUuid = data.get("uuid");
var texture = data.get("texture");

if (texture != null) {
PropertyMap map = new PropertyMap(ImmutableMultimap.of("textures", new Property("textures", texture, null)));
return new ObjectNode(new PlayerTextObjectContents(ProfileComponent.ofStatic(new GameProfile(Util.NIL_UUID, "", map)), hat));
}

UUID uuid = null;
if (maybeUuid == null) {
try {
Expand Down