Remove sync.py file

This commit is contained in:
Dico200
2016-05-30 05:26:07 +02:00
parent 9d1956dc2a
commit 4e4acc6b3d
2 changed files with 0 additions and 22 deletions

View File

@@ -236,7 +236,6 @@ def tpahere_command_checker(sender, args):
return tpa_command_checker(sender, args)
def mail_command_checker(sender, args):
info("Mail command executed")
if len(args) < 3 or args[0].lower() != "send":
return True
target = server.getPlayer(args[1])

21
sync.py
View File

@@ -1,21 +0,0 @@
from helpers import *
from java.lang import Runnable
class Sync_class(Runnable):
def __init__(self,function,*args,**kwargs):
self.function = function
self.args = args
self.kwargs = kwargs
def run(self):
self.function(self.args,self.kwargs)
def sync(function):
def wrapper(*args,**kwargs):
sync_function = Sync_class(function)
server.getScheduler().runTask(server.getPluginManager().getPlugin("RedstonerUtils"),sync_function)
return None
return wrapper