How to check if config value exist

I have a problem - Ive created a warp plugin, but i dont know how to check if warp name exist.

my conf:
warps{
warpname1{
x=1
y=1
z=1
w=“x”
}
warpname2{
x=1
y=1
z=1
w=“x”
}
}

How to know if command /warp warpname1 is correct, but /warp incorrect is incorrect without console error?

I believe it is the following, i believe it works by if the value has been set in the config file it will return false while if the value has only been set in the object then it will return true.

node.isVirtual();
1 Like