It seems to work now, thanks a lot :DSorry, I'm unable to replicate this error. However, it may be caused by line 385.
Changing the line from(cx - cradius..cx + cradius).each do |j|
to((cx - cradius).to_i..(cx + cradius).to_i).each do |j|
might resolve the issue.
I will test around some more to see if it crashes under other circumstances.
On a different note, do you know if it Is possible to make certain pokemon in caves glow like your "glowalways" events? Im using "Visible Overworld Wild Encounters" Plugin.
But I guess giving certain Pokemon the "glowalways" tag is more a general Essentials thing, right?