Method: Minecraft::Commands#dehop

Defined in:
lib/minecraft/commands.rb

#dehop(user, target_user) ⇒ Object

Note:

ops: op

De-half-ops the target user.

Examples:

dehop("basicxman", "blizzard4U")

Parameters:

  • user (String)

    The requesting user.

  • target_user (String)

    The target user to be de-hop'ed.



349
350
351
352
# File 'lib/minecraft/commands.rb', line 349

def dehop(user, target_user)
  @hops.reject! { |u| u == target_user.downcase }
  @server.puts "#{target_user} has been de-hoped, thanks #{user}!"
end