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.

block version

Discussion in 'Skript' started by Funck, Dec 13, 2019.

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

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    Is it possible to make a connection to the server only from certain versions using a script?
     
  2. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Yes, check the docs.
     
  3. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    I checked, but did not find anything. can you tell me how?
     
  4. ZeyKra_

    ZeyKra_ Active Member

    Joined:
    Dec 12, 2019
    Messages:
    109
    Likes Received:
    2
    You can use the tuske event to know the version of the player and by that make an verification Like that

    https://docs.skunity.com/syntax/search/id:2817 the tuske event (u must have viaversion or protocolsupport on ur server)

    Code (Text):
    1. on join:
    2.     if minecraft version of player isn't 1.8:
    3.         kick the player due to "You must use 1.8"
    I think something like that can be good
     
Thread Status:
Not open for further replies.
Loading...