Problem with <none>

Discussion in 'Spigot Plugin Help' started by DopeNation, Jan 8, 2020.

  1. Hey,
    I got a Problem.

    When I use this Script:

    command /tpaccept [<text>]:
    if {tpareq.%player%} exists:
    teleport {tpareq.%player%} to location of player
    send "{@Prefix} %{essentials.tpa.%player%}% &7wurde zu dir teleportiert!" to player
    send "{@Prefix} &7Du wurdest zu &6%{essentials.tpa.%player%}% &7teleportiert!" to {essentials.tpa.%player%}
    delete {essentials.tpa.%player%}
    delete {tpareq.%player%}
    message "{@Prefix} &cDu hast keine Anfrage bekommen!" to player

    Instead of "Playername was teleported to you." at %{essentials.tpa.%player%}% there stand "<none> was teleported to you."

    How can I fix that?

  2. My guess is that variable was never set, since it shows up as none.
  3. What does that mean and how can I fix it?
  4. If you don't know what that means, is hard to explain. You are using a variable, and if it shows as none, that means it has a value of, well, none, ie: was never set. You can fix it by, you guessed it, setting it.
  5. And where can i add it?