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.

Error with Region "Warzone" or Something

Discussion in 'Skript' started by bySelf, Jun 5, 2018.

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

    bySelf Member

    Joined:
    Jun 5, 2018
    Messages:
    2
    Likes Received:
    0
    The Code:


    Code (Skript):
    1. on right click:
    2.     player is holding a torch named "&r&lSuministro Epico &6(Click-Derecho)" with lore "&7Click-Derecho para invocar un Suministro Epico":
    3.         if wg region at player is "Warzone":
    4.             set {_loc} to the location at player
    5.             set {_block} to yellow wool
    6.             set {_holo} to the location 9 meters below {_loc}
    7.             set {_r::*} to all players in radius 50 of location of player
    8.             send "&3&l(!) Un &e&nSuministro Epico &3&lfue lanzado cerca!" to {_r::*}
    9.             spawn undroppable falling block of {_block} named "Suministro Epico" at {_loc}
    10.             remove 1 torch named "&r&lSuministro Epico &6(Click-Derecho)" with lore "&7Click-Derecho para invocar un Suministro Epico" from the player



    The Log:



    [09:43:59 ERROR]: #!#!
    [09:43:59 ERROR]: #!#! Stack trace:
    [09:43:59 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for region
    [09:43:59 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:242)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1375)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1096)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:216)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:171)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.Condition.parse(Condition.java:83)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:729)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:56)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:46)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:736)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:510)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:268)
    [09:43:59 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155)
    [09:43:59 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    [09:43:59 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    [09:43:59 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
    [09:43:59 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627)
    [09:43:59 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412)
    [09:43:59 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
    [09:43:59 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    [09:43:59 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    [09:43:59 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
    [09:43:59 ERROR]: #!#!
    [09:43:59 ERROR]: #!#! Version Information:
    [09:43:59 ERROR]: #!#! Skript: 2.2-SNAPSHOT
    [09:43:59 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
    [09:43:59 ERROR]: #!#! Minecraft: 1.8.8
    [09:43:59 ERROR]: #!#! Java: 1.8.0_131 (OpenJDK 64-Bit Server VM 25.131-b11)
    [09:43:59 ERROR]: #!#! OS: Linux amd64 3.16.0
    [09:43:59 ERROR]: #!#!
    [09:43:59 ERROR]: #!#! Running CraftBukkit: false
    [09:43:59 ERROR]: #!#!
    [09:43:59 ERROR]: #!#! Current node: if wg region at player is "Warzone": (Suministros.sk, line 29)
    [09:43:59 ERROR]: #!#! Current item: null
    [09:43:59 ERROR]: #!#!
    [09:43:59 ERROR]: #!#! Thread: Server thread
    [09:43:59 ERROR]: #!#!
    [09:43:59 ERROR]: #!#! End of Error.
    [09:43:59 ERROR]: #!#!

    Thanks!! ^^
     
  2. Take!!

    Take!! Member

    Joined:
    Mar 4, 2018
    Messages:
    18
    Likes Received:
    3
    i believe you can do
    Code (Skript):
    1. if "%region at player%" contains "Warzone":
     
  3. bySelf

    bySelf Member

    Joined:
    Jun 5, 2018
    Messages:
    2
    Likes Received:
    0
    How i can replace the
    Code (Skript):
    1. if "%region at player%" contains "Warzone":
    to insert the Faction WarZone region?
    --- Double Post Merged, Jun 5, 2018, Original Post Date: Jun 5, 2018 ---
    Same error
     
Thread Status:
Not open for further replies.

Share This Page

Loading...