… | |
… | |
618 | } |
618 | } |
619 | } |
619 | } |
620 | |
620 | |
621 | sub player_update { |
621 | sub player_update { |
622 | my ($self, $player) = @_; |
622 | my ($self, $player) = @_; |
|
|
623 | |
623 | $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $player->{weight} / 1000); |
624 | $::STATWIDS->{weight}->set_text (sprintf "Weight: %.1fkg", $player->{weight} / 1000); |
624 | |
625 | |
625 | # do it here because it is ignored earlier, and there is no "login" event |
626 | # do it here because it is ignored earlier, and there is no "login" event |
626 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
627 | $self->send_command ("output-sync $::CFG->{output_sync}"); |
627 | $self->send_command ("output-count $::CFG->{output_count}"); |
628 | $self->send_command ("output-count $::CFG->{output_count}"); |
|
|
629 | $self->send_command ("pickup $::CFG->{pickup}") |
628 | } |
630 | } |
629 | |
631 | |
630 | 1; |
632 | 1; |