Skip to content

Commit a36033c

Browse files
Merge pull request #6 from RedCommand-dev/1.19
[1.19] Player name and UUID values
2 parents 997dbe0 + 29c27ab commit a36033c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/io/github/techstreet/dfscript/script/argument/ScriptClientValueArgument.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ public enum ScriptClientValueArgument implements ScriptArgument {
131131
} else {
132132
throw new IllegalStateException("The event is not a menu click event.");
133133
}
134-
});
134+
}),
135+
136+
PLAYER_UUID("Player UUID", "The UUID of the player.", Items.PLAYER_HEAD, ScriptActionArgumentType.TEXT,
137+
(event, context) -> new ScriptTextValue(DFScript.PLAYER_UUID)),
138+
139+
PLAYER_NAME("Player Name", "The name of the player.", Items.PLAYER_HEAD, ScriptActionArgumentType.TEXT,
140+
(event, context) -> new ScriptTextValue(DFScript.PLAYER_NAME));
135141

136142
private final String name;
137143
private final ItemStack icon;

0 commit comments

Comments
 (0)