[Home] [Downloads] [Search] [Help/forum]

MUSHclient scripting

Description of MUSHclient world function: world.GetPluginList


Name GetPluginList
Type Method
Summary Gets a list of installed plugins.
Prototype VARIANT GetPluginList();

View list of data type meanings

Description

Returns an array of the unique IDs of all the plugins currently installed.


Note: Available in version 3.23 onwards.


VBscript example
dim pluginList 

pluginList = world.GetPluginList

If Not IsEmpty (pluginList) Then
                  
  For Each p In pluginList 
     world.note p & " = " &  world.GetPluginInfo (p, 1)
  Next

End If
Jscript example
pluginlist = new VBArray(world.GetPluginList()).toArray();

if (pluginlist)  // if not empty
  for (i = 0; i < pluginlist.length; i++)
      world.note(pluginlist [i] + " = " + 
                 world.GetPluginInfo(pluginlist [i], 1));
PerlScript example
foreach $item (Win32::OLE::in ($world->GetPluginList))
   {
   ($key, $value) = ($item, $world->GetPluginInfo ($item, 1));
   $world->note($key . " = " . $value) if (defined ($key));
   }
Python example
pluginlist = world.GetPluginList
if (pluginlist):
  for p in pluginlist: world.Note (p + " = " +
                  world.GetPluginInfo(p, 1))
Lua example
for k, v in pairs (GetPluginList()) do 
  Note (v, " = ", GetPluginInfo(v, 1))
end
Returns If there are no plugins then the return value is empty. Use "IsEmpty" to test for this possibility.

Otherwise, it returns a variant array containing the unique IDs of all the plugins. Use "lbound" and "ubound" to find the bounds of the array of plugins (ie. the number of plugins in the list). You can then use "GetPluginInfo" to find information about each plugin.
Introduced in version 3.23

See also ...

Function Description
CallPlugin Calls a routine in a plugin
EnablePlugin Enables or disables the specified plugin
GetPluginAliasList Gets the list of aliases in a specified plugin
GetPluginInfo Gets details about a specified plugin
GetPluginTimerList Gets the list of timers in a specified plugin
GetPluginTriggerList Gets the list of triggers in a specified plugin
GetPluginVariableList Gets the list of variables in a specified plugin
IsPluginInstalled Checks to see if a particular plugin is installed
PluginSupports Checks if a plugin supports a particular routine

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]