Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Number Kills

Comments in 'Plugin Development' started by DevWars, Nov 21, 2015.

  1. DevWars
    Offline

    DevWars Banned

    Joined:
    Nov 7, 2015
    Posts:
    28
    Minecraft User:
    PmServer
    Hello Gusy !
    how to get number kills ?
    plz not usage KillRate :)
    plz give me code get number kills player
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Giving you the code wouldn't be very efficient, as you would just copy & paste, without even trying to understand it.
    Well, now to the code. You just need to save the amount of kills somewhere, in an array, a config, database (e.g. MySQL), etc. When the player kills someone, just get the amount and set it to the amount +1.
  3. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Storing the kills in a YAML file for each player would be perfect for you to start with.

Share This Page

Advertisement