… | |
… | |
73 | |
73 | |
74 | return unless $ob->may ("command_reset"); |
74 | return unless $ob->may ("command_reset"); |
75 | |
75 | |
76 | my $map = $ob->map; |
76 | my $map = $ob->map; |
77 | |
77 | |
78 | cf::sync_job { |
78 | Coro::async { |
79 | my @pl = $map->players; |
79 | my @pl = $map->players; |
80 | |
80 | |
81 | $_->enter_link for @pl; |
81 | $_->enter_link for @pl; |
82 | $map->reset; |
82 | $map->reset; |
83 | $_->leave_link for @pl; |
83 | $_->leave_link for @pl; |
|
|
84 | |
|
|
85 | $ob->reply (undef, $map->{path}->as_string . " was reset."); |
84 | }; |
86 | }; |
85 | |
|
|
86 | $ob->reply (undef, $map->{path}->as_string . " was reset."); |
|
|
87 | |
87 | |
88 | 1 |
88 | 1 |
89 | }; |
89 | }; |
90 | |
90 | |
91 | for my $command (qw(teleport summon arrest kick banish)) { |
91 | for my $command (qw(teleport summon arrest kick banish)) { |