MCPcopy Create free account
hub / github.com/Botloader/botloader / createStorageNumber

Method createStorageNumber

components/runtime/src/ts/script.ts:145–150  ·  view source on GitHub ↗

* Creates a new number storage bucket for persistent storage. * * This is the same as createStorageJson except that this bucket can only store number values, the upside of this is that it can be sorted. * * An example use case could be storing the scores of users in a l

(namespace: string)

Source from the content-addressed store, hash-verified

143 * See {@link createStorageJson} for more general info on storage buckets
144 */
145 createStorageNumber(namespace: string) {
146 let bucket = new Storage.NumberBucket(namespace, this.storagePluginId());
147 this.storageBuckets.push(bucket);
148
149 return bucket;
150 }
151
152 /**
153 * Create a new persistent variable.

Callers 15

storagev2.tsFile · 0.80
storage_simple2.tsFile · 0.80
storage_simple1.tsFile · 0.80
leveling.tsFile · 0.80
giveaways.tsFile · 0.80
automod.tsFile · 0.80
starboard.tsFile · 0.80
economy_3.tsFile · 0.80
economy.tsFile · 0.80
giveaways_2.tsFile · 0.80
automod_3.tsFile · 0.80
starboard_3.tsFile · 0.80

Calls 1

storagePluginIdMethod · 0.95

Tested by

no test coverage detected