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.

Change player's game state in 1.18

Discussion in 'Skript' started by Hackusater, Feb 7, 2022.

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

    Hackusater Active Member

    Joined:
    Aug 5, 2017
    Messages:
    74
    Likes Received:
    2
    How do I change a player's game state in 1.18? I know this is possible using the packet Change Game State and but I am unsure how to send NMS packets in 1.18. I tried using skript reflect, but i'm not sure how to import NMS on 1.18.
     
    #1 Hackusater, Feb 7, 2022
    Last edited: Feb 7, 2022
  2. WoolBoy

    WoolBoy Member

    Joined:
    Sep 16, 2021
    Messages:
    15
    Likes Received:
    0
    You can just use the "set player's gamemode" effect
     
  3. Haloxx

    Haloxx Member

    Joined:
    May 2, 2021
    Messages:
    20
    Likes Received:
    0
    just use
    Code (Text):
    1. set players gamemode to creative # change 'creative' to the gamemode you want
     
  4. ryanrox333

    ryanrox333 Member

    Joined:
    Jul 6, 2019
    Messages:
    17
    Likes Received:
    0
    You can use this wiki here to learn how to change the Game State.

    You can also use this spigot post to learn how to change the Game State via NMS.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...