summaryrefslogtreecommitdiff
path: root/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'sync.py')
-rw-r--r--sync.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/sync.py b/sync.py
deleted file mode 100644
index 0a2cd0b..0000000
--- a/sync.py
+++ /dev/null
@@ -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 \ No newline at end of file