-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstart.php
executable file
·37 lines (28 loc) · 1.16 KB
/
start.php
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
#!/usr/bin/env php
<?php
require "vendor/autoload.php";
use PHPCraft\Core\Networking\MultiplayerServer;
error_reporting(E_ALL);
date_default_timezone_set('UTC');
/* PHPCraft Configuration */
// The IP address that PHPCraft will bind to.
// Set this to 127.0.0.1 if you want PHPCraft to only be accessible on the local machine it is running on.
$server_bind_ip = "0.0.0.0";
// The port that PHPCraft will listen on.
// Set this to another port (such as 25564 or 25563) if you want to run PHPCraft behind DirtMultiVersion or another proxy like it.
$server_port = 25565;
// The name of the server, which shows up in places like the join/welcome/quit messages.
$server_name = "PHPCraft";
// If set to true, enables verbose debug logging.
// Enabled by default because… well, I think the only people that will be using PHPCraft are developers (if not only myself) ;P
$enable_debug_logging = true;
// If set to true, enables packet dumping. This generates a lot of log output!
$enable_packet_dumping = false;
/* ********************** */
$server = new MultiplayerServer(
$server_bind_ip,
$server_name,
$enable_debug_logging,
$enable_packet_dumping
);
$server->start($server_port);