Skip to content

Commit ef69502

Browse files
committed
Player name and UUID values
1 parent 10f916a commit ef69502

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)