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 on inventory click event. 'item' is not an item type.

Discussion in 'Skript' started by FireRoz, Nov 29, 2020.

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

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
    hi, i'm trying to make a report gui and well then... it doesn't go that well.
    So, heres the issue- whenever i try and run this code:
    Code (Text):
    1. on inventory click:
    2.   if inventory name of player's current inventory is "&e&lChoose a reason":
    3.     if name of clicked item is "&d&lReport this player for &5Other":
    4.       loop all players:
    5.         loop-player has permission "report.notify"
    6.         send "&8[&dReports&8] &d%player% &7has reported &c%{rep::*}% &7for '&7&dOther&7'" to loop-player
    7.         send "&aYour report has been forwarded to staff."
    8.         wait 1 second
    9.       remove arg-1 from {rep::*}
    It says this error:
    'item' is not an item type (staffFeatures.sk, line 90: if name of clicked item is "&d&lReport this player for &5Other":')


     
    #1 FireRoz, Nov 29, 2020
    Last edited: Dec 1, 2020
  2. Best Answer:
    Post #4 by FireRoz, Dec 1, 2020
  3. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    495
    Likes Received:
    31
    If name of event-slot
     
  4. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    495
    Likes Received:
    31
    https://forums.skunity.com/threads/vanilla-guis.8939/
     
  5. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
    Solved -
    format slot 31 of player with golden apple named "&d&lReport this player for &5Other" to close then run [make player execute command "/蘇達蘇達 %arg-1% other"]

    Use set slot for a normal item, format slot and the example above to run a command.
    also im not chinese i jsut decided to make a chinese command idk why lmao
     
  6. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    495
    Likes Received:
    31
    Umm sorry but marking this as a best answer even tho this is completely false is ridiculous. Anyone who has experience with Skript won't use format slot.

    Using vanilla GUIs or if you're really about to use an add-on, Skript-GUI, is the best way.
     
  7. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
    vanilla gui doesn't work for me, for me it works.
    I don't have 2 minecraft servers so unfortunately, I can't know if it works for other people.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...