Looping Glitch

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


    You can always check out our Wiki for downloads and any other information about Skript!

Not open for further replies.


Jan 26, 2017
San Diego, California
Skript Version: Skript 2.2 V8b
Skript Author: Njol
Minecraft Version: 1.7/1.8

Full Code:
on right click:
    if event-player's tool is flint and steel:
        set {_true} to true
    if event-player's tool is lava bucket:
        set {_true} to true
    {_true} is set
    loop players in radius 6 around player:
        {Spectator::%loop-player%} is not set
        loop-player's gamemode is survival
        cancel event

Console Errors:

03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:549) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:643) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:307) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:795) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:189) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInBlockPlace.handle(PacketPlayInBlockPlace.java:86) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:50) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:666) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerInteractManager.interact(PlayerInteractManager.java:382) [paperspigot.jar:git-PaperSpigot-1f7d532]
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]
03.02 13:59:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:494) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:509) [paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36) ~[paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[paperspigot.jar:git-PaperSpigot-1f7d532]
03.02 13:59:30 [Server] INFO at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110) ~[?:?]
03.02 13:59:30 [Server] INFO at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:150) ~[?:?]
03.02 13:59:30 [Server] INFO at ch.njol.skript.lang.Trigger.execute(Trigger.java:53) ~[?:?]
03.02 13:59:30 [Server] INFO at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91) ~[?:?]
03.02 13:59:30 [Server] INFO at ch.njol.skript.lang.Loop.walk(Loop.java:81) ~[?:?]
03.02 13:59:30 [Server] INFO at ch.njol.skript.expressions.ExprEntities.iterator(ExprEntities.java:194) ~[?:?]
03.02 13:59:30 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.World.getNearbyEntities(Lorg/bukkit/Location;DDD)Ljava/util/Collection;
03.02 13:59:30 [Server] ERROR Could not pass event PlayerInteractEvent to Skript v2.2-Fixes-V8b

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


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.
Last edited:
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).
isn't this in the wrong section?
Probably, I was awake for like 24+ hours when I posted it.
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).
Not open for further replies.