Board Thread:Suggestions forum/@comment-25612015-20160109061545/@comment-25612015-20160110104715

This is a different use case, because you basically plan to activate this command periodically instead of upon a player action.

I think it would be far easier to start players at -10000 alignment, and have a periodic batch (ie. a process operating outside of Minecraft) periodically reinitializing alignment to that value.

In that case, you wouldn't even need this complex syntax at all.

You would have to make a script getting the list of the players on the server, finding the team they belong to, and passing "/alignment set" commands on the server console depending on that team.

The way to do that would depend upon whether the operating system used on the server. You would certainly need a way to process NBT formatted files (I use nbt2yaml) and some advanced scripting language (AWK, PERL, Python, Ruby, PHP...).

If your server is operating under Unix, I can provide the library of Minecraft functions I wrote for my server (with APIs for getting the players list, knowing if they are online or not, getting their alignment, passing commands to the console, etc.), to ease the writing of your script.