mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Added capability to specify arguments to PocketMine.php when running start.ps1
Example: .\start.ps1 --disable-ansi --debug.level=2
This commit is contained in:
parent
17d949f476
commit
8c363cb571
@ -1,6 +1,8 @@
|
|||||||
param (
|
[CmdletBinding(PositionalBinding=$false)]
|
||||||
|
param (
|
||||||
[string]$php = "",
|
[string]$php = "",
|
||||||
[switch]$Loop = $false
|
[switch]$Loop = $false,
|
||||||
|
[string][Parameter(ValueFromRemainingArguments)]$extraPocketMineArgs
|
||||||
)
|
)
|
||||||
|
|
||||||
if($php -ne ""){
|
if($php -ne ""){
|
||||||
@ -23,7 +25,7 @@ if(Test-Path "PocketMine-MP.phar"){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function StartServer{
|
function StartServer{
|
||||||
$command = "powershell " + $binary + " " + $file + " --enable-ansi"
|
$command = "powershell " + $binary + " " + $file + " --enable-ansi " + $extraPocketMineArgs
|
||||||
iex $command
|
iex $command
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user