This commit is contained in:
jomo
2014-05-17 01:17:05 +02:00
parent 4754083725
commit aef7d5df3b
3 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ from helpers import *
import simplejson as json import simplejson as json
import org.bukkit as bukkit import org.bukkit as bukkit
chatgroups_filename = "plugins/RedstonerUtils.py.dir/files/chatgroups.json" chatgroups_filename = "plugins/redstoner-utils.py.dir/files/chatgroups.json"
groups = {} groups = {}
cg_key = "." cg_key = "."
cg_toggle_list = [] cg_toggle_list = []

View File

@@ -8,7 +8,7 @@ import thread
# pythonloader changes this for some reason.. # pythonloader changes this for some reason..
#sys.path += ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7'] #sys.path += ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/pymodules/python2.7']
reports_filename = "plugins/RedstonerUtils.py.dir/files/reports.json" reports_filename = "plugins/redstoner-utils.py.dir/files/reports.json"
time_format = "%Y.%m.%d %H:%M" time_format = "%Y.%m.%d %H:%M"
reports = [] reports = []
check_reports = True check_reports = True

View File

@@ -4,7 +4,7 @@ from time import time
from helpers import * from helpers import *
from random import randrange from random import randrange
lol_filename = "plugins/RedstonerUtils.py.dir/files/lol.json" lol_filename = "plugins/redstoner-utils.py.dir/files/lol.json"
lols = [] lols = []
timeout = 15 timeout = 15
last_msg = 0 last_msg = 0
@@ -27,11 +27,11 @@ def save_lols():
def add_lol(txt): def add_lol(txt):
lols.append(txt) lols.append(txt)
save_lols() save_lols()
def del_lol(id): def del_lol(id):
lols.pop(id) lols.pop(id)
save_lols() save_lols()
def print_lol(sender, id): def print_lol(sender, id):
global last_msg global last_msg
if time() - last_msg > timeout: if time() - last_msg > timeout: