[Solved] variable can only be set to one object, not more

Discussion in 'Skript' started by APiggyInABukkit, Apr 22, 2017.

Thread Status:
Not open for further replies.
  1. Hello everyone! :D
    So i updated my skript version to v2.2dev26f and updated my server to 1.11.2 (but i think its the skript update)
    and my skript that previously worked now doesnt
    when i start it it says
    [Skript] {GuestBook.%the player%.ip} can only be set to one object, not more (GuestBook.sk, line 11: set {GuestBook.%player%.ip} to ip of player')

    Its supose to say
    [GuestBook] %player%'s IP is <ip> and uuid is <uuid>
    but instead says

    [GuestBook] %player%'s IP is <
    the code is
    Code (Text):
    on join:
        set {GuestBook.%player%.ip} to ip of player
        set {GuestBook.%player%.uuid} to uuid of player
     
    command /guestbook <offline player>:
        description: Returns the players UUID and IP
        usage: /guestbook (or /gb) <player>
        permission: skript.gb.command
        permission message: Sorry, you dont have permission "skript.cb.command" to execute this command
        executable by: players and console
        aliases: /gb
        trigger:
            set {_gb.selected.%player%} to argument
            send "<light blue>[Guest book] <reset>%{_gb.selected.%player%}%'s IP is <%{GuestBook.%{_gb.selected.%player%}%.IP}%> and UUID is <%{GuestBook.%{_gb.selected.%player%}%.uuid}%>" to player
            command sender is the console
            send "<light blue>[Guest book] <reset>%{_gb.selected.%player%}%'s IP is <%{GuestBook.%{_gb.selected.%player%}%.IP}%> and UUID is <%{GuestBook.%{_gb.selected.%player%}%.uuid}%>" to console
    If you need the whole skript you can download it here: https://www.spigotmc.org/resources/guestbook.34359/

    How do i fix this?
    Thank you :D
     
    • 1st: Try to use "player's ip" instead of "ip of player"
    • 2nd: If you want your question to be answered quickly next time, try to open a thread in https://forums.skunity.com/
     
    • Informative Informative x 1
  2. I fixed it with "%ip of player%"
    It looks like it also wasn't showing because of the new json update maybe and was trying to process the <>

    also i dont have an account on skunity XD

    thanks for your response :D

    [Solved, thead locked]
     
Thread Status:
Not open for further replies.