From 219c993989ed535160e5bff91e2aed61fbe358fe Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sun, 14 Oct 2018 10:01:19 -0500 Subject: [PATCH] Removed dimension flag from find_around --- geoffrey/cogs/Search_Commands.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/geoffrey/cogs/Search_Commands.py b/geoffrey/cogs/Search_Commands.py index 3616230..fe64204 100644 --- a/geoffrey/cogs/Search_Commands.py +++ b/geoffrey/cogs/Search_Commands.py @@ -57,26 +57,14 @@ class Search_Commands: The radius defaults to 200 blocks if no value is given Default dimension is the overworld - ?find_around [X Coordinate] [Z Coordinate] [Radius] [Optional Flags] - - Optional Flags: - -d [dimension] + ?find_around [X Coordinate] [Z Coordinate] [Radius] """ radius = 200 dimension = 'Overworld' try: if len(args) > 0: - if args[0] == '-d': - dimension = args[1] - if len(args) > 1: - radius = int(args[2]) - else: - radius = int(args[0]) - - if len(args) > 1: - if args[1] == '-d': - dimension = args[2] + radius = int(args[0]) base_string = self.bot.bot_commands.find_around(x_pos, z_pos, radius, dimension)