Example #1
0
 /// <summary>
 ///     The user requested something from god tools
 /// </summary>
 /// <param name="client"></param>
 /// <param name="requester"></param>
 /// <param name="Method"></param>
 /// <param name="Parameter"></param>
 void onGodlikeMessage(IClientAPI client, UUID requester, string Method, List <string> Parameter)
 {
     //Just rebuild the map
     if (Method == "refreshmapvisibility")
     {
         if (client.Scene.Permissions.IsGod(client.AgentId))
         {
             //Rebuild the map tile
             IMapImageGenerator mapModule = client.Scene.RequestModuleInterface <IMapImageGenerator> ();
             if (mapModule != null)
             {
                 mapModule.CreateTerrainTexture();
             }
         }
     }
 }