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.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.10 by root, Fri Jan 5 17:07:17 2007 UTC

66 $ob->reply (undef, "You can temporarily see through walls."); 66 $ob->reply (undef, "You can temporarily see through walls.");
67 67
68 1 68 1
69}; 69};
70 70
71cf::register_command reset => sub {
72 my ($ob, $arg) = @_;
73
74 return unless $ob->may ("command_reset");
75
76 my $map = $ob->map;
77
78 my @pl = $map->players;
79 $_->enter_link for @pl;
80 Coro::async_pool {
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 };
88
89 1
90};
91
71for my $command (qw(reset teleport summon arrest kick banish)) { 92for my $command (qw(teleport summon arrest kick banish)) {
72 my $method = "command_$command"; 93 my $method = "command_$command";
73 94
74 cf::register_command $command => sub { 95 cf::register_command $command => sub {
75 my ($ob, $arg) = @_; 96 my ($ob, $arg) = @_;
76 97

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines