when you open up the TC and see
"Your Base is 25% protected for x.xx hrs
how can we add the line for the offline status
example
"Your Base is 25% protected for x.xx hrs online
"Your Base is 50% protected for x.xx hrs offline
love the plugin , nice work
How to get it to show both online and offline protection in the main GUISolved
Unfortunately, passing both protection percentages to that message can't be done in the config alone. If you're brave enough to edit the code, it can be a simple line change. On line 523, change it from this:
return Lang("StatusProtected", player.UserIDString, tc.ProtectionPercentage, GetTimeRemaining(player, tc));To this:
return Lang("StatusProtected", player.UserIDString, tc.HighestProtectionLevel.OnlineProtectionPercentage, tc.HighestProtectionLevel.OfflineProtectionPercentage, GetTimeRemaining(player, tc));Then in the language file set StatusProtected to something like this value, passing in the new variable.
"StatusProtected": "Your base is {0}% protected online and {1}% protected offline for {2}"Not sure how nice that will show up in the UI, so you may need to shorten the message, but it should work. Keep in mind I did NOT test this whatsoever, so you will absolutely need to do that. Hope that helps!
Locked automatically