I'm pretty new to Spigot and am using intellij for programming plugins. To practice coding, a friend gave me a few ideas for plugins. One of them was a reverse vampire. To cover as much as I could with this one, I want to give the player bad potion effects when they are in a light level below 8, and add a couple commands and maybe an enchantment or two. I don't know how to detect the light level for where the player is standing, or for when they move out of the range. I know of Block.getLightLevel() but don't really know how to use it. Any Ideas?