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 our 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 Well-Known Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    8
    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 SoppeJam, Feb 28, 2018
  3. SoppeJam

    SoppeJam Active Member

    Joined:
    Nov 28, 2017
    Messages:
    32
    Likes Received:
    3
    Make it like this %{wm.tpreq.player.Antikore.%player%}%
     
    • Like Like x 1
  4. Aidanete

    Aidanete Well-Known Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    8
    Thank you so much!
     
    • Like Like x 1
Thread Status:
Not open for further replies.
Loading...