In my game called Void Wars, when a player dies they are sent to the lobby (they can't spectate). I need a command block to recognize when a winner is claimed aka after one person is left. Does anyone know a vanilla or Bukkit command to do this? Thanks in advance!
This would be a little glitchy but if you managed to keep a chunk loaded with the following command block it could work. Also, the lobby in question has to be very far away or in a different world for this to work:
Place a repeating command block in the middle of the arena underground or someplace it's not bothering someone. The put in this command:
The Detects command block has the command that I showed you. The torch, comparator, and Redstone wire filters the amount of players. And the Impulse command block is up to you. You have to go from there to trigger that someone's won.