Closed vbrown37 closed 6 years ago
Can you please describe what are the new features? The code is not well formatted, thanks.
It seems they are:
!antiproxy commands
!antiproxy manual
Correct? @Axzial
You can add Custom Prefix : http://prntscr.com/hkf3oq You can add Colors to detection messages : http://prntscr.com/hkf6fa New commands : !antiproxy commands : http://prntscr.com/hkf6u1 !antiproxy manual : http://prntscr.com/hkf7b6
/*
*/
registerPlugin({ name: 'AntiProxy - VPN/Proxy Blocker', version: '1.2', description: 'AntiProxy Script by xdefcon', author: 'xdefcon', vars: { enableSwitch: { title: 'Activate the script?', type: 'select', options: ['no', 'yes'] }, debugSwitch: { title: 'Enable debug messages?', type: 'select', options: ['no', 'yes'] }, punishment: { title: 'Punishment when a proxy is detected', type: 'select', options: ['poke', 'kick', 'tempban', 'chatmessage', 'none (notify admins only)'] }, tempBanDuration: { title: "Temp ban duration in seconds", type: 'number', conditions: [{field: 'punishment', value: 2}] }, punishmentMessage: { title: "Punishment message (kick, poke, ban)", type: 'string', placeholder: "Proxy/VPN detected. Error? Contact: luigi@xdefcon.com or admin" }, notifyOnDetection: { title: 'Notify Admins when a proxy is detected?', type: 'select', options: ['no', 'yes'] }, permissionsMessage: { title: "Not enough permissions message", type: 'string', placeholder: "You don't have enough permissions to execute this command." }, admins: { title: "Admin Unique IDs used to send important notifications", type: "array", vars: [{ name: 'adminUID', indent: 1, title: 'Admin Client UID', type: 'string' }] }, adminGroups: { title: "Admin Group IDs used to send important notifications", type: "array", vars: [{ name: 'groupID', indent: 1, title: 'Admin Group ID', type: 'number' }] }, whitelist: { title: "Whitelist of IP addresses (Please report to lugi@xdefcon.com if false detection, this is a quick fix.)", type: "array", vars: [{ name: "address", indent: 1, title: "Client IP address to whitelist", type: "string" }] }, prefix: { title: "Prefix before messages", type: "string", placeholder: "[b][AntiProxy][b]" }, theme: { title: "Color of messages", type: "string", placeholder: "[color=black]" }
} }, function (sinusbot, config) { if (typeof config.enableSwitch == 'undefined') { config.enableSwitch = 1; } if (typeof config.debugSwitch == 'undefined') { config.debugSwitch = 0; } if (typeof config.punishment == 'undefined') { config.punishment = 1; } if (typeof config.punishmentMessage == 'undefined' || config.punishmentMessage == "") { config.punishmentMessage = "Proxy/VPN detected. Error? Contact: luigi@xdefcon.com or admin"; } if (typeof config.notifyOnDetection == 'undefined') { config.notifyOnDetection = 1; } if (typeof config.permissionsMessage == 'undefined') { config.permissionsMessage = "You don't have enough permissions to execute this command."; } if (config.punishment == 2 && typeof config.tempBanDuration == 'undefined') { config.tempBanDuration = 10; } if (typeof config.adminGroups == 'undefined') { config.adminGroups = []; } if (typeof config.admins == 'undefined') { config.admins = []; } if (typeof config.whitelist == 'undefined') { config.whitelist = []; } if (typeof config.prefix == 'undefined') { config.prefix = "[b][AntiProxy][b]"; } if (typeof config.theme == 'undefined') { config.prefix = "[color=black]"; }
});