Placeholder Value (Expression) — skript-placeholders

Addon: skript-placeholders · Category: Expression · Since: 1.0.0, 1.2.0 (MVdWPlaceholderAPI support), 1.7.0 (relational placeholder support)

Syntax

[the] [value[s] of [the]] [relational] placeholder[s] [in] %strings% [(for|from|of) %-players/offlineplayers%]

Description

An expression to obtain the value of a placeholder from a supported plugin.

Examples

command /ping <player>:
	trigger:
		set {_ping} to the placeholder "player_ping" from arg-1 # PlaceholderAPI
		set {_ping} to the placeholder "{ping}" from arg-1 # MVdWPlaceholderAPI
		send "Ping of %arg-1%: %{_ping}%" to the player
command /friend status <player> <player>:
	trigger:
	set {_status} to the relational placeholder "rel_friendship_status" from arg-1 and arg-2
	send "Status: %{_status}%" to the player

View source