aboutsummaryrefslogtreecommitdiff
path: root/featureClass
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-06 20:44:33 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-11-06 20:44:33 +0800
commit924e4acc25b71ad2ab5339bd7c062ed6f2031160 (patch)
tree72792f3afd039e50d12c72378d6c76cdaec98a92 /featureClass
parentcc668931e3f2031f65fd77b5b773b2d9a0e55ed0 (diff)
downloadSoopyV2-924e4acc25b71ad2ab5339bd7c062ed6f2031160.tar.gz
SoopyV2-924e4acc25b71ad2ab5339bd7c062ed6f2031160.tar.bz2
SoopyV2-924e4acc25b71ad2ab5339bd7c062ed6f2031160.zip
2.0.3
+ Better module failed to load detection + Wither impact cooldown
Diffstat (limited to 'featureClass')
-rw-r--r--featureClass/class.js7
-rw-r--r--featureClass/featureManager.js9
2 files changed, 16 insertions, 0 deletions
diff --git a/featureClass/class.js b/featureClass/class.js
index 1cfdd8b..11b3492 100644
--- a/featureClass/class.js
+++ b/featureClass/class.js
@@ -94,6 +94,13 @@ class Feature {
return theEvent
}
+ registerActionBar(criteria, func){
+ let theEvent = this.FeatureManager.registerActionBar(criteria, func, this)
+
+ this.customEvents[theEvent.id] = theEvent
+
+ return theEvent
+ }
registerStep(isFps, interval, func){
let theEvent = this.FeatureManager.registerStep(isFps, interval, func, this)
diff --git a/featureClass/featureManager.js b/featureClass/featureManager.js
index 99f5483..d323397 100644
--- a/featureClass/featureManager.js
+++ b/featureClass/featureManager.js
@@ -224,6 +224,15 @@ class FeatureManager {
return event
}
+
+ registerActionBar(criteria, func, context){
+
+ let event = this.registerCustom("actionBar", func, context)
+
+ event.trigger.setChatCriteria(criteria)
+
+ return event
+ }
registerCommand(commandName, func, context){
let event = this.registerCustom("command", func, context)