Method: Minecraft::Commands#printtimer

Defined in:
lib/minecraft/commands.rb

#printtimer(user) ⇒ Object

Note:

ops: hop

Prints the requesting users current timers.

Examples:

printtimer("basicxman")

Parameters:

  • user (String)

    The requesting user.



562
563
564
565
566
567
568
569
570
# File 'lib/minecraft/commands.rb', line 562

def printtimer(user)
  unless @timers.has_key? user || @timers[user].length == 0
    @server.puts "say No timers have been added for #{user}."
    return
  end
  @timers[user].each do |item, frequency|
    @server.puts "say #{item} every #{frequency} seconds."
  end
end