From 06967e230f50fbeee24176f3df8cda8a067544e4 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 10 Apr 2008 09:36:55 +0000 Subject: * Updates BetaGridLikeMoneyModule * Several people have asked for a way to limit uploads, so I've decided to show people how to do this in the BetaGridLikeMoneyModule. * Configure it in OpenSim.ini using the [Economy] header. See the bottom of the OpenSim.ini.example for more information. * This also fleshes out the Economy API a bit more. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index bc8fb59..97d09aa 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -73,6 +73,17 @@ namespace OpenSim.Region.Environment.Scenes { userInfo.AddItem(remoteClient.AgentId, item); remoteClient.SendInventoryItemCreateUpdate(item); + + int userlevel = 0; + if (PermissionsMngr.IsEstateManager(remoteClient.AgentId)) + { + userlevel = 1; + } + if (m_regInfo.MasterAvatarAssignedUUID == remoteClient.AgentId) + { + userlevel = 2; + } + EventManager.TriggerOnNewInventoryItemUploadComplete(remoteClient.AgentId, item.AssetID, item.Name, userlevel); } } -- cgit v1.1