mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 00:38:14 +00:00
Update all plugins to conform to Rubocop.
This commit is contained in:
@@ -3,10 +3,8 @@ require 'java'
|
||||
java_import 'org.apollo.game.model.Position'
|
||||
|
||||
# Sends the player's position.
|
||||
on :command, :pos, RIGHTS_MOD do |player, command|
|
||||
position = player.position
|
||||
player.send_message("You are at: #{position}.")
|
||||
player.send_message("Local coordinates: (#{position.get_local_x}, #{position.get_local_y}).")
|
||||
on :command, :pos, RIGHTS_MOD do |player, _command|
|
||||
player.send_message("You are at: #{player.position}.")
|
||||
end
|
||||
|
||||
# Teleports the player to the specified position.
|
||||
@@ -19,4 +17,4 @@ on :command, :tele, RIGHTS_ADMIN do |player, command|
|
||||
z = args.length == 3 ? args[2].to_i : player.position.height
|
||||
|
||||
player.teleport(Position.new(x, y, z)) if (0..4).include?(z)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user