1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Aidanete, Feb 28, 2018.

Thread Status:
Not open for further replies.
  1. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    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 (Skript):
    1. 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:
     
  2. Best Answer:
    Post #2 by Deleted member 5655, Feb 28, 2018
  3. Make it like this %{wm.tpreq.player.Antikore.%player%}%
     
    Aidanete likes this.
  4. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    Thank you so much!
     
    Deleted member 5655 likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...