From 29d3dfc446266b4703fd801252d0bce903f37d64 Mon Sep 17 00:00:00 2001 From: Leonardo Santos Date: Mon, 25 Jul 2016 12:40:08 +0200 Subject: [PATCH] Fix #2!!! Just Added! --- .../livesigns/common/PluginCallbackTask.php | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 LiveSigns/src/aliuly/livesigns/common/PluginCallbackTask.php diff --git a/LiveSigns/src/aliuly/livesigns/common/PluginCallbackTask.php b/LiveSigns/src/aliuly/livesigns/common/PluginCallbackTask.php new file mode 100644 index 0000000..a1d2a94 --- /dev/null +++ b/LiveSigns/src/aliuly/livesigns/common/PluginCallbackTask.php @@ -0,0 +1,52 @@ +callable = $callable; + $this->args = $args; + $this->args[] = $this; + } + /** + * @return callable + */ + public function getCallable(){ + return $this->callable; + } + + public function onRun($currentTicks){ + $c = $this->callable; + $args = $this->args; + $args[] = $currentTicks; + $c(...$args); + } + +}