local logMSG = ("loading. In this example we reuse the existing icons from the plugins\test_plugin\ directory, which resides as ".\test_plugin" relative to for "test_plugin.dll", icon "1.png" is loaded from \plugins\test_plugin\1.png plugin filename, without dll/so/dylib suffix Icons are loaded from a subdirectory in the TeamSpeak client plugins folder. When not using icons, just pass an empty string. The icon is optional, max length is 128 characters. The menu text is required, max length is 128 characters Menu IDs are used to identify the menu item when onMenuItemEvent is called, see testmodule/a for the implementation of onMenuItemEvent _MENU_TYPE_GLOBAL: "Plugins" menu in menu bar of main window _MENU_TYPE_CHANNEL: Channel context menu Store value added to menuIDs to be able to calculate menuIDs for this module again for setPluginMenuEnabled (see a) Local function createMenus( moduleMenuItemID) Require( "masscontrolmodule/masscontrol ") Require( "masscontrolmodule/events ") - Forwarded TeamSpeak 3 callbacks Local function onMenuItemEvent( serverConnectionHandlerID, menuType, menuItemID, selectedItemID) selectedItemID: Channel or Client ID in the case of PLUGIN_MENU_TYPE_CHANNEL and PLUGIN_MENU_TYPE_CLIENT. menuItemID: Id used when creating the menu item type: Type of the menu (_MENU_TYPE_CHANNEL, _MENU_TYPE_CLIENT or _MENU_TYPE_GLOBAL) serverConnectionHandlerID: ID of the current server tab Optional function, when not using plugin menus, do not implement this. Called when a plugin menu item (see ts3plugin_initMenus) is triggered. Add this value to above menuID when passing the ID to setPluginMenuEnabled. The only other way is if you click a link in the chat that is some sort of ip grabber, but that's also a possibility on discordapp afaik. Will store factor to add to menuID to calculate the real menuID used in the TeamSpeak client (to support menus from multiple Lua modules) The only way someone can get your IP off of teamspeak is if an admin gives it to someone - so you're relatively safe. To avoid function name collisions, you should use local functions and export them with a unique package name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |