# # file:: cmd_time.rb # This source code copyright (C) 2009 Craig Smith # All rights reserved. # # Released under the terms of the TeensyMUD Public License # See LICENSE file for additional information. # module Cmd bindtextdomain("cmd") # The time command def cmd_time(args) if world.is_admin? id t = sprintf("%02d:%02d", world.climate.hour, world.climate.minute) sendto(t) else sendto(world.climate.time) end end end