/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/web/StatusListener.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/web/StatusListener.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1494 by torben, Fri Jun 3 11:25:13 2011 UTC revision 1497 by torben, Sat Jun 4 07:50:14 2011 UTC
# Line 15  import org.kokakiwi.apicraft.events.ApiL Line 15  import org.kokakiwi.apicraft.events.ApiL
15    
16  public class StatusListener extends ApiListener {  public class StatusListener extends ApiListener {
17    
18          SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");          SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
19    
20          Server server;          Server server;
21          public StatusListener(Server server) {          public StatusListener(Server server) {
# Line 39  public class StatusListener extends ApiL Line 39  public class StatusListener extends ApiL
39                          for (Player p : server.getOnlinePlayers()) {                                                      for (Player p : server.getOnlinePlayers()) {                            
40                                  sb.append( p.getName() + "\n");                                  sb.append( p.getName() + "\n");
41                          }                          }
42                            sb.append("\n");
43    
44                          sb.append("--- Last seen players/offline ---\n");                          sb.append("--- Last seen players/offline ---\n");
45                          File configFile = new File("./plugins/LastSeen/times.yml");                          File configFile = new File("./plugins/LastSeen/times.yml");
# Line 61  public class StatusListener extends ApiL Line 62  public class StatusListener extends ApiL
62                          } else {                          } else {
63                                  sb.append("could not find LastSeen/times.yml\n");                                  sb.append("could not find LastSeen/times.yml\n");
64                          }                          }
65                                                    sb.append("\n");
66    
67                                                    
68                          sb.append("--- Plugins ---\n");                          sb.append("--- Plugins ---\n");

Legend:
Removed from v.1494  
changed lines
  Added in v.1497

  ViewVC Help
Powered by ViewVC 1.1.20