FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ExplodingPE/start.ps1 at master · ExplodingPE/ExplodingPE · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ExplodingPE
/
ExplodingPE
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ExplodingPE
/
start.ps1
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (34 loc) · 729 Bytes
Breadcrumbs
ExplodingPE
/
start.ps1
Copy path
File metadata and controls
40 lines (34 loc) · 729 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
para
m (
[
switch
]
$Loop
=
$false
)
if
(
Test-Path
"
bin\php\php.exe
"
){
$
env:
PHPRC
=
"
"
$binary
=
"
bin\php\php.exe
"
}
else
{
$binary
=
"
php
"
}
if
(
Test-Path
"
SpigotPE.phar
"
){
$file
=
"
SpigotPE.phar
"
}
elseif
(
Test-Path
"
src\pocketmine\PocketMine.php
"
){
$file
=
"
src\pocketmine\PocketMine.php
"
}
else
{
echo
"
Couldn't find a valid SpigotPE installation
"
pause
exit
1
}
function
StartServer
{
$command
=
"
powershell
"
+
$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
}
Back
|
FazBrowse Home
|
New Git URL