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
Check if the player was killed by another and do this: Code:java int pointsGiven = 10;Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "/points give " + e.getPlayer().getName() + " " + pointsGiven);
Locked. Dupe of http://forums.bukkit.org/threads/kill-command.267466/#post-2488513 and http://forums.bukkit.org/threads/on-kill-command.267915/