mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
*Added CommandIntentions that is used to describe a console commands hazard. HAZARDOUS if it modifies the simulator, NON_HAZARDOUS if it does a command that doesn't modify the simulator but does a background command such as a forced backup, and STATISTICAL if it returns debug or more information.
*This is useful for implementing a protection system from unwanted script execution or for application modules needing to know what a command does.
This commit is contained in:
@@ -56,7 +56,7 @@ namespace OpenSim.Region.Environment.Modules.Framework.InterfaceCommander
|
||||
|
||||
public void PostInitialise()
|
||||
{
|
||||
Command testCommand = new Command("hello", InterfaceHelloWorld, "Says a simple debugging test string");
|
||||
Command testCommand = new Command("hello", CommandIntentions.COMMAND_STATISTICAL, InterfaceHelloWorld, "Says a simple debugging test string");
|
||||
testCommand.AddArgument("world", "Write world here", "string");
|
||||
|
||||
m_commander.RegisterCommand("hello", testCommand);
|
||||
|
||||
Reference in New Issue
Block a user