# IScriptPlayer.stopSound [← IScriptPlayer](index.md) · [← Master](../../wiki.md) Parça 7/11 · [önceki](stopSound-6.md) · [sonraki](stopSound-8.md) Send a message to this player that will be displayed in action bar. The duration of action bar line is 60 ticks (3 seconds). setXp void setXp(int level, int points) Set experience level and amount of points for that level. // For more information of how levels work (i.e. how many points per // level to level up) see this table: // https://minecraft.fandom.com/wiki/Experience#Leveling_up // Set player's XP level to 17 and half of the bar (level 17 has // 42 points in total to level up) c.getSubject().setXp(17, 21); Parameters: level - Experience level. points - Amount of experience points in that particular level. addXp void addXp(int points) Add experience points to this player. Inputting more points than player's current level can contain will result into leveling up one or more times. // For more information of how levels work (i.e. how many points per // level to level up) see this table: // https://minecraft.fandom.com/wiki/Experience#Leveling_up // Add 1000 experience points c.getSubject().addXp(1000); Parameters: points - Amount of experience points to add to player. getXpLevel int getXpLevel() Get player's current experience level. // For more information of how levels work (i.e. how many points per // level to level up) see this table: // https://minecraft.fandom.com/wiki/Experience#Leveling_up var s = c.getSubject(); if (s.getXpLevel() < 50) { var section = "§"; // Teleport the player out of the area s.setPosition(10, 4, -15); s.send("Come back when you're level" + section + "7 50" + section + "r!"); } getXpPoints int getXpPoints() Get player's experience points in their current level. setHunger