ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/dmcommands.ext
(Generate patch)

Comparing deliantra/server/ext/dmcommands.ext (file contents):
Revision 1.5 by root, Mon Jan 1 16:53:11 2007 UTC vs.
Revision 1.6 by root, Tue Jan 2 11:08:35 2007 UTC

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 my @pl = $map->players;
79 $_->enter_link for @pl;
78 Coro::async { 80 Coro::async {
79 my @pl = $map->players; 81 Coro::Timer::sleep 10;
80
81 $_->enter_link for @pl;
82 $map->reset; 82 $map->reset;
83 $_->leave_link for @pl; 83 $_->leave_link for @pl;
84 84
85 $ob->reply (undef, $map->{path}->as_string . " was reset."); 85 $ob->reply (undef, $map->{path}->as_string . " was reset.");
86 }; 86 };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines