mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix /temprank with 24 or over hours. (Thanks FabTheZen)
This commit is contained in:
parent
979b9b4763
commit
c7d9ac0613
@ -79,7 +79,9 @@ namespace MCGalaxy.Commands.Moderation {
|
||||
Group pGroup, Group group, string target) {
|
||||
DateTime now = DateTime.Now;
|
||||
string assigner = p == null ? "Console" : p.name;
|
||||
string data = target + " " + group.name + " " + pGroup.name + " " + delta.Hours + " " + now.Minute + " " +
|
||||
int hours = delta.Days * 24 + delta.Hours;
|
||||
|
||||
string data = target + " " + group.name + " " + pGroup.name + " " + hours + " " + now.Minute + " " +
|
||||
now.Hour + " " + now.Day + " " + now.Month + " " + now.Year + " " + assigner + " " + delta.Minutes;
|
||||
Server.TempRanks.Append(data);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user