Buggy code:
public class Sentry extends JavaPlugin { public static boolean debug = true ; static boolean dieLikePlayers = false ; static boolean bodyguardsObeyProtection = true ; static boolean ignoreListIsInvincible = true ; static boolean denizenActive = false ; static Map < String , PluginBridge > activePlugins = new HashMap < String , PluginBridge > ( ) ; public Set < Material > boots = EnumSet . of ( LEATHER_BOOTS , CHAINMAIL_BOOTS , IRON_BOOTS , DIAMOND_BOOTS , GOLD_BOOTS ) ; public Set < Material > chestplates = EnumSet . of ( LEATHER_CHESTPLATE , CHAINMAIL_CHESTPLATE , IRON_CHESTPLATE , DIAMOND_CHESTPLATE , GOLD_CHESTPLATE ) ; public Set < Material > helmets = EnumSet . of ( LEATHER_HELMET , CHAINMAIL_HELMET , IRON_HELMET , DIAMOND_HELMET , GOLD_HELMET , PUMPKIN , JACK_O_LANTERN ) ; public Set < Material > leggings = EnumSet . of ( LEATHER_LEGGINGS , CHAINMAIL_LEGGINGS , IRON_LEGGINGS , DIAMOND_LEGGINGS , GOLD_LEGGINGS ) ; static Map < String , Integer > equipmentSlots = new HashMap < String , Integer > ( ) ; Map < Material , Double > armorBuffs = new EnumMap < Material , Double > ( Material . class ) ; Map < Material , Double > speedBuffs = new EnumMap < Material , Double > ( Material . class ) ; Map < Material , Double > strengthBuffs = new EnumMap < Material , Double > ( Material . class ) ; Map < Material , List < PotionEffect > > weaponEffects = new EnumMap < Material , List < PotionEffect > > ( Material . class ) ; Map < String , Boolean > defaultBooleans = new HashMap < String , Boolean > ( ) ; Map < String , Integer > defaultIntegers = new HashMap < String , Integer > ( ) ; Map < String , Double > defaultDoubles = new HashMap < String , Double > ( ) ; List < String > defaultTargets ; List < String > defaultIgnores ; String defaultGreeting = "" ; String defaultWarning = "" ; static int logicTicks = 10 ; static int sentryEXP = 5 ; public Queue < Projectile > arrows = new LinkedList < Projectile > ( ) ; PluginManager pluginManager = getServer ( ) . getPluginManager ( ) ; static Logger logger ; static Plugin sentryPlugin ; static DenizenHook denizenHook ; @ Override public void onEnable ( ) { if ( ( Sentry . sentryPlugin ) != null ) return ; Sentry . sentryPlugin = this ; Sentry . logger = getLogger ( ) ; if ( ! ( checkPlugin ( CITIZENS ) ) ) { Sentry . logger . log ( Level . SEVERE , ERROR_NO_CITIZENS ) ; pluginManager . disablePlugin ( this ) ; return ; } if ( checkPlugin ( DENIZEN ) ) { String vers = pluginManager . getPlugin ( DENIZEN ) . getDescription ( ) . getVersion ( ) ; if ( vers . startsWith ( "0.9" ) ) { Sentry . denizenHook = new DenizenHook ( ( ( Denizen ) ( pluginManager . getPlugin ( DENIZEN ) ) ) , this ) ; Sentry . denizenActive = ( ( ( DenizenHook . npcDeathTriggerActive ) || ( DenizenHook . npcDeathTriggerOwnerActive ) ) || ( DenizenHook . dieCommandActive ) ) || ( DenizenHook . liveCommandActive ) ; } else { Sentry . logger . log ( Level . WARNING , ERROR_WRONG_DENIZEN ) ; } } Sentry . equipmentSlots . put ( "hand" , 0 ) ; Sentry . equipmentSlots . put ( "helmet" , 1 ) ; Sentry . equipmentSlots . put ( "chestplate" , 2 ) ; Sentry . equipmentSlots . put ( "leggings" , 3 ) ; Sentry . equipmentSlots . put ( "boots" , 4 ) ; int targetBitFlag = SentryInstance . bridges ; for ( String each : getConfig ( ) . getStringList ( "OtherPlugins" ) ) { if ( ! ( checkPlugin ( each ) ) ) continue ; PluginBridge bridge = null ; try { @ SuppressWarnings ( "unchecked" ) <START_BUG> Class < ? extends PluginBridge > clazz = ( ( Class < ? extends PluginBridge > ) ( Class . forName ( ( ( ( S . PACKAGE ) + each ) + "Bridge" ) ) ) ) ; <END_BUG> Constructor < ? extends PluginBridge > constructor = clazz . getDeclaredConstructor ( int . class ) ; bridge = constructor . newInstance ( targetBitFlag ) ; } catch ( ClassNotFoundException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } catch ( InstantiationException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } catch ( IllegalAccessException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } catch ( IllegalArgumentException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } catch ( InvocationTargetException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } catch ( NoSuchMethodException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } catch ( SecurityException e ) { helpfulReflectionError ( each ) ; e . printStackTrace ( ) ; } if ( bridge == null ) continue ; if ( ! ( bridge . activate ( ) ) ) { Sentry . logger . log ( Level . INFO , bridge . getActivationMessage ( ) ) ; continue ; } if ( Sentry . debug ) Sentry . logger . log ( Level . INFO , ( ( each + "<seq2seq4repair_space>activated<seq2seq4repair_space>with<seq2seq4repair_space>bitFlag<seq2seq4repair_space>value<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( bridge . bitFlag ) ) ) ; Sentry . logger . log ( Level . INFO , bridge . getActivationMessage ( ) ) ; targetBitFlag *= 2 ; Sentry . activePlugins . put ( each , bridge ) ; } CitizensAPI . getTraitFactory ( ) . registerTrait ( TraitInfo . create ( SentryTrait . class ) . withName ( "sentry" ) ) ; pluginManager . registerEvents ( new SentryListener ( this ) , this ) ;

Fix:
Class < ? extends PluginBridge > clazz = ( ( Class < ? extends PluginBridge > ) ( Class . forName ( ( ( ( ( S . PACKAGE ) + "pluginbridges." ) + each ) + "Bridge" ) ) ) ) ;