Good Idea, bad way to implement.
For example, you shouldn't spawn a lightning bolt after kicking a User, and you should check if the sender is instanceof a ConsoleSender, not !instanceof Player, since that would mean any other Human Entity could use the command. And instead of using "boolean list", you should use boolean stopServerAfterTry or anything else as name which indicates the use of the boolean.