I think you need to give more details about your project. Like, when will be the end of the match (so it will do the logging part in the file)...Me personally have no clue what is AG Mod X and Im not sure if anyone else, including me, would really trying to figure out how that big plugin/code works...good luck