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.

Addon for on any move?

Discussion in 'Skript' started by entwickeln, May 16, 2022.

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

    entwickeln Member

    Joined:
    May 11, 2022
    Messages:
    40
    Likes Received:
    0
    Hello Guys! :emoji_slight_smile: I tried to do something with "on any movement:"
    But it gives me error.
    What Addon do i need?
     
  2. BanditEagle

    BanditEagle Active Member

    Joined:
    May 3, 2021
    Messages:
    55
    Likes Received:
    0
    what is the error and what is your skript? Also you can use this:
    Code (Text):
    1. on move:
     
  3. entwickeln

    entwickeln Member

    Joined:
    May 11, 2022
    Messages:
    40
    Likes Received:
    0
    Bruh, can't you just say the addon that i need for "on move"?

    My Plugins are: skRayFall, Skript, Vault, Essentials, Worldedit.

    And Error is: Line 8: (antiafk.sk)
    Can't understand this event: 'on move'
    Line: on move:
     
  4. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
    You don't need any addons you're just doing it wrong
    Code (Text):
    1. [on] %entitydata% (move|walk|step)
    Code (Text):
    1. [on] any move[ment]
     
  5. entwickeln

    entwickeln Member

    Joined:
    May 11, 2022
    Messages:
    40
    Likes Received:
    0
    Not working.
     
  6. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
    Send your code and the error
     
  7. entwickeln

    entwickeln Member

    Joined:
    May 11, 2022
    Messages:
    40
    Likes Received:
    0
    https://gyazo.com/9b297ddabf8a8d9cc93b912229eda044
    --- Double Post Merged, May 17, 2022, Original Post Date: May 17, 2022 ---
    And the code:
    every 2.5 minutes:
    loop all players:
    if {AFK::*} contains player:
    make console execute command "/kick %{AFK::*}%"
    else:
    add player to {AFK::*}


    [on] %entitydata% (move|walk|step):
    remove player from {AFK::*}
    on chat:
    remove player from {AFK::*}
    on click:
    remove player from {AFK::*}
    on inventory click:
    remove player from {AFK::*}
    on command:
    remove player from {AFK::*}
     
  8. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
    It's not that hard to read syntax
    [optional]
    (choose|one)
    %type%
     
  9. entwickeln

    entwickeln Member

    Joined:
    May 11, 2022
    Messages:
    40
    Likes Received:
    0
    Can't you just send me an edited Code. I don't understand what you want from me xd my englisch is bad, im from germany
     
  10. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
Thread Status:
Not open for further replies.

Share This Page

Loading...