Hi, I need some help. I am creating a basic warp mod. However I want to add a little something extra. Warping will cost experience. I will work out all the details later, but right now I need to know how to add/detract XP levels from the player. I want to focus on detracting right now, because I want to set up my /warp command with something like this:
If(player.xplevel > warp_cost)
{
player.xplevel -= warp_cost;
}
else
{
println("Not enough XP);
}
Could somebody please direct me to the correct class, or more helpfully the actual line of code that will add XP? Using that I can refine my google searches and learn more about it. Thanks.
~SirLich