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.

Looping Glitch

Discussion in 'Skript' started by Charles, Feb 3, 2017.

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

    Charles Member

    Joined:
    Jan 26, 2017
    Messages:
    48
    Likes Received:
    2
    Medals:
    Skript Version: Skript 2.2 V8b
    Skript Author: Njol
    Minecraft Version: 1.7/1.8

    ---
    Full Code:
    Code (Skript):
    1.  
    2. on right click:
    3.     if event-player's tool is flint and steel:
    4.         set {_true} to true
    5.     if event-player's tool is lava bucket:
    6.         set {_true} to true
    7.     {_true} is set
    8.     loop players in radius 6 around player:
    9.         {Spectator::%loop-player%} is not set
    10.         loop-player's gamemode is survival
    11.         cancel event
    12.  
    Console Errors:

    Code (Skript):
    1.  
    2. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [paperspigot.jar:git-PaperSpigot-1f7d532]
    3. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:549) [paperspigot.jar:git-PaperSpigot-1f7d532]
    4. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:643) [paperspigot.jar:git-PaperSpigot-1f7d532]
    5. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:307) [paperspigot.jar:git-PaperSpigot-1f7d532]
    6. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:795) [paperspigot.jar:git-PaperSpigot-1f7d532]
    7. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [paperspigot.jar:git-PaperSpigot-1f7d532]
    8. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:189) [paperspigot.jar:git-PaperSpigot-1f7d532]
    9. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInBlockPlace.handle(PacketPlayInBlockPlace.java:86) [paperspigot.jar:git-PaperSpigot-1f7d532]
    10. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:50) [paperspigot.jar:git-PaperSpigot-1f7d532]
    11. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:666) [paperspigot.jar:git-PaperSpigot-1f7d532]
    12. 03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerInteractManager.interact(PlayerInteractManager.java:382) [paperspigot.jar:git-PaperSpigot-1f7d532]
    13. 03.02 13:59:30 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:242) [paperspigot.jar:git-PaperSpigot-1f7d532]
    14. 03.02 13:59:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:494) [paperspigot.jar:git-PaperSpigot-1f7d532]
    15. 03.02 13:59:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:509) [paperspigot.jar:git-PaperSpigot-1f7d532]
    16. 03.02 13:59:30 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36) ~[paperspigot.jar:git-PaperSpigot-1f7d532]
    17. 03.02 13:59:30 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[paperspigot.jar:git-PaperSpigot-1f7d532]
    18. 03.02 13:59:30 [Server] INFO at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110) ~[?:?]
    19. 03.02 13:59:30 [Server] INFO at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:150) ~[?:?]
    20. 03.02 13:59:30 [Server] INFO at ch.njol.skript.lang.Trigger.execute(Trigger.java:53) ~[?:?]
    21. 03.02 13:59:30 [Server] INFO at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91) ~[?:?]
    22. 03.02 13:59:30 [Server] INFO at ch.njol.skript.lang.Loop.walk(Loop.java:81) ~[?:?]
    23. 03.02 13:59:30 [Server] INFO at ch.njol.skript.expressions.ExprEntities.iterator(ExprEntities.java:194) ~[?:?]
    24. 03.02 13:59:30 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.World.getNearbyEntities(Lorg/bukkit/Location;DDD)Ljava/util/Collection;
    25. 03.02 13:59:30 [Server] ERROR Could not pass event PlayerInteractEvent to Skript v2.2-Fixes-V8b
    26.  
    Other Useful Info:

    Addons using (including versions):
    skQuery (3.21.4), SkStuff (1.6.2), skRayFall (1.8), SQLibrary (7.1), Skellet )1.7.7e

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it? Switching server versions and skript 2.2. When I switched to different versions of skript 2.2, a bunch of xp orbs would appear around the player.
     
    #1 Charles, Feb 3, 2017
    Last edited: Feb 14, 2017
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Try...
    Code (Skript):
    1. loop all players in radius 6 of player:
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    That doesn't work either :/
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Hmm, quite strange, try putting "use 2.1.2 loops" above the loop (it's something that mirre did as a temporarily fix to a bug with the loops before).
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    isn't this in the wrong section?
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Probably, I was awake for like 24+ hours when I posted it.
    --- Double Post Merged, Feb 7, 2017, Original Post Date: Feb 7, 2017 ---
    [​IMG]
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Your version of Skript is too updated for 1.7/1.8
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    Do you know which I should get? I thought I got the right one a while back, but I guess I misread the post.
    --- Double Post Merged, Feb 14, 2017, Original Post Date: Feb 7, 2017 ---
    Bump?
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    As an alternative you could try updating your 1.7.10 build.
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    That really wouldn't work out for me as the objective is to have 1.7.
     
  11. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    225
    The thing is you're already using 1.7.10, I just suggested you to update your Spigot 1.7.10 BUILD, not change the version
     
Thread Status:
Not open for further replies.

Share This Page

Loading...