mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
Updated Plugins (markdown)
@@ -14,8 +14,8 @@ All plugin assemblies must contain a static method called LoadPlugin():
|
||||
``` csharp
|
||||
public class SomeDevice : Device , IBridge //IBridge only needs to be implemented if
|
||||
{
|
||||
// This string is used to define the minimum version of the Essentials Framework
|
||||
// required for this plugin
|
||||
// This string is used to define the minimum version of the
|
||||
// Essentials Framework required for this plugin
|
||||
public static string MinimumEssentialsFrameworkVersion = "1.4.23";
|
||||
|
||||
// This method gets called by the Essentials Framework when the application starts.
|
||||
@@ -28,7 +28,8 @@ public class SomeDevice : Device , IBridge //IBridge only needs to be implement
|
||||
// and returns an instance of the desired device type
|
||||
}
|
||||
|
||||
// This is a factory method to construct a device and return it to be added to the DeviceManager
|
||||
// This is a factory method to construct a device and return it to be
|
||||
// added to the DeviceManager
|
||||
public static Device FactoryMethod(DeviceConfig dc)
|
||||
{
|
||||
return new SomeDevice(dc.key, dc.name, dc);
|
||||
|
||||
Reference in New Issue
Block a user