@@ -53,7 +53,7 @@ protected void run(final Server server, final CommandSource sender, final String
5353 {
5454 if (cacheage > System .currentTimeMillis () - CACHETIME )
5555 {
56- outputCache (sender , page );
56+ outputCache (sender , commandLabel , page );
5757 return ;
5858 }
5959 if (ess .getUserMap ().getUniqueUsers () > MINUSERS )
@@ -65,20 +65,20 @@ protected void run(final Server server, final CommandSource sender, final String
6565 {
6666 lock .readLock ().unlock ();
6767 }
68- ess .runTaskAsynchronously (new Viewer (sender , page , force ));
68+ ess .runTaskAsynchronously (new Viewer (sender , commandLabel , page , force ));
6969 }
7070 else
7171 {
7272 if (ess .getUserMap ().getUniqueUsers () > MINUSERS )
7373 {
7474 sender .sendMessage (tl ("orderBalances" , ess .getUserMap ().getUniqueUsers ()));
7575 }
76- ess .runTaskAsynchronously (new Viewer (sender , page , force ));
76+ ess .runTaskAsynchronously (new Viewer (sender , commandLabel , page , force ));
7777 }
7878
7979 }
8080
81- private static void outputCache (final CommandSource sender , int page )
81+ private static void outputCache (final CommandSource sender , String command , int page )
8282 {
8383 final Calendar cal = Calendar .getInstance ();
8484 cal .setTimeInMillis (cacheage );
@@ -167,12 +167,14 @@ private class Viewer implements Runnable
167167 private final transient CommandSource sender ;
168168 private final transient int page ;
169169 private final transient boolean force ;
170+ private final transient String commandLabel ;
170171
171- public Viewer (final CommandSource sender , final int page , final boolean force )
172+ public Viewer (final CommandSource sender , final String commandLabel , final int page , final boolean force )
172173 {
173174 this .sender = sender ;
174175 this .page = page ;
175176 this .force = force ;
177+ this .commandLabel = commandLabel ;
176178 }
177179
178180 @ Override
@@ -183,15 +185,15 @@ public void run()
183185 {
184186 if (!force && cacheage > System .currentTimeMillis () - CACHETIME )
185187 {
186- outputCache (sender , page );
188+ outputCache (sender , commandLabel , page );
187189 return ;
188190 }
189191 }
190192 finally
191193 {
192194 lock .readLock ().unlock ();
193195 }
194- ess .runTaskAsynchronously (new Calculator (new Viewer (sender , page , false ), force ));
196+ ess .runTaskAsynchronously (new Calculator (new Viewer (sender , commandLabel , page , false ), force ));
195197 }
196198 }
197199}
0 commit comments