aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/LandManagement/Land.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/LandManagement/Land.cs')
-rw-r--r--OpenSim/Region/Environment/LandManagement/Land.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/LandManagement/Land.cs b/OpenSim/Region/Environment/LandManagement/Land.cs
index 3f60b1b..4cfb0c1 100644
--- a/OpenSim/Region/Environment/LandManagement/Land.cs
+++ b/OpenSim/Region/Environment/LandManagement/Land.cs
@@ -227,6 +227,18 @@ namespace OpenSim.Region.Environment.LandManagement
227 } 227 }
228 } 228 }
229 229
230 public bool isBannedFromLand(ParcelManager.ParcelAccessEntry entry, IClientAPI remote_client)
231 {
232 if ((this.landData.landFlags & (uint)Parcel.ParcelFlags.UseBanList) > 0)
233 {
234 if (this.landData.parcelAccessList.Contains(entry))
235 {
236 //They are banned, so lets send them a notice about this parcel
237 return true;
238 }
239 }
240 return false;
241 }
230 public void sendLandUpdateToClient(IClientAPI remote_client) 242 public void sendLandUpdateToClient(IClientAPI remote_client)
231 { 243 {
232 sendLandProperties(0, false, 0, remote_client); 244 sendLandProperties(0, false, 0, remote_client);