Removed dimension flag from find_around
parent
e69c01f7b0
commit
219c993989
|
@ -57,27 +57,15 @@ class Search_Commands:
|
||||||
The radius defaults to 200 blocks if no value is given
|
The radius defaults to 200 blocks if no value is given
|
||||||
|
|
||||||
Default dimension is the overworld
|
Default dimension is the overworld
|
||||||
?find_around [X Coordinate] [Z Coordinate] [Radius] [Optional Flags]
|
?find_around [X Coordinate] [Z Coordinate] [Radius]
|
||||||
|
|
||||||
Optional Flags:
|
|
||||||
-d [dimension]
|
|
||||||
"""
|
"""
|
||||||
radius = 200
|
radius = 200
|
||||||
dimension = 'Overworld'
|
dimension = 'Overworld'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
if args[0] == '-d':
|
|
||||||
dimension = args[1]
|
|
||||||
if len(args) > 1:
|
|
||||||
radius = int(args[2])
|
|
||||||
else:
|
|
||||||
radius = int(args[0])
|
radius = int(args[0])
|
||||||
|
|
||||||
if len(args) > 1:
|
|
||||||
if args[1] == '-d':
|
|
||||||
dimension = args[2]
|
|
||||||
|
|
||||||
base_string = self.bot.bot_commands.find_around(x_pos, z_pos, radius, dimension)
|
base_string = self.bot.bot_commands.find_around(x_pos, z_pos, radius, dimension)
|
||||||
|
|
||||||
if len(base_string) != 0:
|
if len(base_string) != 0:
|
||||||
|
|
Loading…
Reference in New Issue