Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: RLNT
- Requested by: tomislav
- License: MIT
- Discord: https://discord.com/invite/Q3qxws6
- */
- registerPlugin(
- {
- name: 'Example',
- version: '1.0.0',
- description:
- 'Example',
- author: 'Relentless',
- backends: [ 'ts3' ],
- vars: [
- {
- name: 'channel',
- title: 'Just to show it',
- type: 'channel'
- },
- {
- name: 'isThisCool',
- title: 'Just to show it',
- type: 'select',
- options: [
- 'Yes',
- 'No'
- ]
- },
- {
- name: 'textSection',
- type: 'section',
- vars: [
- {
- name: 'phraseOnline',
- title: 'Online Phrase',
- type: 'string'
- },
- {
- name: 'phraseOffline',
- title: 'Offline Phrase',
- type: 'string'
- },
- {
- name: 'phrasePermission',
- title: 'Permission Phrase Phrase',
- type: 'string'
- }
- ]
- }
- ]
- },
- (_, { channel, cool, messages }) => {
- // now you can use your messages here in an easy format like
- const engine = require('engine');
- engine.log(messages.phraseOnline)
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement