RemoteAdmin:admin create region
From OpenSimulator
(Difference between revisions)
(→admin create region) |
(→Required paramenters) |
||
Line 11: | Line 11: | ||
== Paramenters == | == Paramenters == | ||
=== Required paramenters === | === Required paramenters === | ||
− | { | + | These parameters are required |
− | + | {| cellspacing="0" cellpadding="4" border="1" | |
− | + | |- | |
− | + | ! parameter | |
− | + | ! Description | |
− | + | |- | |
− | + | | region_name | |
− | + | | Name of the new region | |
− | + | |- | |
− | + | | listen_ip | |
+ | | listen ip to be used by region | ||
+ | |- | ||
+ | | listen_port | ||
+ | | integer value of port | ||
+ | |- | ||
+ | | external_address | ||
+ | | external address to be used by the region | ||
+ | |- | ||
+ | | region_x' | ||
+ | | region x location in grid | ||
+ | |- | ||
+ | | region_y | ||
+ | | region y location in grid | ||
+ | |- | ||
+ | | estate_name | ||
+ | | estate name that the new region belongs to. Specify estate owner if the estate does not exist yet | ||
+ | |} | ||
=== Optional paramenters === | === Optional paramenters === |
Revision as of 09:40, 8 October 2011
Contents |
admin create region
admin_create_region remotely allows to create a new regions and add them to an estate.
Enabling admin create region
To use admin_create_region one needs to enable the function in the [RemoteAdmin] section
enabled_methods = admin_create_region
Paramenters
Required paramenters
These parameters are required
parameter | Description |
---|---|
region_name | Name of the new region |
listen_ip | listen ip to be used by region |
listen_port | integer value of port |
external_address | external address to be used by the region |
region_x' | region x location in grid |
region_y | region y location in grid |
estate_name | estate name that the new region belongs to. Specify estate owner if the estate does not exist yet |
Optional paramenters
|
Notes
|
Example
PHP
<?php // Including the RemoteAdmin PHP class. include('RemoteAdmin.php'); // Instantiate the class with parameters identical to the Python example above $myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret'); // Invoke admin_create_user (multiple parameters) $parameters = array('region_name' => 'My Plaza', 'listen_ip' => '0.0.0.0', 'listen_port' => '9001', 'region_x' => '1000', 'region_y' => '1000', 'estate_name' => 'My Estate'); $myRemoteAdmin->SendCommand('admin_create_region', $parameters); ?>