skQuery within cuboid

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

iChinchillinq

Member
May 11, 2018
10
0
0
22
Skript Version: Skript 2.3.6
Skript Author: Njol, Mirreski, bensku, TheBentoBox, Snow-Pyon, Pikachu920m Nicofisim tim740, Tuke-Nuke, TheLimeGlass, xXAndrew28Xx, Sashie, RoyCurtis, nfell2009, Syst3ms, and Blueyescat
Minecraft Version: 1.13
---
Full Code:

Code:
on place:
    player's world = "void"
    set {_i::*} to {islocations::%player%} split at ","
    set {_x} to the first element of {_i::*}
    set {_z} to last element of {_i::*}
    replace all " " in {_z} with ""
    set {_x} to {_x} parsed as integer
    set {_z} to {_z} parsed as integer
    add 50 to {_x}
    subtract 50 from {_z}
    set {_l} to location at {_x}, 256, {_x} in world "void"
    set {_l2} to location at {_z}, 0, {_z} in world "void"
    if location of event-block is not within {_l} to {_l2}:
        cancel event
        send "&7You cannot place blocks here!"
    else:
        send "test2"


Errors on Reload:

None

Console Errors: (if applicable)

Code:
[13:57:32] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[13:57:32] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[13:57:32] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[13:57:32] [Server thread/ERROR]: #!#! Here is full list of them:
[13:57:32] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/) Vixio (http://vixio.space) TuSKe (github.com/Tuke-Nuke/TuSKe) SK-NBeeT (https://github.com/ShaneBeee/Sk-NBeeT) Kosmos (tlatoani.us/kosmos) SkQuery Skematic (https://forums.skunity.com/resources/skematic.671/)
[13:57:32] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[13:57:32] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[13:57:32] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[13:57:32] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[13:57:32] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[13:57:32] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Stack trace:
[13:57:32] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[13:57:32] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.util.region.CuboidRegion.min(CuboidRegion.java:74)
[13:57:32] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.util.region.CuboidRegion.<init>(CuboidRegion.java:18)
[13:57:32] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.elements.conditions.CondIsWithin$1.check(CondIsWithin.java:43)
[13:57:32] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.elements.conditions.CondIsWithin$1.check(CondIsWithin.java:38)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.check(SimpleExpression.java:173)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.check(SimpleExpression.java:161)
[13:57:32] [Server thread/ERROR]: #!#!     at com.w00tmast3r.skquery.elements.conditions.CondIsWithin.check(CondIsWithin.java:38)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:152)
[13:57:32] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:110)
[13:57:32] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66)
[13:57:32] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507)
[13:57:32] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:492)
[13:57:32] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:197)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.ItemStack.placeItem(ItemStack.java:209)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.PlayerInteractManager.a(PlayerInteractManager.java:506)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1221)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:9)
[13:57:32] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[13:57:32] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:896)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831)
[13:57:32] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729)
[13:57:32] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Version Information:
[13:57:32] [Server thread/ERROR]: #!#!   Skript: 2.3.6 (latest)
[13:57:32] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
[13:57:32] [Server thread/ERROR]: #!#!     Date: 2019-03-03
[13:57:32] [Server thread/ERROR]: #!#!   Bukkit: 1.13.2-R0.1-SNAPSHOT
[13:57:32] [Server thread/ERROR]: #!#!   Minecraft: 1.13.2
[13:57:32] [Server thread/ERROR]: #!#!   Java: 1.8.0_191 (OpenJDK 64-Bit Server VM 25.191-b12)
[13:57:32] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.15.0-1035-aws
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Server platform: Spigot
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Current node: null
[13:57:32] [Server thread/ERROR]: #!#! Current item: the location of (the block)->org.bukkit.Location are within cuboid from {_l}(as org.bukkit.Location) to {_l2}(as org.bukkit.Location)
[13:57:32] [Server thread/ERROR]: #!#! Current trigger: place (break/place/burn/fade/form of <none>) (Skyblock.sk, line 55)
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Thread: Server thread
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! Language: english
[13:57:32] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[13:57:32] [Server thread/ERROR]: #!#!
[13:57:32] [Server thread/ERROR]: #!#! End of Error.


Other Useful Info:

Addons:
skRayFall v1.9.15, Vixio v2.0.0, SK-NBeeT v2.3.0, TuSKe v1.8.2-Pikachu-Patch-3, skQuery v3.6.4MH, Skematic v2.2b, Kosmos v1.0-BETA.3

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Changed the syntax a bunch of times, changed the way variables were set, etc.
 
Status
Not open for further replies.