summaryrefslogtreecommitdiff
path: root/friends.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-27 06:04:31 +0200
committerjomo <github@jomo.tv>2014-07-27 06:04:31 +0200
commite9b0ad656b71841fa23f332ddf8eff43e5cf1986 (patch)
treee7025015b3f4550f4429aa4f84c6ae8b7feb0ea5 /friends.py
parentd58d975910b5840ec3119f52bfa42fbbc58fc038 (diff)
add path to save/open json file
Diffstat (limited to 'friends.py')
-rw-r--r--friends.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/friends.py b/friends.py
index ce687cd..410eae8 100644
--- a/friends.py
+++ b/friends.py
@@ -1,7 +1,6 @@
from helpers import *
-friends_filename = "plugins/redstoner-utils.py.dir/files/friends.json"
-friends = open_json_file(friends_filename, {}) # {Player_UUID:[List_of_friend_uuids]}
+friends = open_json_file("friends", {}) # {Player_UUID:[List_of_friend_uuids]}
friend_join_sound = "random.orb"
@@ -18,7 +17,7 @@ def fjm(event): # friend join message
def save_friends(): # saves to friends file
- save_json_file(friends_filename, friends)
+ save_json_file("friends", friends)
def friendmessage(player, message): # sends a message with a prefix