Pascal2001
Member
Hey,
is someone able to say, why this script isnt working?
is someone able to say, why this script isnt working?
Code:
registerPlugin({
name: 'Channel Editor',
version: '1.0',
description: 'This plugin will change the Name of the Channel, if the channel maxclient is reached.',
author: 'Michael Friese <[email protected]>',
vars: {
message: {
title: 'The channel, that should be renamed.',
type: 'string'
},
{
name: 'ChannelName',
title: "The normal Channel Name",
type: 'strings'
},
{
name: 'ChannelRename',
title: "The renamed Channel Name",
type: 'strings'
},
type: {
title: 'Message-Type',
type: 'select',
options: [
'Private chat',
'Poke'
]
}
}
}, function(sinusbot, config) {
sinusbot.on('clientMove', function(ev) {
var msg = config.message;
msg = msg.replace(/%n/g, ev.clientNick);
if (maxClients(): number == 4) {
if (setName(name: string) {
}
return;
}
});
});