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 Gamemode effects are glitched?

Discussion in 'Skript' started by Aidanete, Aug 14, 2018.

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

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    9
    When I use the typic command "set the player's gamemode to survival", for example, normally don't work. Why this happens?

     
  2. Best Answer:
    Post #6 by DieHollander_, Aug 15, 2018
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I have never had any issues with this, and I have used it several times. Can you be a little more specific by what you mean when you say "normally don't work" or "effects are glitched"
    The more details you give, the more help we can give you.
     
    • Agree Agree x 1
  4. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    9
    Code (Skript):
    1. on player world change:
    2.     player is in world "Creative":
    3.         teleport the player to {creative}
    4.         delete all items in player's inventory
    5.         give 1 stone to the player
    6.         give 1 cobble stone to the player
    7.         give 1 brick block to the player
    8.         give 1 dirt to the player
    9.         give 1 oak plank to the player
    10.         give 1 oak log to the player
    11.         give 1 torch to the player
    12.         give 1 stone slab to the player
    13.         make player execute command "/creative getbook"
    14.         set the gamemode of player to creative
    15.         send player title "<magenta><bold>Creative <white><bold>World" with subtitle "<yellow>Build up your empire from scratch!" for 3 seconds with 1 second fade in and 1 second fade out
    16.  
    Last time I tested the gamemode didn't work, this is not the only example of this bug.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Are you getting an error? Or is it just not changing the game mode of the player?
    Also, which version of Mc are you running?
    Which version/author of Skript are you running?
     
  6. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    9
    Skript version: Last bensku fork (Downloaded few days ago, I think is dev37)
    MC Version: 1.12.2
    Error logs: None
    Problem: Gamemode of player don't change, this version and the before version this bug happens.
     
  7. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Its because you probably have multiverse core or something which already sets the gamemode of the player, so wait 1/2 tick before setting the gamemode.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...