Skip to content

General Stats

getLevel

int stats.getLevel(player)
Player's current level.


getSkillPoints

int stats.getSkillPoints(player)
Unspent skill points.


getAllSkillPoints

int stats.getAllSkillPoints(player)
Total skill points ever earned (spent + unspent), excluding bonus points from Sage Soup.


getAllAssignedSkillPoints

int stats.getAllAssignedSkillPoints(player)
Total skill points the player has spent across all skills.


getJutsuPoints

int stats.getJutsuPoints(player)
Unspent jutsu points.


getResetPoints

int stats.getResetPoints(player)
Available reset points.


getIntelligence

int stats.getIntelligence(player)
Intelligence stat value.


getChakraControl

boolean stats.getChakraControl(player)
Whether the player has chakra control unlocked.


getSageSoupCounter

int stats.getSageSoupCounter(player)
How many times the player has used Sage Soup.


Example

var stats = Java.type("narutodestination.Mathioks.CNPC.CustomNPCStatsHandler");

function interact(event) {
    var player = event.player;
    var sp = stats.getSkillPoints(player);
    var lvl = stats.getLevel(player);
    player.message("Level " + lvl + " | SP: " + sp);
}