Error with Region "Warzone" or Something

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

bySelf

Member
Jun 5, 2018
2
0
0
33
The Code:


code_language.skript:
on right click:
    player is holding a torch named "&r&lSuministro Epico &6(Click-Derecho)" with lore "&7Click-Derecho para invocar un Suministro Epico":
        if wg region at player is "Warzone":
            set {_loc} to the location at player
            set {_block} to yellow wool
            set {_holo} to the location 9 meters below {_loc}
            set {_r::*} to all players in radius 50 of location of player
            send "&3&l(!) Un &e&nSuministro Epico &3&lfue lanzado cerca!" to {_r::*}
            spawn undroppable falling block of {_block} named "Suministro Epico" at {_loc}
            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!! ^^
 
i believe you can do
code_language.skript:
if "%region at player%" contains "Warzone":
 
How i can replace the
code_language.skript:
if "%region at player%" contains "Warzone":
to insert the Faction WarZone region?
[doublepost=1528197764,1528197606][/doublepost]
if "%region at player%" contains "Warzone":
Same error
 
Status
Not open for further replies.