Plugin metrics custom graph

Discussion in 'Plugin Development' started by blaxout1213, Jun 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    blaxout1213

    Im trying to add a custom graph to my mcstats integration but no matter what i do it always says no data. Iv'e tried everything i could think of on my own but i cant seem to fix it.

    Code:java
    1. private void startMetrics()
    2. {
    3. try
    4. {
    5. Metrics m = new Metrics(this);
    6. Graph revivedGraph = m.createGraph("Percentage of people revived");
    7. revivedGraph.addPlotter(new Metrics.Plotter("Revived")
    8. {
    9. @Override
    10. public int getValue()
    11. {
    12. return revived;
    13. }
    14. });
    15. revivedGraph.addPlotter(new Metrics.Plotter("Dead")
    16. {
    17. @Override
    18. public int getValue()
    19. {
    20. return deadNow;
    21. }
    22. });
    23. revivedGraph.addPlotter(new Metrics.Plotter("Test")
    24. {
    25. @Override
    26. public int getValue()
    27. {
    28. return 12;
    29. }
    30. });
    31. m.start();
    32. }
    33. catch (IOException e)
    34. {
    35. getLogger().log(Level.INFO, "I is sad there is no stats :(");
    36. }
    37. }
     
  2. Offline

    Smerfa

    just not work, you can't fix that...
    all custom graph are broken :<
    (only old ones works)
     
  3. Offline

    blaxout1213

Thread Status:
Not open for further replies.

Share This Page