commands.rb

rbmud-0.2/commands/commands.rb · 299 B

From the archive RbMUD-0.2.tar.bz2

Download the archive   « Back to the archive contents

#!/usr/bin/env ruby
# $Revision: 1.3 $
# $Date: 2003/12/04 22:18:34 $
# $Author: jefus $

def Commands.do_commands(user, args)
  commands = $system.commands.list.collect {|command|
    command.name if user.access >= command.access
  }.compact
  
  user.puts("Commands: #{commands.join(", ")}")
end

Site Stats

Snippets: 1791
Codebases: 571