init playon chtype, new plugin code