Updates
This commit is contained in:
8
conf/resources/scripts/operations/Enable Timer.js
Normal file
8
conf/resources/scripts/operations/Enable Timer.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// enables a timer with the 'timeName' binding passed in
|
||||
filter = new java.util.HashMap();
|
||||
filter.put('name', timerName);
|
||||
|
||||
timer = mcApi.timer().get(filter);
|
||||
if (timer) {
|
||||
mcApi.timer().enable([timer.id]);
|
||||
}
|
||||
Reference in New Issue
Block a user