Skip to content

Commit aa81363

Browse files
Merge pull request #7 from RedCommand-dev/1.18
[1.18] Player name and UUID values
2 parents 10f916a + ef69502 commit aa81363

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
@@ -132,7 +132,13 @@ public enum ScriptClientValueArgument implements ScriptArgument {
132132
} else {
133133
throw new IllegalStateException("The event is not a menu click event.");
134134
}
135-
});
135+
}),
136+
137+
PLAYER_UUID("Player UUID", "The UUID of the player.", Items.PLAYER_HEAD, ScriptActionArgumentType.TEXT,
138+
(event, context) -> new ScriptTextValue(DFScript.PLAYER_UUID)),
139+
140+
PLAYER_NAME("Player Name", "The name of the player.", Items.PLAYER_HEAD, ScriptActionArgumentType.TEXT,
141+
(event, context) -> new ScriptTextValue(DFScript.PLAYER_NAME));
136142

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

0 commit comments

Comments
 (0)