mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 16:49:12 +00:00
Conform to ruby conventions.
This commit is contained in:
@@ -14,7 +14,7 @@ on :command, :lookup, RIGHTS_ADMIN do |player, command|
|
|||||||
type = args.shift.downcase
|
type = args.shift.downcase
|
||||||
name = args.join(" ").downcase
|
name = args.join(" ").downcase
|
||||||
|
|
||||||
if ["npc", "object", "item"].index(type) == nil
|
if ['npc', 'object', 'item'].index(type) == nil
|
||||||
player.send_message("Invalid syntax - ::lookup [npc/object/item] [name]")
|
player.send_message("Invalid syntax - ::lookup [npc/object/item] [name]")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user