Solved How I can show a variable value in a message or text

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aidanete

Active Member
Apr 11, 2017
139
10
0
I'm trying to show the value of a variable in a message like:

{var.player} is 1
message "player is {var.player}" and get in the game "Player is 1"

I want to make a message show a variable but the message shows the variable name instead. I don't know why. Here one of the failing code:

code_language.skript:
message "<gold>[<yellow>WarpManager<gold>] <lime>Sucessfully teleported<white> {wm.tpreq.player.%player%} <lime>to <white>you"

The message I get is this:
[WarpManager] Sucessfully teleported {wm.tpreq.player.Antikore} to you

Any suggestion of how I can do this would be very welcome
NOTE: My Minecraft name is Antikore :emoji_stuck_out_tongue_winking_eye:
 
Status
Not open for further replies.