diff options
author | UbitUmarov | 2017-07-26 20:13:30 +0100 |
---|---|---|
committer | UbitUmarov | 2017-07-26 20:13:30 +0100 |
commit | 6996bab4a154a7c6936c35af65e439e5a42c84b5 (patch) | |
tree | 44255907c6e1d1040302f1deef79ce71fefc791e /OpenSim/Region/CoreModules | |
parent | change buypass insuficent funds to make clear that its on that region money ... (diff) | |
download | opensim-SC_OLD-6996bab4a154a7c6936c35af65e439e5a42c84b5.zip opensim-SC_OLD-6996bab4a154a7c6936c35af65e439e5a42c84b5.tar.gz opensim-SC_OLD-6996bab4a154a7c6936c35af65e439e5a42c84b5.tar.bz2 opensim-SC_OLD-6996bab4a154a7c6936c35af65e439e5a42c84b5.tar.xz |
display remaining pass time in hours, mins or seconds acording to value
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 64411e6..f422708 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -594,7 +594,15 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
594 | currenttime = ldata.ParcelAccessList[idx].Expires - now; | 594 | currenttime = ldata.ParcelAccessList[idx].Expires - now; |
595 | if(currenttime > (int)(0.25f * expires + 0.5f)) | 595 | if(currenttime > (int)(0.25f * expires + 0.5f)) |
596 | { | 596 | { |
597 | remote_client.SendAgentAlertMessage("You already have pass valid for " + string.Format("{0:0.##} minutes", currenttime/60.0f), false); | 597 | if(currenttime > 3600) |
598 | remote_client.SendAgentAlertMessage(string.Format("You already have a pass valid for {0:0.###} hours", | ||
599 | currenttime/3600f), false); | ||
600 | else if(currenttime > 60) | ||
601 | remote_client.SendAgentAlertMessage(string.Format("You already have a pass valid for {0:0.##} minutes", | ||
602 | currenttime/60f), false); | ||
603 | else | ||
604 | remote_client.SendAgentAlertMessage(string.Format("You already have a pass valid for {0:0.#} seconds", | ||
605 | currenttime), false); | ||
598 | return; | 606 | return; |
599 | } | 607 | } |
600 | } | 608 | } |