Made flags more customizable, and switched to place event.
Merged AfterWind 1.7.10-dev branch