Method: Minecraft::Commands#tp

Defined in:
lib/minecraft/commands.rb

#tp(user, target) ⇒ Object

Note:

ops: hop

Note:

all: is teleporting all users to their location.

Teleports the current user to the target user.

Examples:

tp("basicxman", "mike_n_7")

Parameters:

  • user (String)

    Current user.

  • target (String)

    User to teleport to.



406
407
408
409
# File 'lib/minecraft/commands.rb', line 406

def tp(user, target)
  return if check_dnd(target)
  @server.puts "tp #{user} #{target}"
end