mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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 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{
|
||||
if(!$player->hasPermission("pocketmine.spawnprotect.bypass") and ($distance = $this->server->getSpawnRadius()) > -1){
|
||||
|
Loading…
x
Reference in New Issue
Block a user