if player is in world error!?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GK_Nico

Member
Jan 6, 2019
31
0
0
32
Hello where is the error here

because I always get this message when reloading the file
Code:
>sk reload 1
[15:56:29 INFO]: [Skript] Reloading 1.sk...
[15:56:29 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 34: if loop-player has permissions "fly.bypass":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 2: if player is in world "world":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 16: if player is in world "world":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 24: if player is in world "world":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 33: if loop-player is in world "world":')
[15:56:29 INFO]: [Skript] Encountered 4 errors while reloading 1.sk!



Code:
on command "/fly":
    if player is in world "SkyPvP":
        if player has permissions "fly.bypass":
            stop
        else:
            cancel event
            send "&8» &cDies kannst du nur auf deinem IS!"

on command "/efly":
    if player is in world "SkyPvP":
        if player has permissions "fly.bypass":
            stop
        else:
            cancel event
            send "&8» &cDies kannst du nur auf deinem IS!"

on command "/essentials:fly":
    if player is in world "SkyPvP":
        if player has permissions "fly.bypass":
            stop
        else:
            cancel event
            send "&8» &cDies kannst du nur auf deinem IS!"

every tick:
    loop all players:
        if loop-player is in world "SkyPvP":
            if loop-player has permissions "fly.bypass":
            else:
                if loop-player is flying:
                    set flight mode of loop-player to false
 
Code:
[16:20:33 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 34: if loop-player has permissions "fly.bypass":')
[16:20:33 ERROR]: There's no player in a periodical event (1.sk, line 33: player's world = "SkyPvP":')
 
Code:
[16:20:33 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 34: if loop-player has permissions "fly.bypass":')
[16:20:33 ERROR]: There's no player in a periodical event (1.sk, line 33: player's world = "SkyPvP":')
It's loop-player's world if you want to use it in loops
 
code_language.skript:
on command "/fly":
    player's world = "SkyPvP":
        player doesn't have permission "fly.bypass":
            cancel event
            send "&8» &cDies kannst du nur auf deiner IS!" #unbelievable how german ppl can't even use proper grammar

update to 1.13 if not working. You surely are using 1.8
 
Hey could someone tell me why sometimes this error comes?

Code:
>sk reload 1
[01:22:41 INFO]: [Skript] Reloading 1.sk...
[01:22:41 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 32: if loop-player has permissions "fly.bypass":')
[01:22:41 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 34: if loop-player is flying:')
[01:22:41 INFO]: [Skript] Successfully reloaded 1.sk.


Here is the code

Code:
every tick:
    loop all players:
        if loop-player is in world "SkyPvP" or "EventHalle":
            if loop-player has permissions "fly.bypass":
            else:
                if loop-player is flying:
                set flight mode of loop-player to false

and actually I wanted to install a message but I can not get it
 
code_language.skript:
every 5 ticks:
    loop players where [input's world = "SkyPvP" or "EventHalle"]:
        loop-player is flying
        loop-player doesn't have permission "fly.bypass"
        set flight mode of loop-player to false
        send "&cno flienzy in dis world"
 
Unfortunately, this does not get this message and again to the knowledge I have the minecraft version 1.8

Code:
[23:28:54 ERROR]: Can't understand this loop: 'loop players where [input's world = "SkyPvP" or "EventHalle"]' (1.sk, line 30: loop players where [input's world = "SkyPvP" or "EventHalle"]:')
[23:28:54 INFO]: [Skript] Encountered 1 error while reloading 1.sk!
 
Try to use this when you did create the worlds:


Code:
every 5 ticks in "SkyPvP" and "EventHalle":
   loop all players:
       if loop-player don't have permission "fly.bypass":
           if loop-player is flying:
               set flight mode of loop-player to false
 
Hello where is the error here

because I always get this message when reloading the file
Code:
>sk reload 1
[15:56:29 INFO]: [Skript] Reloading 1.sk...
[15:56:29 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (1.sk, line 34: if loop-player has permissions "fly.bypass":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 2: if player is in world "world":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 16: if player is in world "world":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 24: if player is in world "world":')
[15:56:29 ERROR]: 'in world "world"' is not an entity type (1.sk, line 33: if loop-player is in world "world":')
[15:56:29 INFO]: [Skript] Encountered 4 errors while reloading 1.sk!



Code:
on command "/fly":
    if player is in world "SkyPvP":
        if player has permissions "fly.bypass":
            stop
        else:
            cancel event
            send "&8» &cDies kannst du nur auf deinem IS!"

on command "/efly":
    if player is in world "SkyPvP":
        if player has permissions "fly.bypass":
            stop
        else:
            cancel event
            send "&8» &cDies kannst du nur auf deinem IS!"

on command "/essentials:fly":
    if player is in world "SkyPvP":
        if player has permissions "fly.bypass":
            stop
        else:
            cancel event
            send "&8» &cDies kannst du nur auf deinem IS!"

every tick:
    loop all players:
        if loop-player is in world "SkyPvP":
            if loop-player has permissions "fly.bypass":
            else:
                if loop-player is flying:
                    set flight mode of loop-player to false
try add a trigger after the commands
 
Status
Not open for further replies.