BeanShell on Auto-report format

Is it possible to use BeanShell on “Auto-report format for units…”??

I’m trying to change this: $PlayerId$: $message$
into this: {If(PieceName!=“Manager”,PlayerId+": “,”")+Message}

I tried many different combinations of property names (message, Message, playerId PlayerID), but nothing seems to work.

What I need, is an IF function on BeanShell to hide the PlayerId on reports from the Manager piece (those reports are global and playerless).

I still can’t have BeanShell on Auto-format, but I solved my problem by moving the Manager piece to its own map and have a custom reporting scheme on this map.

Now all reports have the “$PlayerId$: $message$” format, but the Manager reports are clean with just “$message$”.