Skip to content

Commit 59ad6d8

Browse files
authored
Include formatted cool down timing
1 parent 2c96283 commit 59ad6d8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Recycle.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Oxide.Plugins {
1010

11-
[Info("Recycle", "5Dev24", "3.0.1")]
11+
[Info("Recycle", "5Dev24", "3.0.2")]
1212
[Description("Recycle items into their resources")]
1313
public class Recycle : RustPlugin {
1414

@@ -217,7 +217,7 @@ public class SettingsWrapper {
217217
public List<string> Blacklist = new List<string>();
218218
}
219219
public SettingsWrapper Settings = new SettingsWrapper();
220-
public string VERSION = "3.0.1";
220+
public string VERSION = "3.0.2";
221221
}
222222

223223
#endregion
@@ -380,8 +380,10 @@ private int[] GetCooldown(ulong uid) {
380380
private string CooldownTimesToString(int[] times, BasePlayer p) {
381381
if (times == null || times.Length != 2) return "";
382382
int mins = times[0], secs = times[1];
383-
return (mins == 0 ? "" : ("{0} " + this.GetMessage("Timings", mins == 1 ? "minute" : "minutes", p)) +
384-
" {1} " + this.GetMessage("Timings", secs == 1 ? "second" : "seconds", p)).Trim();
383+
return (
384+
string.Format(mins == 0 ? "" : ("{0} " + this.GetMessage("Timings", mins == 1 ? "minute" : "minutes", p)), mins) +
385+
string.Format(" {0} " + this.GetMessage("Timings", secs == 1 ? "second" : "seconds", p), secs)
386+
).Trim();
385387
}
386388

387389
#endregion
@@ -474,4 +476,4 @@ public void RemoveNPC(string id) {
474476

475477
}
476478

477-
}
479+
}

0 commit comments

Comments
 (0)