-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtestSpawn.js
More file actions
27 lines (23 loc) · 803 Bytes
/
testSpawn.js
File metadata and controls
27 lines (23 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// this is a plugin to test the spawn plugin
module.exports = class TestSpawnPlugin extends BasePlugin {
/** Plugin info */
static get id() { return 'spawn-test' }
static get name() { return 'Spawn Test' }
static get description() { return 'A plugin to test the Spawn plugin.' }
/** Called when the plugin is loaded */
onLoad() {
this.menus.register({
id: 'zongo.spawn-test',
text: 'Test Spawn',
section: 'controls',
adminOnly: false,
order: 11,
icon: this.paths.absolute('./respawnTest.svg'),
action: this.onMenuPress
})
}
/** Called when the button is clicked */
onMenuPress = () => {
this.hooks.trigger('fpshud.death')
}
}