cmd_time.rb
znmud-0.0.1/cmd/zombie/cmd_time.rb · 474 B
From the archive znmud-minimal-0.0.1.tar.gz
Download the archive « Back to the archive contents
#
# 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