You'll have to set some standard for what you consider "being under a roof". what rsod suggested will check every single block above the player...
If you want to check if there is a block directly above the player's head, you can use: Block above =...
First line in your onEnable() if (!setupEconomy() ) { setupEconomy returns true if your plugin succeeded to set up economy, and false if...
My first thought is that you're not making it past that second if clause: if(p.getDisplayName().equals(ChatColor.stripColor(ig.getCustomName())))...
Separate names with a comma.