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.3 by root, Mon Jan 1 16:00:10 2007 UTC vs.
Revision 1.9 by root, Thu Jan 4 20:29:46 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines