… | |
… | |
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 | |
|
|
71 | cf::register_command reset => sub { |
|
|
72 | my ($ob, $arg) = @_; |
|
|
73 | |
|
|
74 | return unless $ob->may ("command_reset"); |
|
|
75 | |
|
|
76 | die;#d# |
|
|
77 | |
|
|
78 | 1 |
|
|
79 | }; |
|
|
80 | |
71 | for my $command (qw(reset teleport summon arrest kick banish)) { |
81 | for my $command (qw(teleport summon arrest kick banish)) { |
72 | my $method = "command_$command"; |
82 | my $method = "command_$command"; |
73 | |
83 | |
74 | cf::register_command $command => sub { |
84 | cf::register_command $command => sub { |
75 | my ($ob, $arg) = @_; |
85 | my ($ob, $arg) = @_; |
76 | |
86 | |