To add on the logging of the flag attachment and removal, I suggest added the same function but for code locks.
this way community server owners can resolve disputes with rule breaking, glitching etc if we can supply evidence of this.
currently if a lock is code breaked then reattached we currently have no log of who has done this and would be nice if this info was available.
oh, and possibly when the code lock is attached, the logs could log the code that has been set on it, this would be epic.