You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/js/lib/scriptcraft.js
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -366,11 +366,18 @@ The refresh() function can be used to only reload the ScriptCraft plugin (it's l
366
366
367
367
1. Disable the ScriptCraft plugin.
368
368
2. Unload all event listeners associated with the ScriptCraft plugin.
369
+
3. Cancel all timed tasks (created by `setInterval` & `setTimeout`)
369
370
3. Enable the ScriptCraft plugin.
370
371
371
372
... refresh() can be used during development to reload only scriptcraft javascript files.
372
373
See [issue #69][issue69] for more information.
373
374
375
+
By default, if `self` is defined at runtime, it checks, whether `self` is server operator, otherwise fails with message. This behavivor can be modified using `skipOpCheck` parameter (useful, if you are doing some custom premission checks before calling this function).
376
+
377
+
#### Parameters
378
+
379
+
* skipOpCheck (boolean - optional) : If true, the function won't check if `self` is server operator.
0 commit comments