Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit af713a3

Browse files
committed
php doc
1 parent 037735c commit af713a3

File tree

1 file changed

+7
-0
lines changed
  • src/VectorNetworkProject/TheMix/game/level

1 file changed

+7
-0
lines changed

src/VectorNetworkProject/TheMix/game/level/XP.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use pocketmine\Player;
1212
use pocketmine\Server;
13+
use VectorNetworkProject\TheMix\event\game\PlayerMaxXpChangeEvent;
1314
use VectorNetworkProject\TheMix\event\game\PlayerXpChangeEvent;
1415
use VectorNetworkProject\TheMix\provider\JSON;
1516

@@ -22,6 +23,8 @@ class XP
2223
public const MAX = 'max';
2324

2425
/**
26+
* プレイヤーのXPを変更します。
27+
*
2528
* @param Player $player
2629
* @param int $xp
2730
*
@@ -38,6 +41,8 @@ public static function setXP(Player $player, int $xp): void
3841
}
3942

4043
/**
44+
* プレイヤーのXPを増やします。
45+
*
4146
* @param Player $player
4247
* @param int $min
4348
* @param int $max
@@ -56,6 +61,8 @@ public static function addXP(Player $player, int $min = 10, int $max = 15): void
5661
}
5762

5863
/**
64+
* プレイヤーのXPを取得します。
65+
*
5966
* @param Player $player
6067
*
6168
* @return int

0 commit comments

Comments
 (0)