mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Fixed bad documentation on Level->checkSpawnProtection()
This commit is contained in:
parent
d48880e31b
commit
3b85e558ce
@ -1583,7 +1583,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
* @param Player $player
|
* @param Player $player
|
||||||
* @param Vector3 $vector
|
* @param Vector3 $vector
|
||||||
*
|
*
|
||||||
* @return bool false if spawn protection cancelled the action, true if not.
|
* @return bool true if spawn protection cancelled the action, false if not.
|
||||||
*/
|
*/
|
||||||
protected function checkSpawnProtection(Player $player, Vector3 $vector) : bool{
|
protected function checkSpawnProtection(Player $player, Vector3 $vector) : bool{
|
||||||
if(!$player->hasPermission("pocketmine.spawnprotect.bypass") and ($distance = $this->server->getSpawnRadius()) > -1){
|
if(!$player->hasPermission("pocketmine.spawnprotect.bypass") and ($distance = $this->server->getSpawnRadius()) > -1){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user