Buggy code:
public class DBPermissions extends JavaPlugin implements Listener { private DBQuery dbq ; protected HashMap < Player , PermissionAttachment > attachments = new HashMap < Player , PermissionAttachment > ( ) ; @ EventHandler ( priority = EventPriority . LOWEST ) public void onPlayerLogin ( PlayerLoginEvent event ) { } @ EventHandler ( priority = EventPriority . MONITOR ) public void onPlayerQuit ( PlayerQuitEvent event ) { } @ EventHandler ( priority = EventPriority . MONITOR ) public void onPlayerKick ( PlayerKickEvent event ) { } @ EventHandler ( priority = EventPriority . MONITOR ) public void onPlayerChangedWorld ( PlayerChangedWorldEvent event ) { } @ Override public void onEnable ( ) { } @ Override public void onDisable ( ) { } public void registerPlayer ( Player player ) { } public void unregisterPlayer ( Player player ) { } public void calculatePermissions ( final Player player ) { } public void calculatePermissions ( final Player player , final World world ) { <START_BUG> debug ( "Calculating<seq2seq4repair_space>player<seq2seq4repair_space>permissions<seq2seq4repair_space>from<seq2seq4repair_space>database<seq2seq4repair_space>for<seq2seq4repair_space>" , player . getName ( ) ) ; <END_BUG> final PermissionAttachment attachment = attachments . get ( player ) ; new DBPermissions . Query ( ( "SELECT<seq2seq4repair_space>`permissions`.*<seq2seq4repair_space>FROM<seq2seq4repair_space>`permissions`,<seq2seq4repair_space>`groups`<seq2seq4repair_space>WHERE<seq2seq4repair_space>`groups`.`group`<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>AND<seq2seq4repair_space>`permissions`.`identifier`<seq2seq4repair_space>=<seq2seq4repair_space>`groups`.`group`<seq2seq4repair_space>AND<seq2seq4repair_space>`permissions`.`type`<seq2seq4repair_space>=<seq2seq4repair_space>'group'" + ( "<seq2seq4repair_space>UNION<seq2seq4repair_space>SELECT<seq2seq4repair_space>`permissions`.*<seq2seq4repair_space>FROM<seq2seq4repair_space>`permissions`,<seq2seq4repair_space>`player_groups`<seq2seq4repair_space>WHERE<seq2seq4repair_space>`player_groups`.`player`<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>AND<seq2seq4repair_space>`permissions`.`identifier`<seq2seq4repair_space>=<seq2seq4repair_space>`player_groups`.`group`<seq2seq4repair_space>AND<seq2seq4repair_space>`permissions`.`type`<seq2seq4repair_space>=<seq2seq4repair_space>'group'" + "<seq2seq4repair_space>UNION<seq2seq4repair_space>SELECT<seq2seq4repair_space>`permissions`.*<seq2seq4repair_space>FROM<seq2seq4repair_space>`permissions`<seq2seq4repair_space>WHERE<seq2seq4repair_space>`permissions`.`identifier`<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>AND<seq2seq4repair_space>`permissions`.`type`<seq2seq4repair_space>=<seq2seq4repair_space>'player'" ) ) ) { @ Override public void onBeforeCallback ( ) { debug ( "Unsetting<seq2seq4repair_space>player<seq2seq4repair_space>permissions<seq2seq4repair_space>for<seq2seq4repair_space>{0}" , player . getName ( ) ) ; if ( attachment != null ) { for ( String key : attachment . getPermissions ( ) . keySet ( ) ) { attachment . unsetPermission ( key ) ; } } } @ Override public void onFetch ( ArrayList < HashMap > rows ) { debug ( "Setting<seq2seq4repair_space>new<seq2seq4repair_space>player<seq2seq4repair_space>permissions<seq2seq4repair_space>for<seq2seq4repair_space>{0}" , player . getName ( ) ) ; for ( HashMap row : rows ) { String w = ( ( String ) ( row . get ( "world" ) ) ) ; if ( ( world . getName ( ) . equalsIgnoreCase ( w ) ) || ( w . equals ( "*" ) ) ) { attachment . setPermission ( ( ( String ) ( row . get ( "permission" ) ) ) , ( ( ( Integer ) ( row . get ( "value" ) ) ) == 1 ) ) ; debug ( ( ( ( ( ( ( ( ( ( ( ( "Set<seq2seq4repair_space>[" + ( row . get ( "type" ) ) ) + ":" ) + ( row . get ( "identifier" ) ) ) + "][W:" ) + ( row . get ( "world" ) ) ) + "]<seq2seq4repair_space>" ) + ( row . get ( "permission" ) ) ) + "<seq2seq4repair_space>for<seq2seq4repair_space>" ) + ( player . getName ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( row . get ( "value" ) ) ) ) ; } } } @ Override public void onAfterCallback ( ) { debug ( "Calling<seq2seq4repair_space>event<seq2seq4repair_space>PermissionsCalculated<seq2seq4repair_space>for<seq2seq4repair_space>{0}" , player . getName ( ) ) ; getServer ( ) . getPluginManager ( ) . callEvent ( new PermissionsCalculated ( player ) ) ; } } . fetch ( getConfig ( ) . getString ( "default_group" ) , player . getName ( ) , player . getName ( ) ) ; } class Query extends com . minecarts . dbquery . Query { public Query ( String sql ) { } @ Override public void onBeforeCallback ( FinalQuery query ) { } @ Override public void onException ( Exception x , FinalQuery query ) { } } public void log ( String message ) { } public void log ( Level level , String message ) { } public void log ( String message , Object ... args ) { } public void log ( Level level , String message , Object ... args ) { } public void debug ( String message ) { } public void debug ( String message , Object ... args ) { } }

Fix:
debug ( "Calculating<seq2seq4repair_space>player<seq2seq4repair_space>permissions<seq2seq4repair_space>from<seq2seq4repair_space>database<seq2seq4repair_space>for<seq2seq4repair_space>{0}" , player . getName ( ) ) ;