Buggy code:
public class WorldGuardPlayerListener extends PlayerListener { private static final Logger logger = Logger . getLogger ( "Minecraft.WorldGuard" ) ; private WorldGuardPlugin plugin ; public WorldGuardPlayerListener ( WorldGuardPlugin plugin ) { } public void registerEvents ( ) { } private void registerEvent ( String typeName , Priority priority ) { } @ Override public void onPlayerJoin ( PlayerJoinEvent event ) { Player player = event . getPlayer ( ) ; World world = player . getWorld ( ) ; ConfigurationManager cfg = plugin . getGlobalStateManager ( ) ; WorldConfiguration wcfg = cfg . get ( world ) ; if ( cfg . activityHaltToggle ) { player . sendMessage ( ( ( ChatColor . YELLOW ) + "Intensive<seq2seq4repair_space>server<seq2seq4repair_space>activity<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>HALTED." ) ) ; int removed = 0 ; for ( Entity entity : world . getEntities ( ) ) { if ( BukkitUtil . isIntensiveEntity ( entity ) ) { entity . remove ( ) ; removed ++ ; } } if ( removed > 10 ) { WorldGuardPlayerListener . logger . info ( ( ( ( "WG<seq2seq4repair_space>Halt-Act:<seq2seq4repair_space>" + removed ) + "<seq2seq4repair_space>entities<seq2seq4repair_space>(>10)<seq2seq4repair_space>auto-removed<seq2seq4repair_space>from<seq2seq4repair_space>" ) + ( player . getWorld ( ) . toString ( ) ) ) ) ; } } if ( wcfg . fireSpreadDisableToggle ) { player . sendMessage ( ( ( ChatColor . YELLOW ) + "Fire<seq2seq4repair_space>spread<seq2seq4repair_space>is<seq2seq4repair_space>currently<seq2seq4repair_space>globally<seq2seq4repair_space>disabled<seq2seq4repair_space>for<seq2seq4repair_space>this<seq2seq4repair_space>world." ) ) ; } <START_BUG> if ( ( plugin . inGroup ( player , "wg-invincible" ) ) || ( ( cfg . autoGodMode ) && ( plugin . hasPermission ( player , "worldguard.auto-invincible" ) ) ) ) { <END_BUG> cfg . enableGodMode ( player ) ; } if ( plugin . inGroup ( player , "wg-amphibious" ) ) { cfg . enableAmphibiousMode ( player ) ; } if ( wcfg . useRegions ) { PlayerFlagState state = plugin . getFlagStateManager ( ) . getState ( player ) ; Location loc = player . getLocation ( ) ; state . lastWorld = loc . getWorld ( ) ; state . lastBlockX = loc . getBlockX ( ) ; state . lastBlockY = loc . getBlockY ( ) ; state . lastBlockZ = loc . getBlockZ ( ) ; } } @ Override public void onPlayerQuit ( PlayerQuitEvent event ) { } @ Override public void onPlayerInteract ( PlayerInteractEvent event ) { } @ Override public void onPlayerMove ( PlayerMoveEvent event ) { } private void handleAirLeftClick ( PlayerInteractEvent event ) { } private void handleBlockLeftClick ( PlayerInteractEvent event ) { } private void handleAirRightClick ( PlayerInteractEvent event ) { } private void handleBlockRightClick ( PlayerInteractEvent event ) { } private void handlePhysicalInteract ( PlayerInteractEvent event ) { } @ Override public void onPlayerDropItem ( PlayerDropItemEvent event ) { } @ Override public void onPlayerPickupItem ( PlayerPickupItemEvent event ) { } @ Override public void onPlayerBucketFill ( PlayerBucketFillEvent event ) { } @ Override public void onPlayerBucketEmpty ( PlayerBucketEmptyEvent event ) { } @ Override public void onPlayerRespawn ( PlayerRespawnEvent event ) { } @ Override public void onItemHeldChange ( PlayerItemHeldEvent event ) { } @ Override public void onPlayerBedEnter ( PlayerBedEnterEvent event ) { } @ Override public void onPlayerCommandPreprocess ( PlayerCommandPreprocessEvent event ) { } }

Fix:
if ( ( ( cfg . autoGodMode ) && ( plugin . inGroup ( player , "wg-invincible" ) ) ) || ( ( cfg . autoGodMode ) && ( plugin . hasPermission ( player , "worldguard.auto-invincible" ) ) ) ) {