Help please needed fast!!

Discussion in 'Bukkit Help' started by samwood, May 13, 2014.

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

    samwood

    How to make console run a command When a player kills another?

    like if Sam kills Sammy

    Sam gets 10 points in PlayerPoints

    So console would run /points give Sam 10

    and take away 10 points from sammy

    /points take Sammy 10

    Iroh
     
  2. Offline

    _Filip

    Check if the player was killed by another and do this:
    Code:java
    1.  
    2. int pointsGiven = 10;
    3. Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "/points give " + e.getPlayer().getName() + " " + pointsGiven);
     
  3. Offline

    Iroh

Thread Status:
Not open for further replies.

Share This Page