diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index e55c9ed..e54c849 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -414,6 +414,19 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
414 | return false; | 414 | return false; |
415 | } | 415 | } |
416 | 416 | ||
417 | public bool CanBeOnThisLand(UUID avatar, float posHeight) | ||
418 | { | ||
419 | if (posHeight < LandChannel.BAN_LINE_SAFETY_HIEGHT && IsBannedFromLand(avatar)) | ||
420 | { | ||
421 | return false; | ||
422 | } | ||
423 | else if (IsRestrictedFromLand(avatar)) | ||
424 | { | ||
425 | return false; | ||
426 | } | ||
427 | return true; | ||
428 | } | ||
429 | |||
417 | public bool HasGroupAccess(UUID avatar) | 430 | public bool HasGroupAccess(UUID avatar) |
418 | { | 431 | { |
419 | if (LandData.GroupID != UUID.Zero && (LandData.Flags & (uint)ParcelFlags.UseAccessGroup) == (uint)ParcelFlags.UseAccessGroup) | 432 | if (LandData.GroupID != UUID.Zero && (LandData.Flags & (uint)ParcelFlags.UseAccessGroup) == (uint)ParcelFlags.UseAccessGroup) |