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.

On kill item/command.

Discussion in 'Skript' started by StabMePlease, Jun 30, 2019.

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

    StabMePlease Member

    Joined:
    Jun 30, 2019
    Messages:
    2
    Likes Received:
    0
    Hello, I am a server owner and I have recently moved to Skript, So far all of my code has worked.

    Since I've had an issue finding a way to give a player a single golden apple when the player gets a kill on another player.

    I'd appreciate someones help with this issue, Thanks a bunch! - Lachie
     
    #1 StabMePlease, Jun 30, 2019
    Last edited: Jun 30, 2019
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    What is your actual code?
     
  3. StabMePlease

    StabMePlease Member

    Joined:
    Jun 30, 2019
    Messages:
    2
    Likes Received:
    0
    I have none at this point
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    I don't normally write code for people, but since its three lines, here you go:
    Code (Skript):
    1. on death of a player:
    2.     if attacker is a player:
    3.         give attacker a golden apple
     
    • Useful Useful x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...