Solved Top 5 kills

Discussion in 'Spigot Plugin Development' started by Boby_, Jun 29, 2018.

  1. Are you just trying to print the integer kill count as a string? If so just Integer.toString(line.getValue()).
  2. I didnt finish the code and I need help to finish
  3. You'll probably need to be much more specific about what you need help with, no one's going to come along and just finish up your plugin for you!
  4. I want to do a top 5 command like top kills you know??? but with onlime time that the player stay on the server understand? my plugin is all complete just missing the top 5.

    Obs: Sorry for my english
  5. Strahan


    Code (Text):
    Player p = (Player)sender;
    if (!(p instanceof Player)) {
    Do you really not see a problem here? Also, you are getting a player then running with it without verifying that the object returned is valid; that's a bad idea. Then there is the pointless hashmap. What exactly is the rational of that bit?

    Let me guess; you are just copying and pasting stuff in hopes it works, eh? :)