Buggy code:
public class DenizenCommandHandler { private final Denizen denizen ; public DenizenCommandHandler ( Denizen denizen ) { } @ Command ( aliases = { "denizen" } , usage = "submit" , desc = "Submits<seq2seq4repair_space>recorded<seq2seq4repair_space>logs<seq2seq4repair_space>triggered<seq2seq4repair_space>by<seq2seq4repair_space>//denizen<seq2seq4repair_space>debug<seq2seq4repair_space>-r" , modifiers = { "submit" } , min = 1 , max = 3 , permission = "denizen.submit" ) public void submit ( CommandContext args , final CommandSender sender ) throws CommandException { } @ Command ( aliases = { "denizen" } , usage = "debug" , desc = "Toggles<seq2seq4repair_space>debug<seq2seq4repair_space>mode<seq2seq4repair_space>for<seq2seq4repair_space>Denizen." , modifiers = { "debug" , "de" , "db" , "dbug" } , min = 1 , max = 5 , permission = "denizen.debug" , flags = "scebrxov" ) public void debug ( CommandContext args , CommandSender sender ) throws CommandException { if ( args . hasFlag ( 's' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . showStackTraces = ! ( dB . showStackTraces ) ; Messaging . sendInfo ( sender , ( dB . showStackTraces ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>showing<seq2seq4repair_space>caught<seq2seq4repair_space>" + "exception<seq2seq4repair_space>stack<seq2seq4repair_space>traces." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>hiding<seq2seq4repair_space>caught<seq2seq4repair_space>stacktraces." ) ) ; } if ( args . hasFlag ( 'c' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . showColor = ! ( dB . showColor ) ; Messaging . sendInfo ( sender , ( dB . showColor ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>showing<seq2seq4repair_space>color." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>color<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>disabled." ) ) ; } if ( args . hasFlag ( 'o' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . debugOverride = ! ( dB . debugOverride ) ; Messaging . sendInfo ( sender , ( dB . debugOverride ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>overriding<seq2seq4repair_space>'debug:<seq2seq4repair_space>false'." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>override<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>disabled." ) ) ; } if ( args . hasFlag ( 'e' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . showEventsTrimming = ! ( dB . showEventsTrimming ) ; Messaging . sendInfo ( sender , ( dB . showEventsTrimming ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>logging<seq2seq4repair_space>all<seq2seq4repair_space>" + "world<seq2seq4repair_space>events." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>hiding<seq2seq4repair_space>world<seq2seq4repair_space>events." ) ) ; } if ( args . hasFlag ( 'b' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . showScriptBuilder = ! ( dB . showScriptBuilder ) ; Messaging . sendInfo ( sender , ( dB . showScriptBuilder ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>logging<seq2seq4repair_space>the<seq2seq4repair_space>" + "ScriptBuilder." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>hiding<seq2seq4repair_space>ScriptBuilder<seq2seq4repair_space>logging." ) ) ; } if ( args . hasFlag ( 'r' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . record = ! ( dB . record ) ; dB . Recording = new StringBuilder ( ) ; Messaging . sendInfo ( sender , ( dB . record ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>recording.<seq2seq4repair_space>Use<seq2seq4repair_space>//denizen<seq2seq4repair_space>" + "submit<seq2seq4repair_space>to<seq2seq4repair_space>finish." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>recording<seq2seq4repair_space>disabled." ) ) ; } <START_BUG> if ( args . hasFlag ( 'r' ) ) { <END_BUG> if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . verbose = ! ( dB . verbose ) ; Messaging . sendInfo ( sender , ( dB . record ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>verbose." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>verbosity<seq2seq4repair_space>disabled." ) ) ; } if ( args . hasFlag ( 'x' ) ) { dB . filter = new ArrayList < String > ( ) ; Messaging . sendInfo ( sender , "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>filter<seq2seq4repair_space>removed." ) ; } if ( args . hasFlag ( 'n' ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; dB . shouldTrim = ! ( dB . shouldTrim ) ; Messaging . sendInfo ( sender , ( dB . shouldTrim ? "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now<seq2seq4repair_space>trimming<seq2seq4repair_space>long<seq2seq4repair_space>messages." : "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>no<seq2seq4repair_space>longer<seq2seq4repair_space>trimming<seq2seq4repair_space>long<seq2seq4repair_space>messages." ) ) ; } if ( args . hasValueFlag ( "filter" ) ) { if ( ! ( dB . showDebug ) ) dB . toggle ( ) ; for ( String filter : args . getFlag ( "filter" ) . split ( "\\|" ) ) filter . add ( filter ) ; Messaging . sendInfo ( sender , ( "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>filter<seq2seq4repair_space>now:<seq2seq4repair_space>" + ( filter . toString ( ) ) ) ) ; } else if ( args . getFlags ( ) . isEmpty ( ) ) { dB . toggle ( ) ; Messaging . sendInfo ( sender , ( "Denizen<seq2seq4repair_space>dBugger<seq2seq4repair_space>is<seq2seq4repair_space>now:<seq2seq4repair_space>" + ( dB . showDebug ? "<a>ENABLED" : "<c>DISABLED" ) ) ) ; } } @ Command ( aliases = { "denizen" } , usage = "do_nothing" , desc = "Does<seq2seq4repair_space>nothing,<seq2seq4repair_space>for<seq2seq4repair_space>better<seq2seq4repair_space>server<seq2seq4repair_space>command<seq2seq4repair_space>handling" , modifiers = { "do_nothing" } , min = 1 , max = 3 , permission = "denizen.basic" ) public void do_nothing ( CommandContext args , CommandSender sender ) throws CommandException { } @ Command ( aliases = { "denizen" } , usage = "version" , desc = "Shows<seq2seq4repair_space>the<seq2seq4repair_space>currently<seq2seq4repair_space>loaded<seq2seq4repair_space>version<seq2seq4repair_space>of<seq2seq4repair_space>Denizen." , modifiers = { "version" } , min = 1 , max = 3 , permission = "denizen.basic" ) public void version ( CommandContext args , CommandSender sender ) throws CommandException { } @ Command ( aliases = { "denizen" } , usage = "save" , desc = "Saves<seq2seq4repair_space>the<seq2seq4repair_space>current<seq2seq4repair_space>state<seq2seq4repair_space>of<seq2seq4repair_space>Denizen//saves.yml." , modifiers = { "save" } , min = 1 , max = 3 , permission = "denizen.basic" , flags = "s" ) public void save ( CommandContext args , CommandSender sender ) throws CommandException { } @ Command ( aliases = { "denizen" } , usage = "listener<seq2seq4repair_space>(--player)<seq2seq4repair_space>--id<seq2seq4repair_space>listener_id<seq2seq4repair_space>--report|cancel|finish" , desc = "Checks//cancels//finishes<seq2seq4repair_space>listeners<seq2seq4repair_space>in<seq2seq4repair_space>progress." , modifiers = { "listener" } , min = 1 , max = 3 , permission = "denizen.basic" , flags = "s" ) public void listener ( CommandContext args , CommandSender sender ) throws CommandException { } @ Command ( aliases = { "denizen" } , usage = "reload<seq2seq4repair_space>(saves|notables|config|scripts|externals)<seq2seq4repair_space>(-a)" , desc = "Reloads<seq2seq4repair_space>various<seq2seq4repair_space>Denizen<seq2seq4repair_space>files<seq2seq4repair_space>from<seq2seq4repair_space>disk<seq2seq4repair_space>to<seq2seq4repair_space>memory." , modifiers = { "reload" } , min = 1 , max = 3 , permission = "denizen.basic" , flags = "a" ) public void reload ( CommandContext args , CommandSender sender ) throws CommandException { } @ Command ( aliases = { "denizen" } , usage = "scripts<seq2seq4repair_space>(--type<seq2seq4repair_space>assignment|task|...)<seq2seq4repair_space>(--filter<seq2seq4repair_space>string)" , desc = "Lists<seq2seq4repair_space>currently<seq2seq4repair_space>loaded<seq2seq4repair_space>dScripts." , modifiers = { "scripts" }

Fix:
if ( args . hasFlag ( 'v' ) ) {