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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ERROR WITH WORLDGUARD!! (Help me!!)

Discussion in 'Java' started by OngMong, Oct 27, 2018.

  1. O

    OngMong Member

    Joined:
    Aug 5, 2018
    Messages:
    3
    Likes Received:
    0
    Hello.
    I have an error with a simple script with regions, worldguard.

    First, belows are my script. so simple.
    Code (Skript):
    1. on region exit:
    2.     if "%region%" contains "wild1":
    3.         send "&b여기부터는 &4&l위험한 무법 지대&b인, &a&l야생&b입니다."
    4.         wait 3 seconds
    5. on region enter:
    6.     if "%region%" contains "wild1":
    7.         send "&a&l야생 01 &e- &b여기는 &a&l안전&b합니다."
    8.         wait 3 seconds
    9. on damage:
    10.     if attacker is in the region "wild1":
    11.         cancel the event
    12. on damage of player:
    13.     if victim is in the region "wild1":
    14.         cancel the event
    and.. it's my worildguard file.

    Code (Skript):
    1. regions:
    2.     wild8:
    3.         min: {x: -441.0, y: 64.0, z: 666.0}
    4.         max: {x: -421.0, y: 79.0, z: 686.0}
    5.         members: {}
    6.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    7.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    8.             lava-flow: deny, mob-spawning: deny}
    9.         owners: {}
    10.         type: cuboid
    11.         priority: 0
    12.     wild6:
    13.         min: {x: -387.0, y: 72.0, z: -519.0}
    14.         max: {x: -367.0, y: 87.0, z: -499.0}
    15.         members: {}
    16.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    17.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    18.             lava-flow: deny, mob-spawning: deny}
    19.         owners: {}
    20.         type: cuboid
    21.         priority: 0
    22.     wild7:
    23.         min: {x: -435.0, y: 79.0, z: -918.0}
    24.         max: {x: -415.0, y: 94.0, z: -898.0}
    25.         members: {}
    26.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    27.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    28.             lava-flow: deny, mob-spawning: deny}
    29.         owners: {}
    30.         type: cuboid
    31.         priority: 0
    32.     wild4:
    33.         min: {x: 65.0, y: 62.0, z: 227.0}
    34.         max: {x: 85.0, y: 77.0, z: 247.0}
    35.         members: {}
    36.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    37.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    38.             lava-flow: deny, mob-spawning: deny}
    39.         owners: {}
    40.         type: cuboid
    41.         priority: 0
    42.     wild5:
    43.         min: {x: -125.0, y: 79.0, z: -283.0}
    44.         max: {x: -105.0, y: 94.0, z: -263.0}
    45.         members: {}
    46.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    47.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    48.             lava-flow: deny, mob-spawning: deny}
    49.         owners: {}
    50.         type: cuboid
    51.         priority: 0
    52.     wild2:
    53.         min: {x: 308.0, y: 71.0, z: -84.0}
    54.         max: {x: 328.0, y: 86.0, z: -64.0}
    55.         members: {}
    56.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    57.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    58.             lava-flow: deny, mob-spawning: deny}
    59.         owners: {}
    60.         type: cuboid
    61.         priority: 0
    62.     wild3:
    63.         min: {x: 599.0, y: 71.0, z: -220.0}
    64.         max: {x: 619.0, y: 86.0, z: -200.0}
    65.         members: {}
    66.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    67.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    68.             lava-flow: deny, mob-spawning: deny}
    69.         owners: {}
    70.         type: cuboid
    71.         priority: 0
    72.     wild1:
    73.         min: {x: 322.0, y: 70.0, z: 129.0}
    74.         max: {x: 342.0, y: 85.0, z: 149.0}
    75.         members: {}
    76.         flags: {other-explosion: deny, creeper-explosion: deny, water-flow: deny,
    77.             mob-damage: deny, passthrough: deny, enderman-grief: deny, tnt: deny,
    78.             lava-flow: deny, mob-spawning: deny}
    79.         owners: {}
    80.         type: cuboid
    81.         priority: 0
    82.  

    and! It is my console error file.
    IDK why it happens...
    Please help me!!!

    Code (Java):
    1. [Skript] Task #10 for Skript v2.2-dev36 generated an exception
    2. java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
    3.         at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:244) ~[?:?]
    4.         at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
    5.         at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:421) ~[?:?]
    6.         at ch.njol.skript.registrations.Classes.parse(Classes.java:450) ~[?:?]
    7.         at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:95) ~[?:?]
    8.         at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:84) ~[?:?]
    9.         at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
    10.         at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:179) ~[?:?]
    11.         at ch.njol.skript.conditions.CondCompare.init(CondCompare.java:130) ~[?:?]
    12.         at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:253) ~[?:?]
    13.         at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180) ~[?:?]
    14.         at ch.njol.skript.lang.Condition.parse(Condition.java:81) ~[?:?]
    15.         at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1051) ~[?:?]
    16.         at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:662) ~[?:?]
    17.         at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389) ~[?:?]
    18.         at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401) ~[?:?]
    19.         at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:331) ~[?:?]
    20.         at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:361) ~[?:?]
    21.         at ch.njol.skript.Skript$2.run(Skript.java:490) ~[?:?]
    22.         at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[Spigot_1.9.jar:git-Spigot-d20369f-7fc5cd8]
    23.         at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [Spigot_1.9.jar:git-Spigot-d20369f-7fc5cd8]
    24.         at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:729) [Spigot_1.9.jar:git-Spigot-d20369f-7fc5cd8]
    25.         at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [Spigot_1.9.jar:git-Spigot-d20369f-7fc5cd8]
    26.         at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [Spigot_1.9.jar:git-Spigot-d20369f-7fc5cd8]
    27.         at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [Spigot_1.9.jar:git-Spigot-d20369f-7fc5cd8]
    28.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
    --- Double Post Merged, Oct 27, 2018, Original Post Date: Oct 27, 2018 ---
    I'm in 1.9, so using dev 36. (I also tried 37!)
     
  2. F

    Flajakay Active Member

    Joined:
    Jul 29, 2018
    Messages:
    42
    Likes Received:
    1
    Omg.
    It's wrong category :emoji_slight_smile:

    Your code is wrong. Try this.
    Code (Skript):
    1. on region exit:
    2.     if "%region%" contains "wild1":
    3.         send "&b여기부터는 &4&l위험한 무법 지대&b인, &a&l야생&b입니다."
    4.         set {nodamage.wild1.%player%} to false
    5.         wait 3 seconds
    6. on region enter:
    7.     if "%region%" contains "wild1":
    8.         send "&a&l야생 01 &e- &b여기는 &a&l안전&b합니다."
    9.         set {nodamage.wild1.%player%} to true
    10.         wait 3 seconds
    11. on damage:
    12.     if {nodamage.wild1.%attacker%} is true:
    13.         if victim is a player:
    14.             cancel the event
     
Loading...