Buggy code:
for ( StoredCommand command : ds . commands ) { sender . sendMessage ( ChatColor . translateAlternateColorCodes ( '&' , ( ( ( ( ( ( "&3(" + ( command . id ) ) + ")<seq2seq4repair_space>" ) + ( command . repeated ? "Every<seq2seq4repair_space>" : "At<seq2seq4repair_space>&2" ) ) + ( CommandExec . timeToString ( command . time ) ) ) + "\n<seq2seq4repair_space>&c>&f<seq2seq4repair_space>" ) + ( command . command ) ) ) ) ; } return true ; } else if ( args [ 1 ] . equalsIgnoreCase ( "add" ) ) { if ( ( args . length ) < 5 ) { sender . sendMessage ( "Usage:<seq2seq4repair_space>//betterontime<seq2seq4repair_space>cmd<seq2seq4repair_space>add<seq2seq4repair_space>[time]<seq2seq4repair_space>[repeated:<seq2seq4repair_space>true|false]<seq2seq4repair_space>[command]" ) ; return false ; } Integer secs = CommandExec . stringToTime ( args [ 2 ] ) ; if ( secs == null ) { sender . sendMessage ( "Usage:<seq2seq4repair_space>//betterontime<seq2seq4repair_space>cmd<seq2seq4repair_space>add<seq2seq4repair_space>[time]<seq2seq4repair_space>[repeated:<seq2seq4repair_space>true|false]<seq2seq4repair_space>[command]" ) ; return false ; } if ( secs < 1 ) { sender . sendMessage ( "Time<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>greater<seq2seq4repair_space>than<seq2seq4repair_space>0." ) ; return false ; } boolean repeated = ( args [ 3 ] . equalsIgnoreCase ( "true" ) ) ? true : false ; String stringCommand = CommandExec . mergeStringArrayFromIndex ( args , 4 ) ; ds . addCommand ( new StoredCommand ( 0 , secs , repeated , stringCommand ) ) ; sender . sendMessage ( "Command<seq2seq4repair_space>added." ) ; } else if ( args [ 1 ] . equalsIgnoreCase ( "remove" ) ) { if ( ( args . length ) != 3 ) { sender . sendMessage ( "Usage:<seq2seq4repair_space>//betterontime<seq2seq4repair_space>cmd<seq2seq4repair_space>remove<seq2seq4repair_space>[id]" ) ; return false ; } try { Integer id = Integer . valueOf ( args [ 2 ] ) ; ds . removeCommand ( id ) ; sender . sendMessage ( "Command<seq2seq4repair_space>removed." ) ; } catch ( NumberFormatException e ) { sender . sendMessage ( "Wrong<seq2seq4repair_space>id." ) ; return false ; } } return true ; } if ( args [ 0 ] . equalsIgnoreCase ( "add" ) ) { if ( ! ( sender . hasPermission ( "betterontime.manage" ) ) ) { sender . sendMessage ( "You're<seq2seq4repair_space>not<seq2seq4repair_space>allowed<seq2seq4repair_space>to<seq2seq4repair_space>run<seq2seq4repair_space>this<seq2seq4repair_space>command." ) ; return false ; } if ( ( args . length ) != 3 ) { sender . sendMessage ( "Usage:<seq2seq4repair_space>//betterontime<seq2seq4repair_space>add<seq2seq4repair_space>[PlayerName]<seq2seq4repair_space>[time]" ) ; return false ; } Integer time = CommandExec . stringToTime ( args [ 2 ] ) ; if ( ( time == null ) || ( time < 1 ) ) { sender . sendMessage ( "Invalid<seq2seq4repair_space>time." ) ; return false ; } OfflinePlayer targetPlayer = instance . getServer ( ) . getPlayer ( args [ 1 ] ) ; if ( targetPlayer == null ) { sender . sendMessage ( "Invalid<seq2seq4repair_space>player<seq2seq4repair_space>name." ) ; return false ; } UUID uuid = UUIDProvider . get ( targetPlayer ) ; if ( uuid == null ) { sender . sendMessage ( "Invalid<seq2seq4repair_space>player<seq2seq4repair_space>name." ) ; return false ; } ds . addTime ( uuid , time ) ; sender . sendMessage ( ( ( ( ( "Added<seq2seq4repair_space>" + ( CommandExec . timeToString ( time ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( targetPlayer . getName ( ) ) ) + "'s<seq2seq4repair_space>playtime." ) ) ; return true ; } } OfflinePlayer targetPlayer = player ; if ( ( args . length ) == 1 ) { if ( ! ( sender . hasPermission ( "betterontime.others" ) ) ) { sender . sendMessage ( "You're<seq2seq4repair_space>not<seq2seq4repair_space>allowed<seq2seq4repair_space>to<seq2seq4repair_space>run<seq2seq4repair_space>this<seq2seq4repair_space>command." ) ; return false ; } targetPlayer = instance . getServer ( ) . getOfflinePlayer ( args [ 0 ] ) ; if ( targetPlayer == null ) { sender . sendMessage ( ( ( "Player<seq2seq4repair_space>" + ( args [ 0 ] ) ) + "<seq2seq4repair_space>not<seq2seq4repair_space>found." ) ) ; return false ; } } else if ( ! ( sender . hasPermission ( "betterontime.self" ) ) ) { sender . sendMessage ( "You're<seq2seq4repair_space>not<seq2seq4repair_space>allowed<seq2seq4repair_space>to<seq2seq4repair_space>run<seq2seq4repair_space>this<seq2seq4repair_space>command." ) ; return false ; } PlayerStats stats = ds . getPlayerStats ( targetPlayer ) ; if ( ( stats == null ) || ( ( stats . global ) == 0 ) ) { sender . sendMessage ( "No<seq2seq4repair_space>statistics<seq2seq4repair_space>found<seq2seq4repair_space>for<seq2seq4repair_space>this<seq2seq4repair_space>player." ) ; return false ; } <START_BUG> int timeToAdd = ( ( int ) ( ( System . currentTimeMillis ( ) ) // 1000 ) ) - ( stats . lastEpochTime ) ; <END_BUG> sender . sendMessage ( ChatColor . translateAlternateColorCodes ( '&' , ( ( ( ( ( ( ( ( ( ( ( "&6----<seq2seq4repair_space>Statistics<seq2seq4repair_space>for<seq2seq4repair_space>" + ( targetPlayer . getName ( ) ) ) + "<seq2seq4repair_space>----\n" ) + "&cGlobal:\n&e-<seq2seq4repair_space>Total<seq2seq4repair_space>:<seq2seq4repair_space>&f" ) + ( CommandExec . timeToString ( ( ( stats . global ) + timeToAdd ) ) ) ) + "\n&e-<seq2seq4repair_space>Last<seq2seq4repair_space>7d<seq2seq4repair_space>:<seq2seq4repair_space>&f" ) + ( CommandExec . timeToString ( ( ( stats . globalLast ) + timeToAdd ) ) ) ) + "\n" ) + "&cLocal:\n&e-<seq2seq4repair_space>Total<seq2seq4repair_space>:<seq2seq4repair_space>&f" ) + ( CommandExec . timeToString ( ( ( stats . local ) + timeToAdd ) ) ) ) + "\n&e-<seq2seq4repair_space>Last<seq2seq4repair_space>7d<seq2seq4repair_space>:<seq2seq4repair_space>&f" ) + ( CommandExec . timeToString ( ( ( stats . localLast ) + timeToAdd ) ) ) ) ) ) ; return true ; } if ( cmd . getName ( ) . equalsIgnoreCase ( "msgraw" ) ) { if ( ! ( sender . isOp ( ) ) ) { sender . sendMessage ( "This<seq2seq4repair_space>is<seq2seq4repair_space>an<seq2seq4repair_space>OP<seq2seq4repair_space>only<seq2seq4repair_space>command." ) ; return false ; } if ( ( args . length ) < 2 ) { sender . sendMessage ( "Usage:<seq2seq4repair_space>//msgraw<seq2seq4repair_space>[PlayerName]<seq2seq4repair_space>[Raw<seq2seq4repair_space>Message]" ) ; return false ; } Player targetPlayer = instance . getServer ( ) . getPlayer ( args [ 0 ] ) ; if ( targetPlayer == null ) { sender . sendMessage ( "Invalid<seq2seq4repair_space>player" ) ; return false ; } targetPlayer . sendMessage ( ChatColor . translateAlternateColorCodes ( '&' , CommandExec . mergeStringArrayFromIndex ( args , 1 ) ) ) ; return true ; } return false ; } static String timeToString ( int time ) { } public static String mergeTimeStrings ( ArrayList < String > strs ) { } public static Integer stringToTime ( String tString ) { } static String mergeStringArrayFromIndex ( String [ ] arrayString , int i ) { } }

Fix:
int timeToAdd = ( DataStore . epoch ( ) ) - ( stats . lastEpochTime ) ;