}
}
} else if (event instanceof GMGroupEvent) {
if (PermissionEventEnums.GMGroup_Action.valueOf(event.getEventName()) != null) {
GMGroupEvent GroupEvent = (GMGroupEvent) event;
Group group = GroupEvent.getGroup();
// Update all players who are in this group.
for (Player toUpdate : TownyUniverse.getOnlinePlayers()) {
if (group.equals(getPlayerGroup(toUpdate))) {
//setup default modes
String[] modes = getPlayerPermissionStringNode(toUpdate.getName(), PermissionNodes.TOWNY_DEFAULT_MODES.getNode()).split(",");