Squash and Polish! Large Mini Update! 6/12/14

Discussion in 'Empire Updates' started by Aikar, Jun 12, 2014.

  1. Wow, nice job, Aikar! This has cleaned a lot of stuff up! :D



  2. I am pretty sure that everyone didn't join at the same hour, just on different days. If you /p anyone, it only displays days and minutes from their first sign-in, along with last vote and sign-in.
    607 likes this.
  3. ok seems like a bug for it going to the next level.
  4. Mini updates always bring mini bugs with them ;)
    cowland123 likes this.
  5. Ok I see the bug in time display....

    Code:
    if (seconds < 86400) {
                Long count = (long) Math.ceil(seconds / 3600);
                String res;
                if (count > 1) {
                    res = count + " hours";
                } else {
                    res = "1 hour";
                }
                if (!second) {
                    return res + ", " + formatTime(seconds % 3600, true);
                }
                return res;
            }
            Long count = (long) Math.ceil(seconds / 86400);
            String res;
            if (count > 1) {
                res = count + " days";
            } else {
                res = "24 hours";
            }
            if (!second) {
                return res + ", " + formatTime(seconds / 86400, true);
            }
    Accidently did / 86400 instead of % 86400
  6. Ok I just pushed out 3 more fixes

    • Hopefully players with underscore will now have their name clickable in chat and staff will have their * (ie: just_five_fun)
    • Fixed a bug that's been plaguing players who change their difficulty setting resulting in them playing on level 1 when they tried to go higher, resulting in no token loss
    • Fixed the use of hours after days in Time Unit Display as said above.
  7. Thanks Aikar!
  8. Add PvP/mobarena to this GUI ?
  9. For the time fix, I think something else is wrong. I am seeing just the old format, no minutes at all, and no hours for the players who have been gone for more than a day.