diff --git a/.gitignore b/.gitignore index c61624eba..b08db6710 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ server.properties memoryDump_*/* # Common IDEs -.idea/* +.idea/ nbproject/* # Windows image file caches diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b82cb815d..d61139b6b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,9 @@ ## Creating an Issue -- If you are reporting a bug, **make sure that you are using the latest supported version** before opening an issue. +- If you are reporting a bug: + - **make sure that you are using the latest supported version** before opening an issue. + - **test it on a clean test server, WITHOUT PLUGINS**, to see if the issue still occurs. If not then it may be a plugin issue. Please also indicate the result of such tests. - [Search the issue tracker](https://github.com/pmmp/PocketMine-MP/issues?utf8=%E2%9C%93&q=is%3Aissue) to check if anyone has already reported it, to avoid needlessly creating duplicate issues. Make sure you also check closed issues, as an issue you think is valid may already have been resolved. diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 0b10e029f..a498439b7 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -2533,7 +2533,7 @@ class Level implements ChunkManager, Metadatable{ } /** - * Returns true if the spawn is part of the spawn + * Returns whether the chunk at the specified coordinates is a spawn chunk * * @param int $X * @param int $Z diff --git a/start.ps1 b/start.ps1 new file mode 100644 index 000000000..1b94da0ca --- /dev/null +++ b/start.ps1 @@ -0,0 +1,40 @@ +param ( + [switch]$Loop = $false +) + +if(Test-Path "bin\php\php.exe"){ + $env:PHPRC = "" + $binary = "bin\php\php.exe" +}else{ + $binary = "php" +} + +if(Test-Path "PocketMine-MP.phar"){ + $file = "PocketMine-MP.phar" +}elseif(Test-Path "src\pocketmine\PocketMine.php"){ + $file = "src\pocketmine\PocketMine.php" +}else{ + echo "Couldn't find a valid PocketMine-MP installation" + pause + exit 1 +} + +function StartServer{ + $command = $binary + " " + $file + " --enable-ansi" + iex $command +} + +$loops = 0 + +StartServer + +while($Loop){ + if($loops -ne 0){ + echo ("Restarted " + $loops + " times") + } + $loops++ + echo "To escape the loop, press CTRL+C now. Otherwise, wait 5 seconds for the server to restart." + echo "" + Start-Sleep 5 + StartServer +} \ No newline at end of file