public void addPlayBotAction(PlayBotAction action) { this.playBotActions.Add(action.command, action); jsonFileHandler.writePlayBotActions(this.playBotActions); if (main.playBot != null) { main.playBotActions = this.playBotActions; } }