PlugInterface
public class TimeStamp extends java.lang.Object implements PlugInterface
Constructor | Description |
---|---|
TimeStamp() |
Modifier and Type | Method | Description |
---|---|---|
void |
activate() |
This function is automatically called by JamochaMUD when the
plug-in is first activated (at each JamochaMUD start-up).
|
void |
deactivate() |
This function is automatically called by JamochaMUD when the
plug-in is set inactive from the JamochaMUD "Manage Plug-Ins"
dialogue.
|
boolean |
hasProperties() |
If a plug-in has properties that can be configured via a GUI,
this method should return true, otherwise it should
return false.
|
boolean |
haveConfig() |
This method tells JamochaMUD whether this plugin should have
its own person configuration directory where it can keep its
settings.
|
void |
initialiseAtLoad() |
This method is called as soon as the plugin is first loaded.
|
boolean |
isActive() |
Allows JamochaMUD to check whether this plug-in is active
and should be used.
|
java.lang.String |
plugInDescription() |
A basic description of the plug-in that is shown in
the JamochaMUD "Manage Plugins" dialogue box
|
java.lang.String |
plugInName() |
This method returns the name of the plug-in
|
void |
plugInProperties() |
This method is called by the "Properties" option in
the JamochaMUD "Manage plugins" dialogue box.
|
java.lang.String |
plugInType() |
This indicates what type of plugin this is, ie: input or output.
|
java.lang.String |
plugMain(java.lang.String jamochaString,
MuSocket mSock) |
This is the main method of the plug-in.
|
protected void |
saveSettings() |
This method saves the current MusicBox settings to a file.
|
void |
setAtHalt() |
The method is automatically called when JamochaMUD is quit
by using the File -> Exit menu or the close window icon.
|
void |
setSettings(JMConfig mainSettings) |
public void setSettings(JMConfig mainSettings)
mainSettings
- public java.lang.String plugInName()
plugInName
in interface PlugInterface
public java.lang.String plugInDescription()
plugInDescription
in interface PlugInterface
public java.lang.String plugInType()
plugInType
in interface PlugInterface
public java.lang.String plugMain(java.lang.String jamochaString, MuSocket mSock)
plugMain
in interface PlugInterface
jamochaString
- The string received from the MU* and to be processed.mSock
- The connection that the given string belongs to.public void plugInProperties()
plugInProperties
in interface PlugInterface
public void initialiseAtLoad()
initialiseAtLoad
in interface PlugInterface
public void setAtHalt()
setAtHalt
in interface PlugInterface
public boolean haveConfig()
haveConfig
in interface PlugInterface
public boolean hasProperties()
hasProperties
in interface PlugInterface
public void activate()
activate
in interface PlugInterface
public void deactivate()
deactivate
in interface PlugInterface
public boolean isActive()
PlugInterface
isActive
in interface PlugInterface
protected void saveSettings()