Sets the value of a plugin parameter. The method will wait for the player thread to pick up the modified value and call process_events().