Skip to content

Commit a5611dd

Browse files
committed
bug: mineos_console.py cant create servers
fixed issue where server couldnt be created with mineos_console.py because has_server_rights came back false on nonexistent path
1 parent 2703494 commit a5611dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mineos_console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
if args.server_name:
5656
owner = mc.has_server_rights(getuser(), args.server_name, args.base_directory)
57-
if not owner:
57+
if not owner and os.path.isdir(os.path.join(args.base_directory, mc.DEFAULT_PATHS['servers'], args.server_name)):
5858
raise OSError("User '%s' does not have rights to %s" % (getuser(),
5959
os.path.join(args.base_directory,
6060
args.server_name)))

0 commit comments

Comments
 (0)