javascript/features/playground/playground_commands.js
// Announces the updated value for the |setting|, as made by |player|, to administrators.
Announces the updated value for the |setting|, as made by |player|, to administrators.
Announces the updated value for the |setting| as made by |player| to administrators .
announceSettingChangeToAdministrators(player, setting) {
        switch (setting.type) {
            case Setting.TYPE_BOOLEAN:
                this.announce_().announceToAdministrators(
                    Message.LVP_ANNOUNCE_SETTING_TOGGLED, player.name, player.id,
                    (setting.value ? 'enabled' : 'disabled'), setting.identifier);
                break;
            case Setting.TYPE_NUMBER:
                this.announce_().announceToAdministrators(
                    Message.LVP_ANNOUNCE_SETTING_UPDATED_NUM, player.name, player.id,
                    setting.identifier, setting.value);
                break;
            case Setting.TYPE_STRING:
                this.announce_().announceToAdministrators(
                    Message.LVP_ANNOUNCE_SETTING_UPDATED_STRING, player.name, player.id,
                    setting.identifier, setting.value);
                break;
        }
    }
announceSettingChangeToAdministrators ( player , setting ) { switch ( setting . type ) { case Setting . TYPE_BOOLEAN : this . announce_ ( ) . announceToAdministrators ( Message . LVP_ANNOUNCE_SETTING_TOGGLED , player . name , player . id , ( setting . value ? 'enabled' : 'disabled' ) , setting . identifier ) ; break ; case Setting . TYPE_NUMBER : this . announce_ ( ) . announceToAdministrators ( Message . LVP_ANNOUNCE_SETTING_UPDATED_NUM , player . name , player . id , setting . identifier , setting . value ) ; break ; case Setting . TYPE_STRING : this . announce_ ( ) . announceToAdministrators ( Message . LVP_ANNOUNCE_SETTING_UPDATED_STRING , player . name , player . id , setting . identifier , setting . value ) ; break ; } }
Announces the updated value for the |setting|, as made by |player|, to administrators.
Announces the updated value for the |setting| as made by |player| to administrators .