Class: ClasslessMud::Commands::Chat
- Inherits:
-
Object
- Object
- ClasslessMud::Commands::Chat
- Extended by:
- ClasslessMud::Colorizer
- Defined in:
- lib/classless_mud/commands/chat.rb
Constant Summary
Constants included from ClasslessMud::Colorizer
ClasslessMud::Colorizer::CODES
Class Method Summary collapse
Methods included from ClasslessMud::Colorizer
Class Method Details
.perform(game, player, message) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/classless_mud/commands/chat.rb', line 6 def self.perform game, player, command, = .split(' ', 2) game.players.each do |player| player.puts red("[CHAT] #{player.name}: #{}") end end |