Remove sync.py file
This commit is contained in:
@@ -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
21
sync.py
@@ -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
|
||||
Reference in New Issue
Block a user