WG regions

Discussion in 'Skript' started by nktfh100, Apr 24, 2017.

Thread Status:
Not open for further replies.
  1. so i tried this:

    Code (Text):
                       
    every 3 seconds:
        loop all players:
            if {ingame.%loop-player%} is true:
                player is in the region "flag1"
                set action bar of loop-player to "&aTest"
                       
    and it doesn't show any errors when u do /sk reload

    help me it's not working ;-;
     
  2. it likes show always the action bar
     
  3. Try this:
    Code (Text):
    if "%region at player%" contains "your region name":
    It worked for me.
     
  4. when i do it its spam java error in the console ;-;
     
  5. Code (Text):

    [19:25:51 WARN]: [Skript] Task #18 for Skript v2.1.2 generated an exception
    java.lang.IncompatibleClassChangeError: Found interface com.sk89q.worldguard.protection.ApplicableRegionSet, but class was expected
            at ch.njol.skript.hooks.regions.WorldGuardHook.getRegionsAt_i(WorldGuardHook.java:195) ~[?:?]
            at ch.njol.skript.hooks.regions.RegionsPlugin.getRegionsAt(RegionsPlugin.java:94) ~[?:?]
            at ch.njol.skript.hooks.regions.expressions.ExprRegionsAt.get(ExprRegionsAt.java:85) ~[?:?]
            at ch.njol.skript.hooks.regions.expressions.ExprRegionsAt.get(ExprRegionsAt.java:1) ~[?:?]
            at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:101) ~[?:?]
            at ch.njol.skript.lang.VariableString.toString(VariableString.java:390) ~[?:?]
            at ch.njol.skript.lang.VariableString.getAll(VariableString.java:500) ~[?:?]
            at ch.njol.skript.lang.VariableString.check(VariableString.java:515) ~[?:?]
            at ch.njol.skript.conditions.CondContains.check(CondContains.java:100) ~[?:?]
            at ch.njol.skript.lang.Condition.run(Condition.java:58) ~[?:?]
            at ch.njol.skript.lang.Conditional.walk(Conditional.java:51) ~[?:?]
            at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91) ~[?:?]
            at ch.njol.skript.lang.Trigger.execute(Trigger.java:53) ~[?:?]
            at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:94) ~[?:?]
            at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:120) ~[?:?]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-c3c767f-33d5de3]
            at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-c3c767f-33d5de3]
            at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:709) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-c3c767f-33d5de3]
            at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-c3c767f-33d5de3]
            at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-c3c767f-33d5de3]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-c3c767f-33d5de3]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]

    this is the error it send when u do if "%region at player%" contains "your region name":
    please help me!
     
  6. What Skript version? You seem to be on Spigot 1.8 and not 1.8.8 which is what the syntax is intended for.
     
  7. well i updated to 1.9 and it fixed
    anyway, thanks for the help!
     
    • Like Like x 1
Thread Status:
Not open for further replies.