void function ( int arg0 , PlayerTickEvent arg1 ) { if ( playerList . containsKey ( arg0 ) ) { if ( playerList . get ( arg0 ) [ 0 ] < 1 ) { runPlayer ( arg0 , arg1 ) ; } playerList . put ( arg0 , new int [ ] { playerList . get ( arg0 ) [ 0 ] - 1 , playerList . get ( arg0 ) [ 1 ] } ) ; } else { playerList . put ( arg0 , new int [ ] { 1200 , 0 } ) ; } }
takes a playerid as a arg , and checks if they are currently being ticked . takes care of handling adding them to the tick , and incrementing ticks . concode_field_sep Map<Integer,int[]> playerList concode_field_sep void onEvent concode_elem_sep void runPlayer